TUnicodeCategory¶
Unicode code point (character) category.
Declaration¶
Source position: character.pas line 42
type
TUnicodeCategory = (ucUppercaseLetter,ucLowercaseLetter,
ucTitlecaseLetter,ucModifierLetter,ucOtherLetter,
ucNonSpacingMark,ucCombiningMark,ucEnclosingMark,
ucDecimalNumber,ucLetterNumber,ucOtherNumber,
ucConnectPunctuation,ucDashPunctuation,
ucOpenPunctuation,ucClosePunctuation,
ucInitialPunctuation,ucFinalPunctuation,
ucOtherPunctuation,ucMathSymbol,ucCurrencySymbol,
ucModifierSymbol,ucOtherSymbol,ucSpaceSeparator,
ucLineSeparator,ucParagraphSeparator,ucControl,
ucFormat,ucSurrogate,ucPrivateUse,ucUnassigned)Values¶
| Value | Description |
|---|---|
| ucUppercaseLetter | Letter, uppercase (Lu). |
| ucLowercaseLetter | Letter, lowercase (Ll). |
| ucTitlecaseLetter | Letter, titlecase (Lt). |
| ucModifierLetter | Letter, modifier (Lm). |
| ucOtherLetter | Letter, other (Lo). |
| ucNonSpacingMark | Mark, nonspacing (Mn). |
| ucCombiningMark | Mark, spacing combining (Mc). |
| ucEnclosingMark | Mark, enclosing (Me). |
| ucDecimalNumber | Number, decimal digit (Nd). |
| ucLetterNumber | Number, letter (Nl). |
| ucOtherNumber | Number, other (No). |
| ucConnectPunctuation | Punctuation, connector (Pc). |
| ucDashPunctuation | Punctuation, dash (Pd). |
| ucOpenPunctuation | Punctuation, open (Ps). |
| ucClosePunctuation | Punctuation, close (Pe). |
| ucInitialPunctuation | Punctuation, initial quote (Pi, may behave like Ps or Pe depending on usage). |
| ucFinalPunctuation | Punctuation, final quote (Pf, may behave like Ps or Pe depending on usage). |
| ucOtherPunctuation | Punctuation, other (Po). |
| ucMathSymbol | Symbol, math (Sm). |
| ucCurrencySymbol | Symbol, currency (Sc). |
| ucModifierSymbol | Symbol, modifier (Sk). |
| ucOtherSymbol | Symbol, other (So). |
| ucSpaceSeparator | Separator, space (Zs). |
| ucLineSeparator | Separator, line (Zl). |
| ucParagraphSeparator | Separator, paragraph (Zp). |
| ucControl | Other, control (Cc). |
| ucFormat | Other, format (Cf). |
| ucSurrogate | Other, surrogate (Cs). |
| ucPrivateUse | Other, private use (Co). |
| ucUnassigned | Other, not assigned (including noncharacters) (Cn). |
Description¶
This enumeration type contains the characterization of all possible Unicode characters. It is used in the GetUnicodeCategory and TCharacter.GetUnicodeCategory functions.
See also¶
| Name | Description |
|---|---|
| GetUnicodeCategory | Alias for TCharacter.GetUnicodeCategory. |
| TCharacter.GetUnicodeCategory | Get the Unicode category of a character. |