method str.charCount
Number of Unicode scalar values.
Example:
fn main() io {
print("{"".isEmpty()} {"a".isEmpty()}")
}Output
true false
Example:
fn main() io {
print("{"héllo".charCount()}")
}Output
5
pub(api) fn charCount() -> usizeSince. 1.0.0-beta
Returns
usize
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/text.oxl:49