&_ASCIIData,
&_UTF7Data, &_Bocu1Data, &_UTF16Data, &_UTF32Data, &_CESU8Data, &_IMAPData,
+
+#if UCONFIG_NO_LEGACY_CONVERSION
+ NULL,
+#else
&_CompoundTextData
+#endif
};
/* Please keep this in binary sorted order for getAlgorithmicTypeFromName.
+/* spam */
+
/*
*******************************************************************************
* Copyright (C) 1996-2011, International Business Machines Corporation and
U_NAMESPACE_END
+#else
+U_NAMESPACE_BEGIN
+class MessagePattern; /* forward reference, though draft API. */
+enum UMessagePatternApostropheMode{};
+typedef enum UMessagePatternApostropheMode UMessagePatternApostropheMode;
+
+U_NAMESPACE_END
+
#endif /* U_HIDE_DRAFT_API */
#endif // !UCONFIG_NO_FORMATTING
virtual int32_t getMinLinearMatch() const { return UCharsTrie::kMinLinearMatch; }
virtual int32_t getMaxLinearMatchLength() const { return UCharsTrie::kMaxLinearMatchLength; }
+#ifndef U_HIDE_INTERNAL_API
class UCTLinearMatchNode : public LinearMatchNode {
public:
UCTLinearMatchNode(const UChar *units, int32_t len, Node *nextNode);
private:
const UChar *s;
};
+#endif
virtual Node *createLinearMatchNode(int32_t i, int32_t unitIndex, int32_t length,
Node *nextNode) const;
#include "unicode/utypes.h"
+#if !UCONFIG_NO_COLLATION && !UCONFIG_NO_NORMALIZATION
+
#include "unicode/alphaindex.h"
#include "unicode/coll.h"
#include "unicode/normalizer2.h"
}
U_NAMESPACE_END
+
+#endif
#include "unicode/uobject.h"
#include "unicode/locid.h"
+
+#if !UCONFIG_NO_COLLATION && !UCONFIG_NO_NORMALIZATION
+
/**
* \file
* \brief C++ API: Index Characters
public:
-#ifndef U_HIDE_INTERNAL_API
/**
* Language Types. For internal ICU use only.
- * @internal
+ * @internal (but not hidden with U_HIDE_INTERNAL_API because it is used in public API)
*/
enum ELangType {
/** @internal */
* @internal
*/
static ELangType langTypeFromLocale(const Locale &loc);
-#endif /* U_HIDE_INTERNAL_API */
private:
U_NAMESPACE_END
#endif /* U_HIDE_DRAFT_API */
+#endif /* UCONFIG_NO_COLLATION / UCONFIG_NO_NORMALIZATION */
#endif
roll(field, (int32_t)(up ? +1 : -1), status);
}
+#ifndef U_HIDE_DEPRECATED_API
inline void
Calendar::roll(EDateFields field, UBool up, UErrorCode& status)
{
roll((UCalendarDateFields) field, up, status);
}
+#endif
// -------------------------------------
fIsSet[field] = TRUE; // Remove later
}
+
+#ifndef U_HIDE_INTERNAL_API
inline int32_t Calendar::weekNumber(int32_t dayOfPeriod, int32_t dayOfWeek)
{
return weekNumber(dayOfPeriod, dayOfPeriod, dayOfWeek);
}
-
+#endif
U_NAMESPACE_END
return *strPtr;
}
+#ifndef U_HIDE_INTERNAL_API
inline const UnicodeString &
DecimalFormatSymbols::getConstSymbol(ENumberFormatSymbol symbol) const {
const UnicodeString *strPtr;
}
return *strPtr;
}
+#endif
+
// -------------------------------------
return locale;
}
+#ifndef U_HIDE_INTERNAL_API
inline const UChar*
DecimalFormatSymbols::getCurrencyPattern() const {
return currPattern;
}
+#endif
+
U_NAMESPACE_END
#endif /* #if !UCONFIG_NO_FORMATTING */
return format((int64_t)number, appendTo, pos);
}
+#ifndef U_HIDE_INTERNAL_API
inline const UnicodeString &
DecimalFormat::getConstSymbol(DecimalFormatSymbols::ENumberFormatSymbol symbol) const {
return fSymbols->getConstSymbol(symbol);
}
+#endif
U_NAMESPACE_END
return *fValue.fString;
}
+#ifndef U_HIDE_DEPRECATED_API
inline int32_t Formattable::getLong(UErrorCode* status) const {
return getLong(*status);
}
+#endif
+
U_NAMESPACE_END
setRuleStringFromCollator();
}
+#ifndef U_HIDE_INTERNAL_API
inline const UCollator * RuleBasedCollator::getUCollator()
{
return ucollator;
}
+#endif
inline Collator::EComparisonResult RuleBasedCollator::getEComparisonResult(
const UCollationResult &result) const
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_NAMESPACE_END
UNUM_PAD_AFTER_SUFFIX
} UNumberFormatPadPosition;
-#ifndef U_HIDE_DRAFT_API
+/* #ifndef U_HIDE_DRAFT_API: can't hide- used in dcfmtshm.h for size of DecimalFormatSymbols */
/**
* Constants for specifying currency spacing
* @draft ICU 4.8
UNUM_CURRENCY_SPACING_COUNT
};
typedef enum UCurrencySpacing UCurrencySpacing; /**< @draft ICU 4.8 */
-#endif /* U_HIDE_DRAFT_API */
+/* #endif U_HIDE_DRAFT_API */
/**
* Create and return a new UNumberFormat for formatting and parsing
const void **context,
UErrorCode *status);
-#ifndef U_HIDE_DRAFT_API
+/* #ifndef U_HIDE_DRAFT_API -- Don't hide this, used in regex.h */
/**
* Function pointer for a regular expression find callback function.
*
int64_t matchIndex);
U_CDECL_END
+#ifndef U_HIDE_DRAFT_API
+
/**
* Set the find progress callback function for this URegularExpression.
*
}
static void TestAvailableIsoCodes(void){
+#if !UCONFIG_NO_FORMATTING
UErrorCode errorCode = U_ZERO_ERROR;
const char* eurCode = "EUR";
const char* usdCode = "USD";
}
free(isoCode);
+#endif
}
#define TESTCASE(name) addTest(root, &name, "tsutil/cldrtest/" #name)
#include "unicode/tblcoll.h"
#include "unicode/uniset.h"
+#if !UCONFIG_NO_COLLATION && !UCONFIG_NO_NORMALIZATION
+
// #include <string>
// #include <iostream>
// Does not attempt to check complete functionality.
//
void AlphabeticIndexTest::APITest() {
-
//
// Simple constructor and destructor, getBucketCount()
//
TEST_ASSERT(bucketCount > 25);
TEST_ASSERT(filledBucketCount > 15);
}
+#endif
TESTCLASS(20, CollationFinnishTest); // removed by weiv - we have changed Finnish collation
//TESTCLASS(21, RandomCollatorTest); // See ticket 5747 about reenabling this test.
TESTCLASS(21, SSearchTest);
+#if !UCONFIG_NO_COLLATION && !UCONFIG_NO_NORMALIZATION
TESTCLASS(22, AlphabeticIndexTest);
+#endif
default: name = ""; break;
}
// TESTCLASSID_CTOR(LocaleKeyFactory, (42));
//#endif
#endif
+
+#if !UCONFIG_NO_COLLATION && !UCONFIG_NO_NORMALIZATION
TESTCLASSID_NONE_CTOR(AlphabeticIndex, (Locale::getEnglish(), status));
+#endif
#if UOBJTEST_DUMP_IDS
int i;