AbstractGlobalizationSettings

AbstractGlobalizationSettings class

Represents the globalization settings.

Methods

NameDescription
compareCompares two string values according to certain collation rules.
getCollationKeyTransforms the string into a comparable object according to certain collation rules.

compare(v1, v2, ignoreCase)

Compares two string values according to certain collation rules.

ParameterTypeDescription
v1Stringthe first string
v2Stringthe second string
ignoreCasebooleanwhether ignore case when comparing values

Returns: Integer that indicates the lexical relationship between the two comparands

getCollationKey(v, ignoreCase)

Transforms the string into a comparable object according to certain collation rules.

ParameterTypeDescription
vStringString value needs to be compared with others.
ignoreCasebooleanwhether ignore case when comparing values

Returns: Object can be used to compare or sort string values