]> granicus.if.org Git - icu/commitdiff
ICU-9721 Fix some uconfig test failures
authorMichael Ow <mow@svn.icu-project.org>
Sat, 23 Feb 2013 16:40:06 +0000 (16:40 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Sat, 23 Feb 2013 16:40:06 +0000 (16:40 +0000)
X-SVN-Rev: 33311

icu4c/source/i18n/identifier_info.cpp
icu4c/source/i18n/identifier_info.h
icu4c/source/test/intltest/itspoof.cpp

index a25ffea794ad2da782c1f54cab3e59df642c63be..369a0678c59f41579cbfbf5423d3786bbbef35d7 100644 (file)
@@ -228,6 +228,8 @@ const ScriptSet *IdentifierInfo::getCommonAmongAlternates() const {
     return fCommonAmongAlternates;
 }
 
+#if !UCONFIG_NO_NORMALIZATION
+
 URestrictionLevel IdentifierInfo::getRestrictionLevel(UErrorCode &status) const {
     if (!fIdentifierProfile->containsAll(*fIdentifier) || getNumerics()->size() > 1) {
         return USPOOF_UNRESTRICTIVE;
@@ -259,6 +261,8 @@ URestrictionLevel IdentifierInfo::getRestrictionLevel(UErrorCode &status) const
     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() +
index 49c982172098058b769c507bc88026daa4ba2159..c7cab61792697fb178eefc8ba6c0ee75a082e976 100644 (file)
@@ -147,6 +147,8 @@ class U_I18N_API IdentifierInfo : public UMemory {
       */
     int32_t getScriptCount() const;
 
+#if !UCONFIG_NO_NORMALIZATION
+
     /**
      * Find the "tightest" restriction level that the identifier satisfies.
      * 
@@ -155,6 +157,8 @@ class U_I18N_API IdentifierInfo : public UMemory {
      */
     URestrictionLevel getRestrictionLevel(UErrorCode &status) const;
 
+#endif /*!UCONFIG_NO_NORMALIZATION */
+
     UnicodeString toString() const;
 
     /**
index fca6066804377a27c3e6ad16800db224ba722e42..50971ca87ca0e6dea204b154d4c6e5dc25e5a82e 100644 (file)
@@ -450,7 +450,6 @@ void IntlTestSpoof::testConfData() {
         }
     }
 }
-#endif // UCONFIG_NO_REGULAR_EXPRESSIONS
 
 // testIdentifierInfo. Note that IdentifierInfo is not public ICU API at this time
 void IntlTestSpoof::testIdentifierInfo() {
@@ -754,3 +753,5 @@ void IntlTestSpoof::testMixedNumbers() {
         uspoof_close(sc);
     }
 }
+
+#endif /* !UCONFIG_NO_REGULAR_EXPRESSIONS && !UCONFIG_NO_NORMALIZATION && !UCONFIG_NO_FILE_IO */