Sign in Join
FPDoc Onlineexperiment

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

TCharacterclassCharacter operation.
TCharHelperhelper

Procedures and functions

ConvertFromUtf32functionalias for TCharacter.ConvertFromUtf32.
ConvertToUtf32functionalias for TCharacter.ConvertToUtf32.
GetNumericValuefunctionAlias for TCharacter.GetNumericValue.
GetUnicodeCategoryfunctionAlias for TCharacter.GetUnicodeCategory.
IsControlfunctionAlias for TCharacter.IsControl.
IsDefinedfunction
IsDigitfunctionAlias for TCharacter.IsDigit.
IsHighSurrogatefunctionAlias for TCharacter.IsHighSurrogate.
IsLetterfunctionAlias for TCharacter.IsLetter.
IsLetterOrDigitfunctionAlias for TCharacter.IsLetterOrDigit.
IsLowerfunctionAlias for TCharacter.IsLower.
IsLowSurrogatefunctionAlias for TCharacter.IsLowSurrogate.
IsNumberfunctionAlias for TCharacter.IsNumber.
IsPunctuationfunctionAlias for TCharacter.IsPunctuation.
IsSeparatorfunctionAlias for TCharacter.IsSeparator.
IsSurrogatefunctionAlias for TCharacter.IsSurrogate.
IsSurrogatePairfunctionAlias for TCharacter.IsSurrogatePair.
IsSymbolfunctionAlias for TCharacter.IsSymbol.
IsUpperfunctionAlias for TCharacter.IsUpper.
IsWhiteSpacefunctionAlias for TCharacter.IsWhiteSpace.
ToLowerfunctionAlias for TCharacter.ToLower.
ToUpperfunctionAlias for TCharacter.ToUpper.

Types

TCharacterOptionenumerationCharacter functions behaviour options.
TCharacterOptionssetSet of TCharacterOptions.
TUnicodeCategoryenumerationUnicode code point (character) category.
TUnicodeCategorySetsetSet of TUnicodeCategory.

Uses

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.