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

Method isupper

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

Source from the content-addressed store, hash-verified

1112 // Return true if all cased characters in the string are uppercase and there is at least one cased character, false otherwise.
1113 #[pymethod]
1114 fn isupper(&self) -> bool {
1115 match self.as_str_kind() {
1116 PyKindStr::Ascii(s) => s.py_isupper(),
1117 PyKindStr::Utf8(s) => s.py_isupper(),
1118 PyKindStr::Wtf8(w) => w.py_isupper(),
1119 }
1120 }
1121
1122 #[pymethod]
1123 fn splitlines(&self, args: anystr::SplitLinesArgs, vm: &VirtualMachine) -> Vec<PyObjectRef> {

Callers

nothing calls this directly

Calls 2

py_isupperMethod · 0.80
as_str_kindMethod · 0.45

Tested by

no test coverage detected