Import std.text.char
std.text.char
A Char's Methods: its code, what kind of character it is, as Unicode's general categories say, and its own uppercase and lowercase, through the runtime's fb_unicode_ functions over utf8proc. Whitespace and ASCII need no Unicode data.
std/text/char.fb
Extends
Char
extend
Extend Char
No doc comment.
-
Its code point, from 0 to 0x10FFFF.
-
How many bytes it takes in UTF-8: 1 to 4.
-
The Char of a code point, or Null for one that isn't a Unicode scalar value: below 0, past 0x10FFFF, or a surrogate, 0xD800 to 0xDFFF.
-
Whether it's a letter, of any case or none, as in "é", "ж", or "中".
-
Whether it's a decimal digit, of any script, like "7" or "٣".
-
Whether it's a number of any kind: a decimal digit, a letter like a Roman numeral, or another like "½".
-
Whether it's a letter or a decimal digit.
-
Whether it's an uppercase letter.
-
Whether it's a lowercase letter.
-
Whether it's punctuation, like "," or "¿".
-
Whether it's a symbol, like "+", "$", or "©".
-
Whether it's a control character, like a tab or a line break.
-
Whether it's whitespace, as Unicode's White_Space has it: a space of any width, a tab, a line or paragraph break, and the like.
-
Whether it's ASCII, U+0000 to U+007F.
-
Its own uppercase, or itself when it has none. A String's ToUpper turns "ß" into "SS", which one Char can't hold.
-
Its own lowercase, or itself when it has none.
Report an issue with this page or with FutureBlitz on GitHub.