RuleBasedCollator.NumericCollation Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Method to retrieve the numeric collation value. -or- <strong>[icu]</strong> When numeric collation is turned on, this Collator makes substrings of digits sort according to their numeric values.
public bool NumericCollation { [Android.Runtime.Register("getNumericCollation", "()Z", "", ApiSince=24)] get; [Android.Runtime.Register("setNumericCollation", "(Z)V", "", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getNumericCollation", "()Z", "", ApiSince=24)>]
[<set: Android.Runtime.Register("setNumericCollation", "(Z)V", "", ApiSince=24)>]
member this.NumericCollation : bool with get, set
Property Value
true if numeric collation is turned on, false otherwise
- Attributes
Remarks
Property getter documentation:
Method to retrieve the numeric collation value. When numeric collation is turned on, this Collator generates a collation key for the numeric value of substrings of digits. This is a way to get '100' to sort AFTER '2'
Java documentation for android.icu.text.RuleBasedCollator.getNumericCollation()
.
Property setter documentation:
<strong>[icu]</strong> When numeric collation is turned on, this Collator makes substrings of digits sort according to their numeric values.
This is a way to get '100' to sort AFTER '2'. Note that the longest digit substring that can be treated as a single unit is 254 digits (not counting leading zeros). If a digit substring is longer than that, the digits beyond the limit will be treated as a separate digit substring.
A "digit" in this sense is a code point with General_Category=Nd, which does not include circled numbers, roman numerals, etc. Only a contiguous digit substring is considered, that is, non-negative integers without separators. There is no support for plus/minus signs, decimals, exponents, etc.
Java documentation for android.icu.text.RuleBasedCollator.setNumericCollation(boolean)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.