OxL Reference

method str.charCount

Number of Unicode scalar values.

Example:

oxl✓ checked in CI
fn main() io {
  print("{"".isEmpty()} {"a".isEmpty()}")
}
Output
true false

Example:

oxl✓ checked in CI
fn main() io {
  print("{"héllo".charCount()}")
}
Output
5
pub(api) fn charCount() -> usize

Since. 1.0.0-beta

Returns

usize

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/text.oxl:49

See also