OxL Reference

method char.isAlpha

Whether the character is a letter (Unicode Alphabetic).

Example:

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

True for a letter.

Example:

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

Since. 1.0.0-beta

Returns

bool

Effects

none declared (pure unless the body says otherwise)

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

See also