Character unit
Unicode character classification and conversion.
The character unit contains the TCharacter class,
which consists mainly of class functions. It should not be constructed, but
its class methods can be used. All class methods also exist as regular
methods.
Many routines depend on Unicode collation data to be present in the binary
(or distributed on disc with the application. This data can be loaded using the routines in
the unicodedata unit..
The FPC project distributes some Unicode collation data in .bco files which can be loaded
using the LoadCollation routine from that unit.
Classes and records
TCharacter | class | Character operation. |
TCharHelper | helper |
Procedures and functions
ConvertFromUtf32 | function | alias for TCharacter.ConvertFromUtf32. |
ConvertToUtf32 | function | alias for TCharacter.ConvertToUtf32. |
GetNumericValue | function | Alias for TCharacter.GetNumericValue. |
GetUnicodeCategory | function | Alias for TCharacter.GetUnicodeCategory. |
IsControl | function | Alias for TCharacter.IsControl. |
IsDefined | function | |
IsDigit | function | Alias for TCharacter.IsDigit. |
IsHighSurrogate | function | Alias for TCharacter.IsHighSurrogate. |
IsLetter | function | Alias for TCharacter.IsLetter. |
IsLetterOrDigit | function | Alias for TCharacter.IsLetterOrDigit. |
IsLower | function | Alias for TCharacter.IsLower. |
IsLowSurrogate | function | Alias for TCharacter.IsLowSurrogate. |
IsNumber | function | Alias for TCharacter.IsNumber. |
IsPunctuation | function | Alias for TCharacter.IsPunctuation. |
IsSeparator | function | Alias for TCharacter.IsSeparator. |
IsSurrogate | function | Alias for TCharacter.IsSurrogate. |
IsSurrogatePair | function | Alias for TCharacter.IsSurrogatePair. |
IsSymbol | function | Alias for TCharacter.IsSymbol. |
IsUpper | function | Alias for TCharacter.IsUpper. |
IsWhiteSpace | function | Alias for TCharacter.IsWhiteSpace. |
ToLower | function | Alias for TCharacter.ToLower. |
ToUpper | function | Alias for TCharacter.ToUpper. |
Types
TCharacterOption | enumeration | Character functions behaviour options. |
TCharacterOptions | set | Set of TCharacterOptions. |
TUnicodeCategory | enumeration | Unicode code point (character) category. |
TUnicodeCategorySet | set | Set of TUnicodeCategory. |
Uses
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
