ICU-8021 fix namespace problem from ucol_imp.h r28996

X-SVN-Rev: 29055
This commit is contained in:
Markus Scherer 2010-11-16 21:46:24 +00:00
parent 52dd980540
commit fa4ce3e6ae
2 changed files with 22 additions and 15 deletions

View File

@ -36,6 +36,8 @@
#include "cmemory.h"
#include "cstring.h"
U_NAMESPACE_BEGIN
static const InverseUCATableHeader* _staticInvUCA = NULL;
static UDataMemory* invUCA_DATA_MEM = NULL;
@ -1064,7 +1066,8 @@ ucol_uprv_bld_copyRangeFromUCA(UColTokenParser *src, tempUCATable *t,
}
}
UCATableHeader *ucol_assembleTailoringTable(UColTokenParser *src, UErrorCode *status) {
U_CFUNC UCATableHeader *
ucol_assembleTailoringTable(UColTokenParser *src, UErrorCode *status) {
U_NAMESPACE_USE
uint32_t i = 0;
@ -1409,4 +1412,6 @@ ucol_findReorderingEntry(const char* name) {
return USCRIPT_INVALID_CODE;
}
U_NAMESPACE_END
#endif /* #if !UCONFIG_NO_COLLATION */

View File

@ -290,10 +290,10 @@ typedef struct collIterate : public UMemory {
int32_t offsetRepeatCount; /* Repeat stored offset if non-zero */
int32_t offsetRepeatValue; /* offset value to repeat */
U_NAMESPACE_QUALIFIER UnicodeString writableBuffer;
UnicodeString writableBuffer;
const UChar *fcdPosition; /* Position in the original string to continue FCD check from. */
const UCollator *coll;
const U_NAMESPACE_QUALIFIER Normalizer2 *nfd;
const Normalizer2 *nfd;
uint8_t flags;
uint8_t origFlags;
uint32_t *extendCEs; /* This is use if CEs is not big enough */
@ -341,18 +341,18 @@ struct collIterateState {
U_CAPI void U_EXPORT2
uprv_init_collIterate(const UCollator *collator,
const UChar *sourceString, int32_t sourceLen,
collIterate *s, UErrorCode *status);
U_NAMESPACE_QUALIFIER collIterate *s, UErrorCode *status);
/* Internal functions for C test code. */
U_CAPI collIterate * U_EXPORT2
U_CAPI U_NAMESPACE_QUALIFIER collIterate * U_EXPORT2
uprv_new_collIterate(UErrorCode *status);
U_CAPI void U_EXPORT2
uprv_delete_collIterate(collIterate *s);
uprv_delete_collIterate(U_NAMESPACE_QUALIFIER collIterate *s);
/* @return s->pos == s->endp */
U_CAPI UBool U_EXPORT2
uprv_collIterateAtEnd(collIterate *s);
uprv_collIterateAtEnd(U_NAMESPACE_QUALIFIER collIterate *s);
#ifdef XP_CPLUSPLUS
@ -368,7 +368,7 @@ struct UCollationElements : public U_NAMESPACE_QUALIFIER UMemory
/**
* Struct wrapper for source data
*/
collIterate iteratordata_;
U_NAMESPACE_QUALIFIER collIterate iteratordata_;
/**
* Indicates if this data has been reset.
*/
@ -515,15 +515,17 @@ uprv_init_pce(const struct UCollationElements *elems);
}
U_CFUNC
uint32_t ucol_prv_getSpecialCE(const UCollator *coll, UChar ch, uint32_t CE, collIterate *source, UErrorCode *status);
uint32_t ucol_prv_getSpecialCE(const UCollator *coll, UChar ch, uint32_t CE,
U_NAMESPACE_QUALIFIER collIterate *source, UErrorCode *status);
U_CFUNC
uint32_t ucol_prv_getSpecialPrevCE(const UCollator *coll, UChar ch, uint32_t CE,
collIterate *source, UErrorCode *status);
U_CAPI uint32_t U_EXPORT2 ucol_getNextCE(const UCollator *coll, collIterate *collationSource, UErrorCode *status);
U_NAMESPACE_QUALIFIER collIterate *source, UErrorCode *status);
U_CAPI uint32_t U_EXPORT2 ucol_getNextCE(const UCollator *coll,
U_NAMESPACE_QUALIFIER collIterate *collationSource, UErrorCode *status);
U_CFUNC uint32_t U_EXPORT2 ucol_getPrevCE(const UCollator *coll,
collIterate *collationSource,
UErrorCode *status);
U_NAMESPACE_QUALIFIER collIterate *collationSource,
UErrorCode *status);
/* function used by C++ getCollationKey to prevent restarting the calculation */
U_CFUNC int32_t
ucol_getSortKeyWithAllocation(const UCollator *coll,
@ -557,7 +559,7 @@ ucol_calcSortKeySimpleTertiary(const UCollator *coll,
U_CFUNC
int32_t
ucol_getSortKeySize(const UCollator *coll, collIterate *s,
ucol_getSortKeySize(const UCollator *coll, U_NAMESPACE_QUALIFIER collIterate *s,
int32_t currentSize, UColAttributeValue strength,
int32_t len);
/**
@ -1124,7 +1126,7 @@ static inline UBool ucol_unsafeCP(UChar c, const UCollator *coll) {
#endif /* XP_CPLUSPLUS */
/* The offsetBuffer in collIterate might need to be freed to avoid memory leaks. */
void ucol_freeOffsetBuffer(collIterate *s);
void ucol_freeOffsetBuffer(U_NAMESPACE_QUALIFIER collIterate *s);
#endif /* #if !UCONFIG_NO_COLLATION */