class
AbstractGlobalizationSettings
Source: aspose.
Represents the globalization settings.
Methods
compare(v1, v2, ignoreCase) → Number
Compares two string values according to certain collation rules.
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
v1 |
String |
|
the first string |
|
v2 |
String |
|
the second string |
|
ignoreCase |
boolean |
|
whether ignore case when comparing values |
- Returns
-
NumberInteger that indicates the lexical relationship between the two comparands
getCollationKey(v, ignoreCase) → IComparable
Transforms the string into a comparable object according to certain collation rules.
Parameters
| Name | Type | Optional | Description |
|---|---|---|---|
|
v |
String |
|
String value needs to be compared with others. |
|
ignoreCase |
boolean |
|
whether ignore case when comparing values |
- Returns
-
IComparableObject can be used to compare or sort string values