// time it is created, in setIdentifier().
final int cardinalityPlus = requiredScripts.cardinality() + (commonAmongAlternates.cardinality() == 0 ? scriptSetSet.size() : 1);
if (cardinalityPlus < 2) {
- return RestrictionLevel.SINGLE_SCRIPT;
+ return RestrictionLevel.SINGLE_SCRIPT_RESTRICTIVE;
}
if (containsWithAlternates(JAPANESE, requiredScripts) || containsWithAlternates(CHINESE, requiredScripts)
|| containsWithAlternates(KOREAN, requiredScripts)) {
*
* @draft ICU 53
*/
- SINGLE_SCRIPT,
+ SINGLE_SCRIPT_RESTRICTIVE,
/**
* All characters in each identifier must be from a single script, or from the combinations: Latin + Han +
* Hiragana + Katakana; Latin + Han + Bopomofo; or Latin + Han + Hangul. Note that this level will satisfy the
Object[][] tests = {
{"aγ♥", RestrictionLevel.UNRESTRICTIVE},
{"a", RestrictionLevel.ASCII},
- {"γ", RestrictionLevel.SINGLE_SCRIPT},
+ {"γ", RestrictionLevel.SINGLE_SCRIPT_RESTRICTIVE},
{"aアー", RestrictionLevel.HIGHLY_RESTRICTIVE},
{"aऄ", RestrictionLevel.MODERATELY_RESTRICTIVE},
{"aγ", RestrictionLevel.MINIMALLY_RESTRICTIVE},