]> granicus.if.org Git - icu/commitdiff
ICU-9168 Add some more fix for uconfig and header test failures
authorMichael Ow <mow@svn.icu-project.org>
Fri, 2 Mar 2012 20:18:40 +0000 (20:18 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Fri, 2 Mar 2012 20:18:40 +0000 (20:18 +0000)
X-SVN-Rev: 31577

icu4c/source/i18n/smpdtfmt.cpp
icu4c/source/i18n/unicode/dtfmtsym.h
icu4c/source/i18n/unicode/udat.h
icu4c/source/test/cintltst/cdattst.c
icu4c/source/test/hdrtst/cxxfiles.txt
icu4c/source/test/intltest/dtfmttst.cpp

index 025f0ccae18ae714475b845eabdc751245b5c594..7df5f69c1bcb88d9a57732dca2ec0eda461daab5 100644 (file)
@@ -1536,8 +1536,8 @@ SimpleDateFormat::subFormat(UnicodeString &appendTo,
             firstField.toTitle(NULL, fLocale, U_TITLECASE_NO_LOWERCASE | U_TITLECASE_NO_BREAK_ADJUSTMENT);
             appendTo.replaceBetween(beginOffset, appendTo.length(), firstField);
         }
+    }
 #endif
-    } 
 
     handler.addAttribute(fgPatternIndexToDateFormatField[patternCharIndex], beginOffset, appendTo.length());
 }
index dd511bc2ff4b99a78454660110863f2d5e3c23fe..1da51eb464487bc9147a849a2bdab4013760d3be 100644 (file)
@@ -718,12 +718,14 @@ private:
      */
     UnicodeString   fLocalPatternChars;
 
+#ifndef U_HIDE_INTERNAL_API
     /**
      * Capitalization transforms. For each usage type, the first array element indicates
      * whether to titlecase for uiListOrMenu context, the second indicates whether to
      * titlecase for stand-alone context.
      */
      UBool fCapitalization[kCapContextUsageTypeCount][2];
+#endif
 
 
 private:
index 3b64b99635eb4869cb657309192abc849b8f26b0..3882b28d9f3f3b7707684dd5ee1a0467b43cd032 100644 (file)
@@ -178,14 +178,12 @@ typedef enum UDateFormatStyle {
  *  @draft ICU 49
  */
 typedef enum UDateFormatContextType {
-#if !UCONFIG_NO_BREAK_ITERATION
     /**
      * Type (key) for specifying the capitalization context for which a date
      * is to be formatted (possible values are in UDateFormatContextValue).
      * @draft ICU 49
      */
     UDAT_CAPITALIZATION = 1
-#endif
 } UDateFormatContextType;
 
 /** Values for date format context types
index 34b396af61d5d98048aeeeff0b47efec1b6c014b..edc3afb19158f38827a3470d9a4a179def75dec1 100644 (file)
@@ -1287,7 +1287,6 @@ static void TestContext(void) {
                 if ( U_FAILURE(status) ) {
                     log_err("FAIL: udatpg_getBestPattern for locale %s, status %s\n", textContextItemPtr->locale, u_errorName(status) );
                 } else {
-#if !UCONFIG_NO_BREAK_ITERATION
                     udat_applyPattern(udfmt, FALSE, ubuf, len);
                     udat_setDefaultContext(udfmt, UDAT_CAPITALIZATION, textContextItemPtr->capitalizationContext, &status);
                     if ( U_FAILURE(status) ) {
@@ -1316,7 +1315,6 @@ static void TestContext(void) {
                                     textContextItemPtr->locale, (int)textContextItemPtr->capitalizationContext, getContext );
                         }
                     }
-#endif
                 }
                 udatpg_close(udtpg);
             }
index 8171defe385703a77fd4fadc347e7901aebc0bfa..8b1ad41d11f06e80d0394f65a042f7910548d952 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2001-2011 International Business Machines
+# Copyright (c) 2001-2012 International Business Machines
 # Corporation and others. All Rights Reserved.
 # Begin temporary addition.
 # These are very bad "C" APIs that do not work with a C compiler and
@@ -85,6 +85,8 @@ tmunit.h
 tmutamt.h
 tmutfmt.h
 translit.h
+tzfmt.h
+tznames.h
 tzrule.h
 tztrans.h
 ucharstrie.h
index 359fb0ecfb0bce49b2a745f60ac30c286b9438dd..7832af732c105b143b55717d842c5f948cb6e2fd 100644 (file)
@@ -3875,7 +3875,6 @@ void DateFormatTest::TestContext()
            if (U_FAILURE(status)) {
                 dataerrln(UnicodeString("FAIL: Unable to create SimpleDateFormat for specified pattern with locale ") + UnicodeString(itemPtr->locale));
            } else {
-#if !UCONFIG_NO_BREAK_ITERATION
                UDateFormatContextType contextType = UDAT_CAPITALIZATION;
                UDateFormatContextValue contextValue = itemPtr->capitalizationContext;
                UnicodeString result;
@@ -3886,7 +3885,6 @@ void DateFormatTest::TestContext()
                            ", capitalizationContext " + (int)itemPtr->capitalizationContext +
                            ", expected " + itemPtr->expectedFormat + ", got " + result);
                }
-#endif
            }
            if (sdmft) {
                delete sdmft;