OxL Reference

method char.isWhitespace

Whether the character is whitespace (space, tab, newline, ...).

Example:

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

True for a whitespace character.

Example:

oxl✓ checked in CI
fn main() io {
  print("{' '.isWhitespace()}")
}
Output
true
pub(api) fn isWhitespace() -> bool

Since. 1.0.0-beta

Returns

bool

Effects

none declared (pure unless the body says otherwise)

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

See also