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());
}
*/
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:
* @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
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) ) {
textContextItemPtr->locale, (int)textContextItemPtr->capitalizationContext, getContext );
}
}
-#endif
}
udatpg_close(udtpg);
}
-# 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
tmutamt.h
tmutfmt.h
translit.h
+tzfmt.h
+tznames.h
tzrule.h
tztrans.h
ucharstrie.h
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;
", capitalizationContext " + (int)itemPtr->capitalizationContext +
", expected " + itemPtr->expectedFormat + ", got " + result);
}
-#endif
}
if (sdmft) {
delete sdmft;