return fCommonAmongAlternates;
}
+#if !UCONFIG_NO_NORMALIZATION
+
URestrictionLevel IdentifierInfo::getRestrictionLevel(UErrorCode &status) const {
if (!fIdentifierProfile->containsAll(*fIdentifier) || getNumerics()->size() > 1) {
return USPOOF_UNRESTRICTIVE;
return USPOOF_MINIMALLY_RESTRICTIVE;
}
+#endif /* !UCONFIG_NO_NORMALIZATION */
+
int32_t IdentifierInfo::getScriptCount() const {
// Note: Common and Inherited scripts were removed by setIdentifier(), and do not appear in fRequiredScripts.
int32_t count = fRequiredScripts->countMembers() +
*/
int32_t getScriptCount() const;
+#if !UCONFIG_NO_NORMALIZATION
+
/**
* Find the "tightest" restriction level that the identifier satisfies.
*
*/
URestrictionLevel getRestrictionLevel(UErrorCode &status) const;
+#endif /*!UCONFIG_NO_NORMALIZATION */
+
UnicodeString toString() const;
/**
}
}
}
-#endif // UCONFIG_NO_REGULAR_EXPRESSIONS
// testIdentifierInfo. Note that IdentifierInfo is not public ICU API at this time
void IntlTestSpoof::testIdentifierInfo() {
uspoof_close(sc);
}
}
+
+#endif /* !UCONFIG_NO_REGULAR_EXPRESSIONS && !UCONFIG_NO_NORMALIZATION && !UCONFIG_NO_FILE_IO */