MCPcopy Index your code
hub / github.com/RustPython/RustPython / islower

Method islower

crates/vm/src/builtins/str.rs:1104–1110  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1102 // Return true if all cased characters in the string are lowercase and there is at least one cased character, false otherwise.
1103 #[pymethod]
1104 fn islower(&self) -> bool {
1105 match self.as_str_kind() {
1106 PyKindStr::Ascii(s) => s.py_islower(),
1107 PyKindStr::Utf8(s) => s.py_islower(),
1108 PyKindStr::Wtf8(w) => w.py_islower(),
1109 }
1110 }
1111
1112 // Return true if all cased characters in the string are uppercase and there is at least one cased character, false otherwise.
1113 #[pymethod]

Callers

nothing calls this directly

Calls 2

py_islowerMethod · 0.80
as_str_kindMethod · 0.45

Tested by

no test coverage detected