UScript.GetScriptExtensions(Int32, BitSet) Method
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.
Sets code point c's Script_Extensions as script code integers into the output BitSet.
[Android.Runtime.Register("getScriptExtensions", "(ILjava/util/BitSet;)I", "", ApiSince=24)]
public static int GetScriptExtensions (int c, Java.Util.BitSet? set);
[<Android.Runtime.Register("getScriptExtensions", "(ILjava/util/BitSet;)I", "", ApiSince=24)>]
static member GetScriptExtensions : int * Java.Util.BitSet -> int
Parameters
- c
- Int32
code point
- set
- BitSet
set of script code integers; will be cleared, then bits are set corresponding to c's Script_Extensions
Returns
negative number of script codes in c's Script_Extensions, or the non-negative single Script value
- Attributes
Remarks
Sets code point c's Script_Extensions as script code integers into the output BitSet. <ul> <li>If c does have Script_Extensions, then the return value is the negative number of Script_Extensions codes (= -set.cardinality()); in this case, the Script property value (normally Common or Inherited) is not included in the set. <li>If c does not have Script_Extensions, then the one Script code is put into the set and also returned. <li>If c is not a valid code point, then the one #UNKNOWN
code is put into the set and also returned. </ul> In other words, if the return value is non-negative, it is c's single Script code and the set contains exactly this Script code. If the return value is -n, then the set contains c's n>=2 Script_Extensions script codes.
Some characters are commonly used in multiple scripts. For more information, see UAX #24: http://www.unicode.org/reports/tr24/.
Java documentation for android.icu.lang.UScript.getScriptExtensions(int, java.util.BitSet)
.
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.