TCompareOption¶
How to compare strings.
Declaration¶
Source position: ustringh.inc line 81
type
TCompareOption = (coLingIgnoreCase,coLingIgnoreDiacritic,coIgnoreCase,
coIgnoreKanaType,coIgnoreNonSpace,coIgnoreSymbols,
coIgnoreWidth,coLingCasing,coDigitAsNumbers,
coStringSort)Values¶
| Value | Description |
|---|---|
| coLingIgnoreCase | Ignore case linguistically (usually identical to coIgnoreCase). |
| coLingIgnoreDiacritic | Ignore diacritic characters. |
| 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 characters.
- 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¶
| Name | Description |
|---|---|
| TWideStringManager | Record containing the various callbacks of the widestring manager. |