u_strlen(const UChar *s);
#endif
-#ifndef U_HIDE_INTERNAL_API
/**
* \def U_STRING_CASE_MAPPER_DEFINED
* @internal
*/
-
#ifndef U_STRING_CASE_MAPPER_DEFINED
#define U_STRING_CASE_MAPPER_DEFINED
UErrorCode *pErrorCode);
#endif
-#endif /* U_HIDE_INTERNAL_API */
U_NAMESPACE_BEGIN
void setCurrencyForSymbols();
public:
-#ifndef U_HIDE_INTERNAL_API
/**
* _Internal_ function - more efficient version of getSymbol,
* returning a const reference to one of the symbol strings.
*/
inline const UnicodeString &getConstSymbol(ENumberFormatSymbol symbol) const;
+#ifndef U_HIDE_INTERNAL_API
/**
* Returns that pattern stored in currecy info. Internal API for use by NumberFormat API.
* @internal
return locale;
}
+#ifndef U_HIDE_INTERNAL_API
inline const UChar*
DecimalFormatSymbols::getCurrencyPattern() const {
return currPattern;
}
+#endif /* U_HIDE_INTERNAL_API */
U_NAMESPACE_END
#include "unicode/curramt.h"
#include "unicode/enumset.h"
-#ifndef U_HIDE_INTERNAL_API
/**
* \def UNUM_DECIMALFORMAT_INTERNAL_SIZE
* @internal
#if UCONFIG_FORMAT_FASTPATHS_49
#define UNUM_DECIMALFORMAT_INTERNAL_SIZE 16
#endif
-#endif /* U_HIDE_INTERNAL_API */
U_NAMESPACE_BEGIN
*/
Locale getLocale(ULocDataLocaleType type, UErrorCode& status) const;
-#ifndef U_HIDE_INTERNAL_API
/**
* Constants for capitalization context usage types.
* @internal
kCapContextUsageMetazoneShort,
kCapContextUsageTypeCount
};
-#endif /* U_HIDE_INTERNAL_API */
/**
* ICU "poor man's RTTI", returns a UClassID for the actual class.
class CharString;
class DigitList;
-#ifndef U_HIDE_INTERNAL_API
/**
* \def UNUM_INTERNAL_STACKARRAY_SIZE
* @internal
#else
#define UNUM_INTERNAL_STACKARRAY_SIZE 128
#endif
-#endif /* U_HIDE_INTERNAL_API */
/**
* Formattable objects can be passed to the Format class or
return *fValue.fString;
}
+#ifndef U_HIDE_DEPRECATED_API
inline int32_t Formattable::getLong(UErrorCode* status) const {
return getLong(*status);
}
+#endif /* U_HIDE_DEPRECATED_API */
inline UFormattable* Formattable::toUFormattable() {
return (UFormattable*)(this);
#include "unicode/utypes.h"
-#ifndef U_HIDE_INTERNAL_API
/**
* \def NUMSYS_NAME_CAPACITY
* Size of a numbering system name.
* @internal
*/
#define NUMSYS_NAME_CAPACITY 8
-#endif /* U_HIDE_INTERNAL_API */
/**
setRuleStringFromCollator();
}
+#ifndef U_HIDE_INTERNAL_API
inline const UCollator * RuleBasedCollator::getUCollator()
{
return ucollator;
}
+#endif /* U_HIDE_INTERNAL_API */
U_NAMESPACE_END
ID.truncate(ID.length()-1);
}
+#ifndef U_HIDE_INTERNAL_API
inline Transliterator::Token Transliterator::integerToken(int32_t i) {
Token t;
t.integer = i;
t.pointer = p;
return t;
}
+#endif /* U_HIDE_INTERNAL_API */
U_NAMESPACE_END
UTZFMT_PAT_NEGATIVE_H,
#endif /* U_HIDE_DRAFT_API */
-#ifndef U_HIDE_INTERNAL_API
/**
* Number of UTimeZoneFormatGMTOffsetPatternType types.
* @internal
*/
UTZFMT_PAT_COUNT
-#endif /* U_HIDE_INTERNAL_API */
} UTimeZoneFormatGMTOffsetPatternType;
/**
* @draft ICU 51 */
UNUM_SCALE = UNUM_LENIENT_PARSE + 2,
#endif /* U_HIDE_DRAFT_API */
-#ifndef U_HIDE_INTERNAL_API
+
/** Count of "regular" numeric attributes.
* @internal */
UNUM_NUMERIC_ATTRIBUTE_COUNT,
* All items after this one are stored in boolean form.
* @internal */
UNUM_MAX_NONBOOLEAN_ATTRIBUTE = 0x0FFF,
-#endif /* U_HIDE_INTERNAL_API */
/** If 1, specifies that if setting the "max integer digits" attribute would truncate a value, set an error status rather than silently truncating.
* For example, formatting the value 1234 with 4 max int digits would succeed, but formatting 12345 would fail. There is no effect on parsing.
*/
UNUM_PARSE_NO_EXPONENT,
-#ifndef U_HIDE_INTERNAL_API
/** Limit of boolean attributes.
* @internal */
UNUM_LIMIT_BOOLEAN_ATTRIBUTE
-#endif /* U_HIDE_INTERNAL_API */
} UNumberFormatAttribute;
/**
log_data_err("uloc_getDisplayName for displayLocale %s and namedLocale %s returns unexpected name or status %s\n", itemPtr->displayLocale, itemPtr->namedLocale, myErrorName(status));
}
+#if !UCONFIG_NO_FORMATTING
status = U_ZERO_ERROR;
uldn = uldn_open(itemPtr->displayLocale, ULDN_STANDARD_NAMES, &status);
if (U_SUCCESS(status)) {
} else {
log_data_err("uldn_open fails for displayLocale %s, status=%s\n", itemPtr->displayLocale, u_errorName(status));
}
+#endif
}
}
// similar Windows and non-Windows SBCS encodings. State was kept in the shared
// Charset Recognizer objects, and could be overwritten.
void CharsetDetectionTest::Ticket6954Test() {
-#if !UCONFIG_NO_CONVERSION
+#if !UCONFIG_NO_CONVERSION && !UCONFIG_NO_FORMATTING
UErrorCode status = U_ZERO_ERROR;
UnicodeString sISO = "This is a small sample of some English text. Just enough to be sure that it detects correctly.";
UnicodeString ssWindows("This is another small sample of some English text. Just enough to be sure that it detects correctly."
#include "toolutil.h"
#include "ustrfmt.h"
+#if !UCONFIG_NO_FORMATTING
+
#define DERB_VERSION "1.1"
#define DERB_DEFAULT_TRUNC 80
u_fprintf(ustderr, "%s: error %d while %s: %s\n", pname, *status, when, u_errorName(*status));
}
+#else
+extern int
+main(int argc, char* argv[]) {
+ /* Changing stdio.h ustdio.h requires that formatting not be disabled. */
+ return 3;
+}
+#endif /* !UCONFIG_NO_FORMATTING */
+
/*
* Local Variables:
* indent-tabs-mode: nil