#define LENGTHOF(array) (int32_t)(sizeof(array) / sizeof((array)[0]))
+#if !UCONFIG_NO_FORMATTING
+
U_NAMESPACE_BEGIN
// other must always be first.
}
U_NAMESPACE_END
+
+#endif /* #if !UCONFIG_NO_FORMATTING */
capitalizationInfoSet = rhs.capitalizationInfoSet;
capitalizationForUIListMenu = rhs.capitalizationForUIListMenu;
capitalizationForStandAlone = rhs.capitalizationForStandAlone;
+#if !UCONFIG_NO_BREAK_ITERATION
capitalizationBrkIter = (rhs.capitalizationBrkIter!=NULL)? rhs.capitalizationBrkIter->clone(): NULL;
+#endif
return *this;
}
delete lenientParseRules;
lenientParseRules = NULL;
+#if !UCONFIG_NO_BREAK_ITERATION
delete capitalizationBrkIter;
capitalizationBrkIter = NULL;
+#endif
if (localizations) localizations = localizations->unref();
}
fDates = (URelativeString*) uprv_malloc(sizeof(fDates[0])*fDatesLen);
uprv_memcpy(fDates, other.fDates, sizeof(fDates[0])*fDatesLen);
}
+#if !UCONFIG_NO_BREAK_ITERATION
if (other.fCapitalizationBrkIter != NULL) {
fCapitalizationBrkIter = (other.fCapitalizationBrkIter)->clone();
}
+#endif
}
RelativeDateFormat::RelativeDateFormat( UDateFormatStyle timeStyle, UDateFormatStyle dateStyle,
delete fDateTimeFormatter;
delete fCombinedFormat;
uprv_free(fDates);
+#if !UCONFIG_NO_BREAK_ITERATION
delete fCapitalizationBrkIter;
+#endif
}
delete cur->nf;
uprv_free(cur);
}
-
+
+#if !UCONFIG_NO_BREAK_ITERATION
delete fCapitalizationBrkIter;
+#endif
}
//----------------------------------------------------------------------
fTimeZoneFormat = NULL; // forces lazy instantiation with the other locale
fLocale = other.fLocale;
}
-
+
+#if !UCONFIG_NO_BREAK_ITERATION
if (other.fCapitalizationBrkIter != NULL) {
fCapitalizationBrkIter = (other.fCapitalizationBrkIter)->clone();
}
+#endif
return *this;
}
#ifndef U_HIDE_INTERNAL_API
+#ifndef U_HIDE_DRAFT_API
/**
* ICU use only.
* Initialize or change MeasureFormat class from subclass.
UMeasureFormatWidth width,
NumberFormat *nfToAdopt,
UErrorCode &status);
-
+#endif
/**
* ICU use only.
* Allows subclass to change locale. Note that this method also changes
const MeasureFormatCacheData *cache;
const SharedNumberFormat *numberFormat;
const SharedPluralRules *pluralRules;
+#ifndef U_HIDE_DRAFT_API
UMeasureFormatWidth width;
+#endif
// Declared outside of MeasureFormatSharedData because ListFormatter
// objects are relatively cheap to copy; therefore, they don't need to be
} else {
log_data_err("unum_open UNUM_SPELLOUT for en fails with status %s\n", myErrorName(status));
}
-
+#if !UCONFIG_NO_NORMALIZATION && !UCONFIG_NO_BREAK_ITERATION
for (itemPtr = tcItems; itemPtr->locale != NULL; itemPtr++) {
UChar ubufResult[kUBufMax];
int32_t ulenRes;
}
unum_close(unum);
}
+#endif /* #if !UCONFIG_NO_NORMALIZATION && !UCONFIG_NO_BREAK_ITERATION */
}
#endif /* #if !UCONFIG_NO_FORMATTING */
-# Copyright (c) 2001-2013 International Business Machines
+# Copyright (c) 2001-2014 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
enumset.h
errorcode.h
fieldpos.h
+filteredbrk.h
fmtable.h
format.h
fpositer.h
/********************************************************************
* COPYRIGHT:
- * Copyright (c) 2002-2013, International Business Machines Corporation and
+ * Copyright (c) 2002-2014, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
// for details on what to do in case of a failure of this test.
//
void RegexTest::Bug9283() {
+#if !UCONFIG_NO_NORMALIZATION
UErrorCode status = U_ZERO_ERROR;
UnicodeSet supplementalsWithCaseFolding("[[:CWCF:]&[\\U00010000-\\U0010FFFF]]", status);
REGEX_CHECK_STATUS;
UnicodeString cf = UnicodeString(c).foldCase();
REGEX_ASSERT(cf.length() >= 2);
}
+#endif /* #if !UCONFIG_NO_NORMALIZATION */
}
/*
*******************************************************************************
*
- * Copyright (C) 1999-2008, International Business Machines
+ * Copyright (C) 1999-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
*/
static void U_CALLCONV GlyphToCharTest(void)
{
+#if !UCONFIG_NO_BREAK_ITERATION
LEErrorCode status = LE_NO_ERROR;
le_font *font;
pl_fontRuns *fontRuns;
finish:
return;
+#endif
}
U_CFUNC void addCTests(TestNode **root)
/*
*******************************************************************************
*
- * Copyright (C) 1999-2013, International Business Machines
+ * Copyright (C) 1999-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
*/
static void U_CALLCONV GlyphToCharTest(void)
{
+#if !UCONFIG_NO_BREAK_ITERATION
LEErrorCode status = LE_NO_ERROR;
LEFontInstance *font;
FontRuns fontRuns(0);
finish:
return;
+#endif
}
U_CDECL_END