Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ is_utf8
Method
is_utf8
crates/wtf8/src/lib.rs:1028–1030 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
1026
1027
#[inline]
1028
pub fn is_utf8(&self) -> bool {
1029
self.next_surrogate(0).is_none()
1030
}
1031
1032
#[inline]
1033
pub fn eq_ignore_ascii_case(&self, other: &Self) -> bool {
Callers
1
into_string
Method · 0.45
Calls
2
next_surrogate
Method · 0.80
is_none
Method · 0.45
Tested by
no test coverage detected