[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'System' (#rtl)

TCompareOption

How to compare strings

Declaration

Source position: ustringh.inc line 55

type TCompareOption = (

  coLingIgnoreCase,

  

Ignore case linguistically (usually identical to coIgnoreCase)

  coLingIgnoreDiacritic,

  

Ignore diacritic caharacters

  coIgnoreCase,

  

Ignore case (usually identical to coLingIgnoreCase)

  coIgnoreKanaType,

  

Corresponding hiragana and katakana characters compare as equal.

  coIgnoreNonSpace,

  

Ignore nonspace characters (usually identical to coLingIgnoreDiacritic)

  coIgnoreSymbols,

  

Ignore symbols and punctuation characters

  coIgnoreWidth,

  

Ignore half-width and full width characters (used in Chinese and Japanese)

  coLingCasing,

  

Use linguistic rules for casing, instead of file system rules

  coDigitAsNumbers,

  

Treat digits as numbers (20 before 120)

  coStringSort

  

Handle punctuation as symbols

);

Description

TCompareOption indicates how 2 strings should be compared. This option is used in the WideStringManager implementation when comparing 2 strings. The following options exist:

Ignore case linguistically (usually identical to coIgnoreCase)
Ignore diacritic caharacters
Ignore case (usually identical to coLingIgnoreCase)
Corresponding hiragana and katakana characters compare as equal.
Corresponding hiragana and katakana characters compare as equal.
Ignore nonspace characters (usually identical to coLingIgnoreDiacritic)
Ignore symbols and punctuation characters
Ignore half-width and full width characters (used in Chinese and Japanese)
Use linguistic rules for casing, instead of file system rules
Treat digits as numbers (20 before 120)
Handle punctuation as symbols

Not all platforms will support all possibilities.

See also

TWideStringManager

  

Record containing the various callbacks of the widestring manager.


Documentation generated on: Sep 28 2017