Declaration

TnxLocaleDescriptor = class(TnxDictionaryItem)

 
Description

This is the basic locale descriptor. It can be added to the data dictionary, field descriptors and key field descriptors. If a key field descriptor has no locale descriptor attached falls back to the field descriptor. If the field descriptor has no locale descriptor attached it falls back to the data dictionary. If there is no locale descriptor available at all or if the Locale of the used locale descriptor is 0 all comparisons and sorting is performed by direct byte value comparison.

 
Methods

CheckValid

This method is called to check the validity of the item. If a descendant needs to validate settings, this method should be overridden and on error raise a an exception.

IsEqual

The IsEqual function should return true if the given aDictionaryItem is of the same type and has *exactly* the same settings. Should be overridden by all descendants.

LoadFromReader

The text for this method has been generated automatically. This means that it is not documented.

SaveToWriter

The text for this method has been generated automatically. This means that it is not documented.

 
Properties

CompareCodepage

Default Codepage derived from the Locale, used to compare strings. If this is different from StorageCodepage the strings need to be transformed before comparison.

Flags

The text for this property has been generated automatically. This means that it is not documented.

IgnoreKanaType

Set to true, to not differentiate between Hiragana and Katakana characters. Corresponding Hiragana and Katakana characters compare as equal.

IgnoreNonSpace

Set to true to ignore non spacing characters.

IgnoreSymbols

Set to true to ignore symbols.

IgnoreWidth

Set to true to differentiate between a single-byte character and the same character as a double-byte character.

Locale

This specifies the Locale ID to use. Use LOCALE_SYSTEM_DEFAULT or LOCALE_USER_DEFAULT for the defaults or create an id by using MAKELCID. The value is converted into a specific locale via ConvertDefaultLocale on assignment.

OverrideStorageCodepage

Set to a valid codepage to store strings in a non default codepage. e.g. CP_UTF8. To store strings in the default codepage for the locale use 0.

ParentDictionaryItem

DictionaryItem that hosts this locale descriptor, may be nil.

StorageCodepage

Codepage for storing strings in record buffers.

UseStringSort

Set to true to treat punctuation the same as symbols.

 
File

 
nxsdDataDictionary

Home | Site Contents | Documentation | NexusDB Manual V4 | Class Reference | Symbol Reference | Classes