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

Method isspace

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

Source from the content-addressed store, hash-verified

1091
1092 #[pymethod]
1093 fn isspace(&self) -> bool {
1094 use unic_ucd_bidi::bidi_class::abbr_names::*;
1095 !self.data.is_empty()
1096 && self.char_all(|c| {
1097 GeneralCategory::of(c) == GeneralCategory::SpaceSeparator
1098 || matches!(BidiClass::of(c), WS | B | S)
1099 })
1100 }
1101
1102 // Return true if all cased characters in the string are lowercase and there is at least one cased character, false otherwise.
1103 #[pymethod]

Callers

nothing calls this directly

Calls 2

char_allMethod · 0.80
is_emptyMethod · 0.45

Tested by

no test coverage detected