4D v19Strings |
||||||||||||||||||||||||||||||||||||||||||
|
4D v19
Strings
|
Constant | Type | Value | Comment |
sk case insensitive | Longint | 2 | Strings are compared according to the current data language with no consideration of capitalization differences. Note that diacritical marks are taken into consideration. For example, "A" is considered the same as "a", however "a" is not considered the same as "à" . By default, 4D string comparison is case insensitive.
Can be combined with:
|
sk char codes | Longint | 1 | Strings are compared according to character codes. Current data language settings are not taken into account during the comparison.
Can be combined with: sk case insensitive Only for "a-z" or "A-Z" ranges. (e.g., Alpha = alpha, but Alpha # âlphà) |
sk diacritic insensitive | Longint | 4 | Strings are compared according to the current data language, however the diacritical mark (e.g., accent or symbol) of letters is ignored. For example, "a" is considered the same as "à".
Note for Japanese users: By default, 4D string comparison is diacritic sensitive when the data language is set to Japanese. This behaviour is different to all other languages.
Can be combined with:
|
sk ignore empty strings | Longint | 1 | Remove empty strings from the resulting collection (they are ignored) |
sk kana insensitive | Longint | 8 | For Japanese language. Controls the distinction between Hiragana and Katakana syllables. From a semantic point of view, the difference between Hiragana and Katakana is usually significant, but to capture as many results as possible, the default mode in 4D is to ignore the difference (kana insensitive). For example, "あ" is considered the same as "ア". The sk strict option performs a kana sensitive comparison. sk kana insensitive can be used to partially relax the rule to be kana insensitive.
Note: The data language must be set to Japanese to use this option. For all other languages, the option is ignored and Compare strings will work as if sk strict was specified. In other words, setting this option in a non-Japanese context would actually make the comparison kana sensitive (the opposite effect).
When this option is set, sk width insensitive is implicit (considered set).
Can be combined with:
|
sk strict | Longint | 0 | Strings are compared for exact matches according to the current data language. In most cases, capitalization and diacritical marks of letters are taken into account during the comparison.
Can be combined with:
|
sk trim spaces | Longint | 2 | Trim space characters at the beginning and end of substrings |
sk whole word | Longint | 32 | Strings are compared according to the current data language. Only strings that are complete words are considered. Matching strings within other strings are not considered. For example, "where" is not considered when found within "somewhere".
Can be combined with: |
sk width insensitive | Longint | 16 | For Japanese language. Corresponds to the "East Asian Width" Unicode standard, as defined in Unicode Standard Annex #11. From a semantic point of view, the difference between a "narrow" and "wide" character or a "full width" and "half width" character is usually insignificant, which is the default mode in 4D. For example, "ア" is considered the same as "ア". The sk strict option performs a width sensitive comparison. The sk width insensitive option can be used to partially relax the rule to be width insensitive (see example 2).
Notes:
When this option is set, sk kana insensitive is implicit (considered set).
Can be combined with:
|
Product: 4D
Theme: List of constant themes
Created: 4D v16 R6
4D Language Reference ( 4D v19)
4D Language Reference ( 4D v19.1)