ICU-1541 consistently added U_CAPI & U_EXPORT2 to all the declarations and definitions

X-SVN-Rev: 7039
This commit is contained in:
Vladimir Weinstein 2001-11-21 01:08:55 +00:00
parent 1b0596cd30
commit 6bc1ab66fe
25 changed files with 401 additions and 358 deletions

View File

@ -13,7 +13,7 @@
#include "cmemory.h"
U_CDECL_BEGIN
static void U_CALLCONV _deleteRule(void *rule) {
static void U_EXPORT2 U_CALLCONV _deleteRule(void *rule) {
delete (U_NAMESPACE_QUALIFIER TransliterationRule *)rule;
}
U_CDECL_END

View File

@ -310,7 +310,7 @@ void Entry::setFactory(Transliterator::Factory factory,
// UObjectDeleter for Hashtable::setValueDeleter
U_CDECL_BEGIN
static void U_CALLCONV
static void U_EXPORT2 U_CALLCONV
deleteEntry(void* obj) {
delete (Entry*) obj;
}

View File

@ -14,7 +14,7 @@
U_NAMESPACE_USE
U_CAPI UBreakIterator*
U_CAPI UBreakIterator* U_EXPORT2
ubrk_open(UBreakIteratorType type,
const char *locale,
const UChar *text,
@ -67,7 +67,7 @@ ubrk_open(UBreakIteratorType type,
return (UBreakIterator*)result;
}
U_CAPI UBreakIterator*
U_CAPI UBreakIterator* U_EXPORT2
ubrk_openRules(const UChar *rules,
int32_t rulesLength,
const UChar *text,
@ -79,7 +79,7 @@ ubrk_openRules(const UChar *rules,
return 0;
}
U_CAPI UBreakIterator *
U_CAPI UBreakIterator * U_EXPORT2
ubrk_safeClone(
const UBreakIterator *bi,
void *stackBuffer,
@ -97,7 +97,7 @@ ubrk_safeClone(
createBufferClone(stackBuffer, *pBufferSize, *status));
}
U_CAPI void
U_CAPI void U_EXPORT2
ubrk_close(UBreakIterator *bi)
{
@ -107,7 +107,7 @@ ubrk_close(UBreakIterator *bi)
}
}
U_CAPI void
U_CAPI void U_EXPORT2
ubrk_setText(UBreakIterator* bi,
const UChar* text,
int32_t textLength,
@ -133,42 +133,42 @@ ubrk_setText(UBreakIterator* bi,
}
}
U_CAPI UTextOffset
U_CAPI UTextOffset U_EXPORT2
ubrk_current(const UBreakIterator *bi)
{
return ((BreakIterator*)bi)->current();
}
U_CAPI UTextOffset
U_CAPI UTextOffset U_EXPORT2
ubrk_next(UBreakIterator *bi)
{
return ((BreakIterator*)bi)->next();
}
U_CAPI UTextOffset
U_CAPI UTextOffset U_EXPORT2
ubrk_previous(UBreakIterator *bi)
{
return ((BreakIterator*)bi)->previous();
}
U_CAPI UTextOffset
U_CAPI UTextOffset U_EXPORT2
ubrk_first(UBreakIterator *bi)
{
return ((BreakIterator*)bi)->first();
}
U_CAPI UTextOffset
U_CAPI UTextOffset U_EXPORT2
ubrk_last(UBreakIterator *bi)
{
return ((BreakIterator*)bi)->last();
}
U_CAPI UTextOffset
U_CAPI UTextOffset U_EXPORT2
ubrk_preceding(UBreakIterator *bi,
UTextOffset offset)
{
@ -176,7 +176,7 @@ ubrk_preceding(UBreakIterator *bi,
return ((BreakIterator*)bi)->preceding(offset);
}
U_CAPI UTextOffset
U_CAPI UTextOffset U_EXPORT2
ubrk_following(UBreakIterator *bi,
UTextOffset offset)
{
@ -184,14 +184,14 @@ ubrk_following(UBreakIterator *bi,
return ((BreakIterator*)bi)->following(offset);
}
U_CAPI const char*
U_CAPI const char* U_EXPORT2
ubrk_getAvailable(int32_t index)
{
return uloc_getAvailable(index);
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ubrk_countAvailable()
{

View File

@ -15,7 +15,7 @@
U_NAMESPACE_USE
U_CAPI const UChar*
U_CAPI const UChar* U_EXPORT2
ucal_getAvailableTZIDs( int32_t rawOffset,
int32_t index,
UErrorCode* status)
@ -43,7 +43,7 @@ ucal_getAvailableTZIDs( int32_t rawOffset,
return retVal;
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucal_countAvailableTZIDs(int32_t rawOffset)
{
@ -61,7 +61,7 @@ ucal_countAvailableTZIDs(int32_t rawOffset)
return count;
}
U_CAPI UDate
U_CAPI UDate U_EXPORT2
ucal_getNow()
{
@ -69,7 +69,7 @@ ucal_getNow()
}
// ignore type until we add more subclasses
U_CAPI UCalendar*
U_CAPI UCalendar* U_EXPORT2
ucal_open( const UChar* zoneID,
int32_t len,
const char* locale,
@ -96,14 +96,14 @@ ucal_open( const UChar* zoneID,
return (UCalendar*)Calendar::createInstance(zone, Locale(locale), *status);
}
U_CAPI void
U_CAPI void U_EXPORT2
ucal_close(UCalendar *cal)
{
delete (Calendar*) cal;
}
U_CAPI void
U_CAPI void U_EXPORT2
ucal_setTimeZone( UCalendar* cal,
const UChar* zoneID,
int32_t len,
@ -130,7 +130,7 @@ ucal_setTimeZone( UCalendar* cal,
((Calendar*)cal)->adoptTimeZone(zone);
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucal_getTimeZoneDisplayName(const UCalendar* cal,
UCalendarDisplayNameType type,
const char *locale,
@ -165,7 +165,7 @@ ucal_getTimeZoneDisplayName(const UCalendar* cal,
return id.extract(result, resultLength, *status);
}
U_CAPI UBool
U_CAPI UBool U_EXPORT2
ucal_inDaylightTime( const UCalendar* cal,
UErrorCode* status )
{
@ -174,7 +174,7 @@ ucal_inDaylightTime( const UCalendar* cal,
return ((Calendar*)cal)->inDaylightTime(*status);
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucal_getAttribute( const UCalendar* cal,
UCalendarAttribute attr)
{
@ -195,7 +195,7 @@ ucal_getAttribute( const UCalendar* cal,
return -1;
}
U_CAPI void
U_CAPI void U_EXPORT2
ucal_setAttribute( UCalendar* cal,
UCalendarAttribute attr,
int32_t newValue)
@ -216,21 +216,21 @@ ucal_setAttribute( UCalendar* cal,
}
}
U_CAPI const char*
U_CAPI const char* U_EXPORT2
ucal_getAvailable(int32_t index)
{
return uloc_getAvailable(index);
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucal_countAvailable()
{
return uloc_countAvailable();
}
U_CAPI UDate
U_CAPI UDate U_EXPORT2
ucal_getMillis( const UCalendar* cal,
UErrorCode* status)
{
@ -240,7 +240,7 @@ ucal_getMillis( const UCalendar* cal,
return ((Calendar*)cal)->getTime(*status);
}
U_CAPI void
U_CAPI void U_EXPORT2
ucal_setMillis( UCalendar* cal,
UDate dateTime,
UErrorCode* status )
@ -251,7 +251,7 @@ ucal_setMillis( UCalendar* cal,
}
// TBD: why does this take an UErrorCode?
U_CAPI void
U_CAPI void U_EXPORT2
ucal_setDate( UCalendar* cal,
int32_t year,
int32_t month,
@ -265,7 +265,7 @@ ucal_setDate( UCalendar* cal,
}
// TBD: why does this take an UErrorCode?
U_CAPI void
U_CAPI void U_EXPORT2
ucal_setDateTime( UCalendar* cal,
int32_t year,
int32_t month,
@ -280,7 +280,7 @@ ucal_setDateTime( UCalendar* cal,
((Calendar*)cal)->set(year, month, date, hour, minute, second);
}
U_CAPI UBool
U_CAPI UBool U_EXPORT2
ucal_equivalentTo( const UCalendar* cal1,
const UCalendar* cal2)
{
@ -288,7 +288,7 @@ ucal_equivalentTo( const UCalendar* cal1,
return ((Calendar*)cal1)->equivalentTo(*((Calendar*)cal2));
}
U_CAPI void
U_CAPI void U_EXPORT2
ucal_add( UCalendar* cal,
UCalendarDateFields field,
int32_t amount,
@ -300,7 +300,7 @@ ucal_add( UCalendar* cal,
((Calendar*)cal)->add((Calendar::EDateFields)field, amount, *status);
}
U_CAPI void
U_CAPI void U_EXPORT2
ucal_roll( UCalendar* cal,
UCalendarDateFields field,
int32_t amount,
@ -312,7 +312,7 @@ ucal_roll( UCalendar* cal,
((Calendar*)cal)->roll((Calendar::EDateFields)field, amount, *status);
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucal_get( const UCalendar* cal,
UCalendarDateFields field,
UErrorCode* status )
@ -323,7 +323,7 @@ ucal_get( const UCalendar* cal,
return ((Calendar*)cal)->get((Calendar::EDateFields)field, *status);
}
U_CAPI void
U_CAPI void U_EXPORT2
ucal_set( UCalendar* cal,
UCalendarDateFields field,
int32_t value)
@ -332,7 +332,7 @@ ucal_set( UCalendar* cal,
((Calendar*)cal)->set((Calendar::EDateFields)field, value);
}
U_CAPI UBool
U_CAPI UBool U_EXPORT2
ucal_isSet( const UCalendar* cal,
UCalendarDateFields field)
{
@ -340,7 +340,7 @@ ucal_isSet( const UCalendar* cal,
return ((Calendar*)cal)->isSet((Calendar::EDateFields)field);
}
U_CAPI void
U_CAPI void U_EXPORT2
ucal_clearField( UCalendar* cal,
UCalendarDateFields field)
{
@ -348,14 +348,14 @@ ucal_clearField( UCalendar* cal,
((Calendar*)cal)->clear((Calendar::EDateFields)field);
}
U_CAPI void
U_CAPI void U_EXPORT2
ucal_clear(UCalendar* calendar)
{
((Calendar*)calendar)->clear();
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucal_getLimit( const UCalendar* cal,
UCalendarDateFields field,
UCalendarLimitType type,

View File

@ -129,7 +129,8 @@ inline void IInit_collIterate(const UCollator *collator, const UChar *sourceStr
}
}
U_CAPI void init_collIterate(const UCollator *collator, const UChar *sourceString,
U_CAPI void U_EXPORT2
init_collIterate(const UCollator *collator, const UChar *sourceString,
int32_t sourceLen, collIterate *s){
/* Out-of-line version for use from other files. */
IInit_collIterate(collator, sourceString, sourceLen, s);
@ -261,7 +262,7 @@ inline void freeHeapWritableBuffer(collIterate *data)
/* Following are the open/close functions */
/* */
/****************************************************************************/
U_CAPI UCollator*
U_CAPI UCollator* U_EXPORT2
ucol_open( const char *loc,
UErrorCode *status)
{
@ -335,7 +336,7 @@ ucol_openVersion(const char *loc,
}
U_CAPI void
U_CAPI void U_EXPORT2
ucol_close(UCollator *coll)
{
/* Here, it would be advisable to close: */
@ -364,7 +365,7 @@ ucol_close(UCollator *coll)
uprv_free(coll);
}
U_CAPI UCollator*
U_CAPI UCollator* U_EXPORT2
ucol_openRules( const UChar *rules,
int32_t rulesLength,
UColAttributeValue normalizationMode,
@ -487,7 +488,7 @@ ucol_openRules( const UChar *rules,
/* This one is currently used by genrb & tests. After constructing from rules (tailoring),*/
/* you should be able to get the binary chunk to write out... Doesn't look very full now */
U_CAPI uint8_t *
U_CAPI uint8_t* U_EXPORT2
ucol_cloneRuleData(const UCollator *coll, int32_t *length, UErrorCode *status)
{
uint8_t *result = NULL;
@ -1060,7 +1061,8 @@ inline uint32_t ucol_IGetNextCE(const UCollator *coll, collIterate *collationSou
}
/* ucol_getNextCE, out-of-line version for use from other files. */
U_CAPI uint32_t ucol_getNextCE(const UCollator *coll, collIterate *collationSource, UErrorCode *status) {
U_CAPI uint32_t U_EXPORT2
ucol_getNextCE(const UCollator *coll, collIterate *collationSource, UErrorCode *status) {
return ucol_IGetNextCE(coll, collationSource, status);
}
@ -1382,14 +1384,16 @@ inline uint32_t ucol_IGetPrevCE(const UCollator *coll, collIterate *data,
/* ucol_getPrevCE, out-of-line version for use from other files. */
U_CAPI uint32_t ucol_getPrevCE(const UCollator *coll, collIterate *data,
U_CAPI uint32_t U_EXPORT2
ucol_getPrevCE(const UCollator *coll, collIterate *data,
UErrorCode *status) {
return ucol_IGetPrevCE(coll, data, status);
}
/* this should be connected to special Jamo handling */
uint32_t ucol_getFirstCE(const UCollator *coll, UChar u, UErrorCode *status) {
U_CAPI uint32_t U_EXPORT2
ucol_getFirstCE(const UCollator *coll, UChar u, UErrorCode *status) {
collIterate colIt;
uint32_t order;
IInit_collIterate(coll, &u, 1, &colIt);
@ -2890,7 +2894,7 @@ while((start)<(end)) { \
*
* @draft
*/
int32_t
U_CAPI int32_t U_EXPORT2
ucol_mergeSortkeys(const uint8_t *src1, int32_t src1Length,
const uint8_t *src2, int32_t src2Length,
uint8_t *dest, int32_t destCapacity) {
@ -2965,7 +2969,7 @@ ucol_mergeSortkeys(const uint8_t *src1, int32_t src1Length,
}
/* sortkey API */
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucol_getSortKey(const UCollator *coll,
const UChar *source,
int32_t sourceLength,
@ -4198,7 +4202,7 @@ inline void uprv_appendByteToHexString(char *dst, uint8_t val) {
}
/* this function makes a string with representation of a sortkey */
U_CAPI char U_EXPORT2 *ucol_sortKeyToString(const UCollator *coll, const uint8_t *sortkey, char *buffer, uint32_t *len) {
U_CAPI char* U_EXPORT2 ucol_sortKeyToString(const UCollator *coll, const uint8_t *sortkey, char *buffer, uint32_t *len) {
int32_t strength = UCOL_PRIMARY;
uint32_t res_size = 0;
UBool doneCase = FALSE;
@ -4291,7 +4295,8 @@ void ucol_updateInternalState(UCollator *coll) {
}
U_CAPI uint32_t ucol_setVariableTop(UCollator *coll, const UChar *varTop, int32_t len, UErrorCode *status) {
U_CAPI uint32_t U_EXPORT2
ucol_setVariableTop(UCollator *coll, const UChar *varTop, int32_t len, UErrorCode *status) {
if(U_FAILURE(*status) || coll == NULL) {
return 0;
}
@ -4332,14 +4337,16 @@ U_CAPI uint32_t ucol_getVariableTop(const UCollator *coll, UErrorCode *status) {
return coll->variableTopValue<<16;
}
U_CAPI void ucol_restoreVariableTop(UCollator *coll, const uint32_t varTop, UErrorCode *status) {
U_CAPI void U_EXPORT2
ucol_restoreVariableTop(UCollator *coll, const uint32_t varTop, UErrorCode *status) {
if(U_FAILURE(*status) || coll == NULL) {
return;
}
coll->variableTopValue = (varTop & UCOL_PRIMARYMASK)>>16;
}
/* Attribute setter API */
U_CAPI void ucol_setAttribute(UCollator *coll, UColAttribute attr, UColAttributeValue value, UErrorCode *status) {
U_CAPI void U_EXPORT2
ucol_setAttribute(UCollator *coll, UColAttribute attr, UColAttributeValue value, UErrorCode *status) {
if(U_FAILURE(*status) || coll == NULL) {
return;
}
@ -4453,7 +4460,8 @@ U_CAPI void ucol_setAttribute(UCollator *coll, UColAttribute attr, UColAttribute
ucol_updateInternalState(coll);
}
U_CAPI UColAttributeValue ucol_getAttribute(const UCollator *coll, UColAttribute attr, UErrorCode *status) {
U_CAPI UColAttributeValue U_EXPORT2
ucol_getAttribute(const UCollator *coll, UColAttribute attr, UErrorCode *status) {
if(U_FAILURE(*status) || coll == NULL) {
return UCOL_DEFAULT;
}
@ -4481,7 +4489,7 @@ U_CAPI UColAttributeValue ucol_getAttribute(const UCollator *coll, UColAttribute
}
// deprecated
U_CAPI void
U_CAPI void U_EXPORT2
ucol_setNormalization( UCollator *coll,
UNormalizationMode mode)
{
@ -4502,7 +4510,7 @@ ucol_setNormalization( UCollator *coll,
}
// deprecated
U_CAPI UNormalizationMode
U_CAPI UNormalizationMode U_EXPORT2
ucol_getNormalization(const UCollator* coll)
{
UErrorCode status = U_ZERO_ERROR;
@ -4513,7 +4521,7 @@ ucol_getNormalization(const UCollator* coll)
}
}
U_CAPI void
U_CAPI void U_EXPORT2
ucol_setStrength( UCollator *coll,
UCollationStrength strength)
{
@ -4521,7 +4529,7 @@ ucol_setStrength( UCollator *coll,
ucol_setAttribute(coll, UCOL_STRENGTH, strength, &status);
}
U_CAPI UCollationStrength
U_CAPI UCollationStrength U_EXPORT2
ucol_getStrength(const UCollator *coll)
{
UErrorCode status = U_ZERO_ERROR;
@ -4533,7 +4541,7 @@ ucol_getStrength(const UCollator *coll)
/* there are new APIs and some compatibility APIs */
/****************************************************************************/
U_CAPI UCollator *
U_CAPI UCollator* U_EXPORT2
ucol_safeClone(const UCollator *coll, void *stackBuffer, int32_t * pBufferSize, UErrorCode *status)
{
UCollator * localCollator;
@ -4584,7 +4592,7 @@ ucol_safeClone(const UCollator *coll, void *stackBuffer, int32_t * pBufferSize,
return localCollator;
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, UChar *buffer, int32_t bufferLen) {
UErrorCode status = U_ZERO_ERROR;
int32_t len = 0;
@ -4613,7 +4621,7 @@ ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, UChar *buffer, int3
static const UChar _NUL = 0;
U_CAPI const UChar*
U_CAPI const UChar* U_EXPORT2
ucol_getRules( const UCollator *coll,
int32_t *length)
{
@ -4638,7 +4646,7 @@ ucol_getRules( const UCollator *coll,
}
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucol_getDisplayName( const char *objLoc,
const char *dispLoc,
UChar *result,
@ -4652,19 +4660,19 @@ ucol_getDisplayName( const char *objLoc,
return dst.extract(result, resultLength, *status);
}
U_CAPI const char*
U_CAPI const char* U_EXPORT2
ucol_getAvailable(int32_t index)
{
return uloc_getAvailable(index);
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucol_countAvailable()
{
return uloc_countAvailable();
}
U_CAPI void
U_CAPI void U_EXPORT2
ucol_getVersion(const UCollator* coll,
UVersionInfo versionInfo)
{
@ -4691,7 +4699,8 @@ ucol_getVersion(const UCollator* coll,
/* This internal API checks whether a character is tailored or not */
U_CAPI UBool isTailored(const UCollator *coll, const UChar u, UErrorCode *status) {
U_CAPI UBool U_EXPORT2
isTailored(const UCollator *coll, const UChar u, UErrorCode *status) {
uint32_t CE = UCOL_NOT_FOUND;
const UChar *ContractionStart = NULL;
if(U_SUCCESS(*status) && coll != NULL) {
@ -4922,7 +4931,7 @@ static UCollationResult ucol_compareUsingSortKeys(const UCollator *coll,
/* */
/* ucol_strcoll Main public API string comparison function */
/* */
U_CAPI UCollationResult
U_CAPI UCollationResult U_EXPORT2
ucol_strcoll( const UCollator *coll,
const UChar *source,
int32_t sourceLength,
@ -5488,7 +5497,7 @@ commonReturn:
}
/* convenience function for comparing strings */
U_CAPI UBool
U_CAPI UBool U_EXPORT2
ucol_greater( const UCollator *coll,
const UChar *source,
int32_t sourceLength,
@ -5500,7 +5509,7 @@ ucol_greater( const UCollator *coll,
}
/* convenience function for comparing strings */
U_CAPI UBool
U_CAPI UBool U_EXPORT2
ucol_greaterOrEqual( const UCollator *coll,
const UChar *source,
int32_t sourceLength,
@ -5512,7 +5521,7 @@ ucol_greaterOrEqual( const UCollator *coll,
}
/* convenience function for comparing strings */
U_CAPI UBool
U_CAPI UBool U_EXPORT2
ucol_equal( const UCollator *coll,
const UChar *source,
int32_t sourceLength,

View File

@ -1127,7 +1127,7 @@ ucol_bld_cleanup(void)
return TRUE;
}
const InverseTableHeader *
U_CAPI const InverseTableHeader * U_EXPORT2
ucol_initInverseUCA(UErrorCode *status)
{
if(U_FAILURE(*status)) return NULL;

View File

@ -41,7 +41,8 @@ void uprv_growTable(ContractionTable *tbl, UErrorCode *status) {
}
}
CntTable *uprv_cnttab_open(CompactEIntArray *mapping, UErrorCode *status) {
U_CAPI CntTable* U_EXPORT2
uprv_cnttab_open(CompactEIntArray *mapping, UErrorCode *status) {
if(U_FAILURE(*status)) {
return 0;
}
@ -90,7 +91,8 @@ ContractionTable *addATableElement(CntTable *table, uint32_t *key, UErrorCode *s
return el;
}
int32_t uprv_cnttab_constructTable(CntTable *table, uint32_t mainOffset, UErrorCode *status) {
U_CAPI int32_t U_EXPORT2
uprv_cnttab_constructTable(CntTable *table, uint32_t mainOffset, UErrorCode *status) {
int32_t i = 0, j = 0;
if(U_FAILURE(*status) || table->size == 0) {
return 0;
@ -181,7 +183,8 @@ ContractionTable *uprv_cnttab_cloneContraction(ContractionTable *t) {
}
CntTable *uprv_cnttab_clone(CntTable *t) {
U_CAPI CntTable* U_EXPORT2
uprv_cnttab_clone(CntTable *t) {
int32_t i = 0;
CntTable *r = (CntTable *)uprv_malloc(sizeof(CntTable));
r->position = t->position;
@ -221,7 +224,8 @@ CntTable *uprv_cnttab_clone(CntTable *t) {
return r;
}
void uprv_cnttab_close(CntTable *table) {
U_CAPI void U_EXPORT2
uprv_cnttab_close(CntTable *table) {
int32_t i = 0;
for(i = 0; i<table->size; i++) {
free(table->elements[i]->CEs);
@ -236,7 +240,8 @@ void uprv_cnttab_close(CntTable *table) {
}
/* this is for adding non contractions */
uint32_t uprv_cnttab_changeLastCE(CntTable *table, uint32_t element, uint32_t value, UErrorCode *status) {
U_CAPI uint32_t U_EXPORT2
uprv_cnttab_changeLastCE(CntTable *table, uint32_t element, uint32_t value, UErrorCode *status) {
element &= 0xFFFFFF;
ContractionTable *tbl = NULL;
@ -255,7 +260,8 @@ uint32_t uprv_cnttab_changeLastCE(CntTable *table, uint32_t element, uint32_t va
/* inserts a part of contraction sequence in table. Sequences behind the offset are moved back. If element is non existent, it creates on. Returns element handle */
uint32_t uprv_cnttab_insertContraction(CntTable *table, uint32_t element, UChar codePoint, uint32_t value, UErrorCode *status) {
U_CAPI uint32_t U_EXPORT2
uprv_cnttab_insertContraction(CntTable *table, uint32_t element, UChar codePoint, uint32_t value, UErrorCode *status) {
element &= 0xFFFFFF;
ContractionTable *tbl = NULL;
@ -293,7 +299,8 @@ uint32_t uprv_cnttab_insertContraction(CntTable *table, uint32_t element, UChar
/* adds more contractions in table. If element is non existant, it creates on. Returns element handle */
uint32_t uprv_cnttab_addContraction(CntTable *table, uint32_t element, UChar codePoint, uint32_t value, UErrorCode *status) {
U_CAPI uint32_t U_EXPORT2
uprv_cnttab_addContraction(CntTable *table, uint32_t element, UChar codePoint, uint32_t value, UErrorCode *status) {
element &= 0xFFFFFF;
@ -318,7 +325,8 @@ uint32_t uprv_cnttab_addContraction(CntTable *table, uint32_t element, UChar cod
}
/* sets a part of contraction sequence in table. If element is non existant, it creates on. Returns element handle */
uint32_t uprv_cnttab_setContraction(CntTable *table, uint32_t element, uint32_t offset, UChar codePoint, uint32_t value, UErrorCode *status) {
U_CAPI uint32_t U_EXPORT2
uprv_cnttab_setContraction(CntTable *table, uint32_t element, uint32_t offset, UChar codePoint, uint32_t value, UErrorCode *status) {
element &= 0xFFFFFF;
ContractionTable *tbl = NULL;
@ -383,7 +391,8 @@ uint32_t _cnttab_getCE(ContractionTable *tbl, int32_t position) {
}
}
int32_t uprv_cnttab_findCP(CntTable *table, uint32_t element, UChar codePoint, UErrorCode *status) {
U_CAPI int32_t U_EXPORT2
uprv_cnttab_findCP(CntTable *table, uint32_t element, UChar codePoint, UErrorCode *status) {
if(U_FAILURE(*status)) {
return 0;
@ -392,7 +401,8 @@ int32_t uprv_cnttab_findCP(CntTable *table, uint32_t element, UChar codePoint, U
return _cnttab_findCP(_cnttab_getContractionTable(table, element), codePoint);
}
uint32_t uprv_cnttab_getCE(CntTable *table, uint32_t element, uint32_t position, UErrorCode *status) {
U_CAPI uint32_t U_EXPORT2
uprv_cnttab_getCE(CntTable *table, uint32_t element, uint32_t position, UErrorCode *status) {
if(U_FAILURE(*status)) {
return UCOL_NOT_FOUND;
}
@ -400,7 +410,8 @@ uint32_t uprv_cnttab_getCE(CntTable *table, uint32_t element, uint32_t position,
return(_cnttab_getCE(_cnttab_getContractionTable(table, element), position));
}
uint32_t uprv_cnttab_findCE(CntTable *table, uint32_t element, UChar codePoint, UErrorCode *status) {
U_CAPI uint32_t U_EXPORT2
uprv_cnttab_findCE(CntTable *table, uint32_t element, UChar codePoint, UErrorCode *status) {
if(U_FAILURE(*status)) {
return UCOL_NOT_FOUND;
}
@ -408,7 +419,8 @@ uint32_t uprv_cnttab_findCE(CntTable *table, uint32_t element, UChar codePoint,
return _cnttab_getCE(tbl, _cnttab_findCP(tbl, codePoint));
}
UBool uprv_cnttab_isTailored(CntTable *table, uint32_t element, UChar *ztString, UErrorCode *status) {
U_CAPI UBool U_EXPORT2
uprv_cnttab_isTailored(CntTable *table, uint32_t element, UChar *ztString, UErrorCode *status) {
if(U_FAILURE(*status)) {
return FALSE;
}
@ -430,7 +442,8 @@ UBool uprv_cnttab_isTailored(CntTable *table, uint32_t element, UChar *ztString,
}
}
uint32_t uprv_cnttab_changeContraction(CntTable *table, uint32_t element, UChar codePoint, uint32_t newCE, UErrorCode *status) {
U_CAPI uint32_t U_EXPORT2
uprv_cnttab_changeContraction(CntTable *table, uint32_t element, UChar codePoint, uint32_t newCE, UErrorCode *status) {
element &= 0xFFFFFF;
ContractionTable *tbl = NULL;

View File

@ -53,43 +53,43 @@ struct CntTable {
UColCETags currentTag;
};
U_CAPI
CntTable *uprv_cnttab_open(CompactEIntArray *mapping, UErrorCode *status);
U_CAPI
CntTable *uprv_cnttab_clone(CntTable *table);
U_CAPI
void uprv_cnttab_close(CntTable *table);
U_CAPI CntTable* U_EXPORT2
uprv_cnttab_open(CompactEIntArray *mapping, UErrorCode *status);
U_CAPI CntTable* U_EXPORT2
uprv_cnttab_clone(CntTable *table);
U_CAPI void U_EXPORT2
uprv_cnttab_close(CntTable *table);
/* construct the table for output */
U_CAPI
int32_t uprv_cnttab_constructTable(CntTable *table, uint32_t mainOffset, UErrorCode *status);
U_CAPI int32_t U_EXPORT2
uprv_cnttab_constructTable(CntTable *table, uint32_t mainOffset, UErrorCode *status);
/* adds more contractions in table. If element is non existant, it creates on. Returns element handle */
U_CAPI
uint32_t uprv_cnttab_addContraction(CntTable *table, uint32_t element, UChar codePoint, uint32_t value, UErrorCode *status);
U_CAPI uint32_t U_EXPORT2
uprv_cnttab_addContraction(CntTable *table, uint32_t element, UChar codePoint, uint32_t value, UErrorCode *status);
/* sets a part of contraction sequence in table. If element is non existant, it creates on. Returns element handle */
U_CAPI
uint32_t uprv_cnttab_setContraction(CntTable *table, uint32_t element, uint32_t offset, UChar codePoint, uint32_t value, UErrorCode *status);
U_CAPI uint32_t U_EXPORT2
uprv_cnttab_setContraction(CntTable *table, uint32_t element, uint32_t offset, UChar codePoint, uint32_t value, UErrorCode *status);
/* inserts a part of contraction sequence in table. Sequences behind the offset are moved back. If element is non existant, it creates on. Returns element handle */
U_CAPI
uint32_t uprv_cnttab_insertContraction(CntTable *table, uint32_t element, UChar codePoint, uint32_t value, UErrorCode *status);
U_CAPI uint32_t U_EXPORT2
uprv_cnttab_insertContraction(CntTable *table, uint32_t element, UChar codePoint, uint32_t value, UErrorCode *status);
/* this is for adding non contractions */
U_CAPI
uint32_t uprv_cnttab_changeLastCE(CntTable *table, uint32_t element, uint32_t value, UErrorCode *status);
U_CAPI uint32_t U_EXPORT2
uprv_cnttab_changeLastCE(CntTable *table, uint32_t element, uint32_t value, UErrorCode *status);
U_CAPI
int32_t uprv_cnttab_findCP(CntTable *table, uint32_t element, UChar codePoint, UErrorCode *status);
U_CAPI int32_t U_EXPORT2
uprv_cnttab_findCP(CntTable *table, uint32_t element, UChar codePoint, UErrorCode *status);
U_CAPI
uint32_t uprv_cnttab_getCE(CntTable *table, uint32_t element, uint32_t position, UErrorCode *status);
U_CAPI uint32_t U_EXPORT2
uprv_cnttab_getCE(CntTable *table, uint32_t element, uint32_t position, UErrorCode *status);
U_CAPI
uint32_t uprv_cnttab_changeContraction(CntTable *table, uint32_t element, UChar codePoint, uint32_t newCE, UErrorCode *status);
U_CAPI uint32_t U_EXPORT2
uprv_cnttab_changeContraction(CntTable *table, uint32_t element, UChar codePoint, uint32_t newCE, UErrorCode *status);
U_CAPI
uint32_t uprv_cnttab_findCE(CntTable *table, uint32_t element, UChar codePoint, UErrorCode *status);
U_CAPI uint32_t U_EXPORT2
uprv_cnttab_findCE(CntTable *table, uint32_t element, UChar codePoint, UErrorCode *status);
U_CAPI
UBool uprv_cnttab_isTailored(CntTable *table, uint32_t element, UChar *ztString, UErrorCode *status);
U_CAPI UBool U_EXPORT2
uprv_cnttab_isTailored(CntTable *table, uint32_t element, UChar *ztString, UErrorCode *status);
U_NAMESPACE_END

View File

@ -32,7 +32,7 @@ U_NAMESPACE_BEGIN
static uint32_t uprv_uca_processContraction(CntTable *contractions, UCAElements *element, uint32_t existingCE, UErrorCode *status);
U_CDECL_BEGIN
static int32_t U_CALLCONV
static int32_t U_EXPORT2 U_CALLCONV
prefixLookupHash(const UHashTok e) {
UCAElements *element = (UCAElements *)e.pointer;
UChar buf[256];
@ -45,7 +45,7 @@ prefixLookupHash(const UHashTok e) {
return uhash_hashUChars(key);
}
static int8_t U_CALLCONV
static int8_t U_EXPORT2 U_CALLCONV
prefixLookupComp(const UHashTok e1, const UHashTok e2) {
UCAElements *element1 = (UCAElements *)e1.pointer;
UCAElements *element2 = (UCAElements *)e2.pointer;
@ -111,7 +111,13 @@ static int32_t uprv_uca_addExpansion(ExpansionTable *expansions, uint32_t value,
return(expansions->position++);
}
tempUCATable * uprv_uca_initTempTable(UCATableHeader *image, UColOptionSet *opts, const UCollator *UCA, UColCETags initTag, UErrorCode *status) {
static inline void U_CALLCONV
uhash_freeBlockWrapper(void *obj) {
uhash_freeBlock(obj);
}
U_CAPI tempUCATable* U_EXPORT2
uprv_uca_initTempTable(UCATableHeader *image, UColOptionSet *opts, const UCollator *UCA, UColCETags initTag, UErrorCode *status) {
tempUCATable *t = (tempUCATable *)uprv_malloc(sizeof(tempUCATable));
MaxExpansionTable *maxet = (MaxExpansionTable *)uprv_malloc(
sizeof(MaxExpansionTable));
@ -167,7 +173,8 @@ tempUCATable * uprv_uca_initTempTable(UCATableHeader *image, UColOptionSet *opts
return t;
}
tempUCATable *uprv_uca_cloneTempTable(tempUCATable *t, UErrorCode *status) {
U_CAPI tempUCATable* U_EXPORT2
uprv_uca_cloneTempTable(tempUCATable *t, UErrorCode *status) {
if(U_FAILURE(*status)) {
return NULL;
}
@ -256,7 +263,8 @@ tempUCATable *uprv_uca_cloneTempTable(tempUCATable *t, UErrorCode *status) {
}
void uprv_uca_closeTempTable(tempUCATable *t) {
U_CAPI void U_EXPORT2
uprv_uca_closeTempTable(tempUCATable *t) {
uprv_free(t->expansions->CEs);
uprv_free(t->expansions);
if(t->contractions != NULL) {
@ -883,7 +891,8 @@ static uint32_t uprv_uca_finalizeAddition(tempUCATable *t, UCAElements *element,
}
/* This adds a read element, while testing for existence */
uint32_t uprv_uca_addAnElement(tempUCATable *t, UCAElements *element, UErrorCode *status) {
U_CAPI uint32_t U_EXPORT2
uprv_uca_addAnElement(tempUCATable *t, UCAElements *element, UErrorCode *status) {
ExpansionTable *expansions = t->expansions;
uint32_t i = 1;
@ -1047,7 +1056,8 @@ void uprv_uca_getMaxExpansionJamo(CompactEIntArray *mapping,
}
UCATableHeader *uprv_uca_assembleTable(tempUCATable *t, UErrorCode *status) {
U_CAPI UCATableHeader* U_EXPORT2
uprv_uca_assembleTable(tempUCATable *t, UErrorCode *status) {
CompactEIntArray *mapping = t->mapping;
ExpansionTable *expansions = t->expansions;
CntTable *contractions = t->contractions;

View File

@ -157,7 +157,8 @@ struct collIterateState {
uint8_t origFlags;
};
U_CAPI void init_collIterate(const UCollator *collator, const UChar *sourceString, int32_t sourceLen, collIterate *s);
U_CAPI void U_EXPORT2
init_collIterate(const UCollator *collator, const UChar *sourceString, int32_t sourceLen, collIterate *s);
struct UCollationElements
@ -333,7 +334,7 @@ ucol_getSortKeySize(const UCollator *coll, collIterate *s,
* @return memory, owned by the caller, of size 'length' bytes.
* @internal INTERNAL USE ONLY
*/
U_CAPI uint8_t *
U_CAPI uint8_t* U_EXPORT2
ucol_cloneRuleData(const UCollator *coll, int32_t *length, UErrorCode *status);
#define UCOL_SPECIAL_FLAG 0xF0000000
@ -704,10 +705,10 @@ U_CFUNC
void ucol_updateInternalState(UCollator *coll);
U_CAPI uint32_t U_EXPORT2 ucol_getFirstCE(const UCollator *coll, UChar u, UErrorCode *status);
U_CAPI char U_EXPORT2 *ucol_sortKeyToString(const UCollator *coll, const uint8_t *sortkey, char *buffer, uint32_t *len);
U_CAPI char* U_EXPORT2 ucol_sortKeyToString(const UCollator *coll, const uint8_t *sortkey, char *buffer, uint32_t *len);
U_CAPI UBool U_EXPORT2 isTailored(const UCollator *coll, const UChar u, UErrorCode *status);
U_CAPI const U_EXPORT2 InverseTableHeader *ucol_initInverseUCA(UErrorCode *status);
U_CAPI const InverseTableHeader* U_EXPORT2 ucol_initInverseUCA(UErrorCode *status);
U_CAPI int32_t U_EXPORT2 ucol_inv_getNextCE(uint32_t CE, uint32_t contCE,
uint32_t *nextCE, uint32_t *nextContCE,
uint32_t strength);

View File

@ -25,7 +25,7 @@
#include "ucol_tok.h"
U_CDECL_BEGIN
static int32_t U_CALLCONV
static int32_t U_EXPORT2 U_CALLCONV
uhash_hashTokens(const UHashTok k)
{
int32_t hash = 0;
@ -48,7 +48,7 @@ uhash_hashTokens(const UHashTok k)
return hash;
}
static UBool U_CALLCONV
static UBool U_EXPORT2 U_CALLCONV
uhash_compareTokens(const UHashTok key1, const UHashTok key2)
{
//uint32_t p1 = (uint32_t) key1.integer;
@ -85,6 +85,11 @@ uhash_compareTokens(const UHashTok key1, const UHashTok key2)
}
U_CDECL_END
static inline void U_CALLCONV
uhash_freeBlockWrapper(void *obj) {
uhash_freeBlock(obj);
}
void ucol_tok_initTokenList(UColTokenParser *src, const UChar *rules, const uint32_t rulesLength, UCollator *UCA, UErrorCode *status) {
uint32_t nSize = 0;
uint32_t estimatedSize = (2*rulesLength+UCOL_TOK_EXTRA_RULE_SPACE_SIZE);
@ -380,7 +385,8 @@ uint8_t ucol_uprv_tok_readAndSetOption(UColOptionSet *opts, const UChar* start,
}
}
const UChar *ucol_tok_parseNextToken(UColTokenParser *src,
U_CAPI const UChar* U_EXPORT2
ucol_tok_parseNextToken(UColTokenParser *src,
uint32_t *strength,
uint32_t *chOffset, uint32_t *chLen,
uint32_t *exOffset, uint32_t *exLen,

View File

@ -30,7 +30,7 @@ typedef struct collIterate collIterator;
/**
* Since this is going to be deprecated, I'll leave it as it is
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucol_keyHashCode(const uint8_t *key,
int32_t length)
{
@ -40,7 +40,7 @@ ucol_keyHashCode(const uint8_t *key,
}
UCollationElements*
U_CAPI UCollationElements* U_EXPORT2
ucol_openElements(const UCollator *coll,
const UChar *text,
int32_t textLength,
@ -65,7 +65,7 @@ ucol_openElements(const UCollator *coll,
return result;
}
U_CAPI void
U_CAPI void U_EXPORT2
ucol_closeElements(UCollationElements *elems)
{
collIterate *ci = &elems->iteratordata_;
@ -79,7 +79,7 @@ ucol_closeElements(UCollationElements *elems)
uprv_free(elems);
}
U_CAPI void
U_CAPI void U_EXPORT2
ucol_reset(UCollationElements *elems)
{
collIterate *ci = &(elems->iteratordata_);
@ -102,7 +102,7 @@ ucol_reset(UCollationElements *elems)
ci->fcdPosition = NULL;
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucol_next(UCollationElements *elems,
UErrorCode *status)
{
@ -122,7 +122,7 @@ ucol_next(UCollationElements *elems,
return result;
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucol_previous(UCollationElements *elems,
UErrorCode *status)
{
@ -157,7 +157,7 @@ ucol_previous(UCollationElements *elems,
}
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucol_getMaxExpansion(const UCollationElements *elems,
int32_t order)
{
@ -166,7 +166,7 @@ ucol_getMaxExpansion(const UCollationElements *elems,
return result;
}
U_CAPI void
U_CAPI void U_EXPORT2
ucol_setText( UCollationElements *elems,
const UChar *text,
int32_t textLength,
@ -192,7 +192,7 @@ ucol_setText( UCollationElements *elems,
elems->reset_ = TRUE;
}
U_CAPI UTextOffset
U_CAPI UTextOffset U_EXPORT2
ucol_getOffset(const UCollationElements *elems)
{
const collIterate *ci = &(elems->iteratordata_);
@ -212,7 +212,7 @@ ucol_getOffset(const UCollationElements *elems)
}
}
U_CAPI void
U_CAPI void U_EXPORT2
ucol_setOffset(UCollationElements *elems,
UTextOffset offset,
UErrorCode *status)

View File

@ -90,7 +90,7 @@ udat_openPattern( const UChar *pattern,
return retVal;
}
*/
U_CAPI UDateFormat*
U_CAPI UDateFormat* U_EXPORT2
udat_open(UDateFormatStyle timeStyle,
UDateFormatStyle dateStyle,
const char *locale,
@ -160,14 +160,14 @@ udat_open(UDateFormatStyle timeStyle,
}
U_CAPI void
U_CAPI void U_EXPORT2
udat_close(UDateFormat* format)
{
delete (DateFormat*)format;
}
U_CAPI UDateFormat*
U_CAPI UDateFormat* U_EXPORT2
udat_clone(const UDateFormat *fmt,
UErrorCode *status)
{
@ -184,7 +184,7 @@ udat_clone(const UDateFormat *fmt,
return (UDateFormat*) res;
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
udat_format( const UDateFormat* format,
UDate dateToFormat,
UChar* result,
@ -211,7 +211,7 @@ udat_format( const UDateFormat* format,
return res.extract(result, resultLength, *status);
}
U_CAPI UDate
U_CAPI UDate U_EXPORT2
udat_parse( const UDateFormat* format,
const UChar* text,
int32_t textLength,
@ -243,14 +243,14 @@ udat_parse( const UDateFormat* format,
return res;
}
U_CAPI UBool
U_CAPI UBool U_EXPORT2
udat_isLenient(const UDateFormat* fmt)
{
return ((DateFormat*)fmt)->isLenient();
}
U_CAPI void
U_CAPI void U_EXPORT2
udat_setLenient( UDateFormat* fmt,
UBool isLenient)
{
@ -258,14 +258,14 @@ udat_setLenient( UDateFormat* fmt,
((DateFormat*)fmt)->setLenient(isLenient);
}
U_CAPI const UCalendar*
U_CAPI const UCalendar* U_EXPORT2
udat_getCalendar(const UDateFormat* fmt)
{
return (const UCalendar*) ((DateFormat*)fmt)->getCalendar();
}
U_CAPI void
U_CAPI void U_EXPORT2
udat_setCalendar( UDateFormat* fmt,
const UCalendar* calendarToSet)
{
@ -273,14 +273,14 @@ udat_setCalendar( UDateFormat* fmt,
((DateFormat*)fmt)->setCalendar(*((Calendar*)calendarToSet));
}
U_CAPI const UNumberFormat*
U_CAPI const UNumberFormat* U_EXPORT2
udat_getNumberFormat(const UDateFormat* fmt)
{
return (const UNumberFormat*) ((DateFormat*)fmt)->getNumberFormat();
}
U_CAPI void
U_CAPI void U_EXPORT2
udat_setNumberFormat( UDateFormat* fmt,
const UNumberFormat* numberFormatToSet)
{
@ -288,20 +288,20 @@ udat_setNumberFormat( UDateFormat* fmt,
((DateFormat*)fmt)->setNumberFormat(*((NumberFormat*)numberFormatToSet));
}
U_CAPI const char*
U_CAPI const char* U_EXPORT2
udat_getAvailable(int32_t index)
{
return uloc_getAvailable(index);
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
udat_countAvailable()
{
return uloc_countAvailable();
}
U_CAPI UDate
U_CAPI UDate U_EXPORT2
udat_get2DigitYearStart( const UDateFormat *fmt,
UErrorCode *status)
{
@ -310,7 +310,7 @@ udat_get2DigitYearStart( const UDateFormat *fmt,
return ((SimpleDateFormat*)fmt)->get2DigitYearStart(*status);
}
U_CAPI void
U_CAPI void U_EXPORT2
udat_set2DigitYearStart( UDateFormat *fmt,
UDate d,
UErrorCode *status)
@ -320,7 +320,7 @@ udat_set2DigitYearStart( UDateFormat *fmt,
((SimpleDateFormat*)fmt)->set2DigitYearStart(d, *status);
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
udat_toPattern( const UDateFormat *fmt,
UBool localized,
UChar *result,
@ -341,7 +341,7 @@ udat_toPattern( const UDateFormat *fmt,
}
// TBD: should this take an UErrorCode?
U_CAPI void
U_CAPI void U_EXPORT2
udat_applyPattern( UDateFormat *format,
UBool localized,
const UChar *pattern,
@ -358,7 +358,7 @@ udat_applyPattern( UDateFormat *format,
((SimpleDateFormat*)format)->applyPattern(pat);
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
udat_getSymbols(const UDateFormat *fmt,
UDateFormatSymbolType type,
int32_t index,
@ -428,7 +428,7 @@ udat_getSymbols(const UDateFormat *fmt,
return 0;
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
udat_countSymbols( const UDateFormat *fmt,
UDateFormatSymbolType type)
{
@ -470,7 +470,7 @@ udat_countSymbols( const UDateFormat *fmt,
return count;
}
U_CAPI void
U_CAPI void U_EXPORT2
udat_setSymbols( UDateFormat *format,
UDateFormatSymbolType type,
int32_t index,

View File

@ -52,7 +52,7 @@ u_formatMessage(const char *locale,
return actLen;
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
u_vformatMessage( const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -93,7 +93,7 @@ u_formatMessageWithError(const char *locale,
return actLen;
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
u_vformatMessageWithError( const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -138,7 +138,7 @@ u_parseMessage( const char *locale,
}
U_CAPI void
U_CAPI void U_EXPORT2
u_vparseMessage(const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -175,7 +175,7 @@ u_parseMessageWithError(const char *locale,
// end vararg processing
va_end(ap);
}
U_CAPI void
U_CAPI void U_EXPORT2
u_vparseMessageWithError(const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -197,7 +197,7 @@ u_vparseMessageWithError(const char *locale,
/////////////////////////////////////////////////////////////////////////////////
U_CAPI UMessageFormat*
U_CAPI UMessageFormat* U_EXPORT2
umsg_open( const UChar *pattern,
int32_t patternLength,
const char *locale,
@ -230,13 +230,13 @@ umsg_open( const UChar *pattern,
return retVal;
}
U_CAPI void
U_CAPI void U_EXPORT2
umsg_close(UMessageFormat* format)
{
delete (MessageFormat*) format;
}
U_CAPI UMessageFormat
U_CAPI UMessageFormat U_EXPORT2
umsg_clone(const UMessageFormat *fmt,
UErrorCode *status)
{
@ -248,19 +248,19 @@ umsg_clone(const UMessageFormat *fmt,
return retVal;
}
U_CAPI void
U_CAPI void U_EXPORT2
umsg_setLocale(UMessageFormat *fmt, const char* locale)
{
((MessageFormat*)fmt)->setLocale(Locale(locale));
}
U_CAPI const char*
U_CAPI const char* U_EXPORT2
umsg_getLocale(UMessageFormat *fmt)
{
return ((MessageFormat*)fmt)->getLocale().getName();
}
U_CAPI void
U_CAPI void U_EXPORT2
umsg_applyPattern(UMessageFormat *fmt,
const UChar* pattern,
int32_t patternLength,
@ -276,7 +276,7 @@ umsg_applyPattern(UMessageFormat *fmt,
((MessageFormat*)fmt)->applyPattern(UnicodeString(pattern,patternLength),*parseError,*status);
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
umsg_toPattern(UMessageFormat *fmt,
UChar* result,
int32_t resultLength,
@ -315,7 +315,7 @@ umsg_format( UMessageFormat *fmt,
return actLen;
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
umsg_vformat( UMessageFormat *fmt,
UChar *result,
int32_t resultLength,
@ -411,7 +411,7 @@ umsg_parse( UMessageFormat *fmt,
va_end(ap);
}
U_CAPI void
U_CAPI void U_EXPORT2
umsg_vparse(UMessageFormat *fmt,
const UChar *source,
int32_t sourceLength,

View File

@ -197,7 +197,7 @@ typedef enum UBreakIteratorType UBreakIteratorType;
* @see ubrk_openRules
* @stable
*/
U_CAPI UBreakIterator*
U_CAPI UBreakIterator* U_EXPORT2
ubrk_open(UBreakIteratorType type,
const char *locale,
const UChar *text,
@ -216,7 +216,7 @@ ubrk_open(UBreakIteratorType type,
* @see ubrk_open
* @stable
*/
U_CAPI UBreakIterator*
U_CAPI UBreakIterator* U_EXPORT2
ubrk_openRules(const UChar *rules,
int32_t rulesLength,
const UChar *text,
@ -241,7 +241,7 @@ ubrk_openRules(const UChar *rules,
*/
U_CAPI UBreakIterator *
U_CAPI UBreakIterator * U_EXPORT2
ubrk_safeClone(
const UBreakIterator *bi,
void *stackBuffer,
@ -256,14 +256,14 @@ ubrk_safeClone(
* @param bi The break iterator to close.
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ubrk_close(UBreakIterator *bi);
/**
* Sets an existing iterator to point to a new piece of text
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ubrk_setText(UBreakIterator* bi,
const UChar* text,
int32_t textLength,
@ -277,7 +277,7 @@ ubrk_setText(UBreakIterator* bi,
* \Ref{ubrk_first}, or \Ref{ubrk_last}.
* @stable
*/
U_CAPI UTextOffset
U_CAPI UTextOffset U_EXPORT2
ubrk_current(const UBreakIterator *bi);
/**
@ -289,7 +289,7 @@ ubrk_current(const UBreakIterator *bi);
* @see ubrk_previous
* @stable
*/
U_CAPI UTextOffset
U_CAPI UTextOffset U_EXPORT2
ubrk_next(UBreakIterator *bi);
/**
@ -301,7 +301,7 @@ ubrk_next(UBreakIterator *bi);
* @see ubrk_next
* @stable
*/
U_CAPI UTextOffset
U_CAPI UTextOffset U_EXPORT2
ubrk_previous(UBreakIterator *bi);
/**
@ -312,7 +312,7 @@ ubrk_previous(UBreakIterator *bi);
* @see ubrk_last
* @stable
*/
U_CAPI UTextOffset
U_CAPI UTextOffset U_EXPORT2
ubrk_first(UBreakIterator *bi);
/**
@ -325,7 +325,7 @@ ubrk_first(UBreakIterator *bi);
* @see ubrk_first
* @stable
*/
U_CAPI UTextOffset
U_CAPI UTextOffset U_EXPORT2
ubrk_last(UBreakIterator *bi);
/**
@ -337,7 +337,7 @@ ubrk_last(UBreakIterator *bi);
* @see ubrk_following
* @stable
*/
U_CAPI UTextOffset
U_CAPI UTextOffset U_EXPORT2
ubrk_preceding(UBreakIterator *bi,
UTextOffset offset);
@ -350,7 +350,7 @@ ubrk_preceding(UBreakIterator *bi,
* @see ubrk_preceding
* @stable
*/
U_CAPI UTextOffset
U_CAPI UTextOffset U_EXPORT2
ubrk_following(UBreakIterator *bi,
UTextOffset offset);
@ -363,7 +363,7 @@ ubrk_following(UBreakIterator *bi,
* @see ubrk_countAvailable
* @stable
*/
U_CAPI const char*
U_CAPI const char* U_EXPORT2
ubrk_getAvailable(int32_t index);
/**
@ -374,7 +374,7 @@ ubrk_getAvailable(int32_t index);
* @see ubrk_getAvailable
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ubrk_countAvailable(void);
#endif

View File

@ -286,7 +286,7 @@ typedef enum UCalendarAMPMs UCalendarAMPMs;
* @see ucal_countAvailableTZIDs
* @stable
*/
U_CAPI const UChar*
U_CAPI const UChar* U_EXPORT2
ucal_getAvailableTZIDs( int32_t rawOffset,
int32_t index,
UErrorCode* status);
@ -300,7 +300,7 @@ ucal_getAvailableTZIDs( int32_t rawOffset,
* @see ucal_getAvailableTZIDs
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucal_countAvailableTZIDs(int32_t rawOffset);
/**
@ -309,7 +309,7 @@ ucal_countAvailableTZIDs(int32_t rawOffset);
* @return The current date and time.
* @stable
*/
U_CAPI UDate
U_CAPI UDate U_EXPORT2
ucal_getNow(void);
/**
@ -324,7 +324,7 @@ ucal_getNow(void);
* @return A pointer to a UCalendar, or 0 if an error occurred.
* @stable
*/
U_CAPI UCalendar*
U_CAPI UCalendar* U_EXPORT2
ucal_open( const UChar* zoneID,
int32_t len,
const char* locale,
@ -337,7 +337,7 @@ ucal_open( const UChar* zoneID,
* @param cal The UCalendar to close.
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ucal_close(UCalendar *cal);
/**
@ -349,7 +349,7 @@ ucal_close(UCalendar *cal);
* @param status A pointer to an UErrorCode to receive any errors.
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ucal_setTimeZone( UCalendar* cal,
const UChar* zoneID,
int32_t len,
@ -387,7 +387,7 @@ typedef enum UCalendarDisplayNameType UCalendarDisplayNameType;
* @return The total buffer size needed; if greater than resultLength, the output was truncated.
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucal_getTimeZoneDisplayName( const UCalendar* cal,
UCalendarDisplayNameType type,
const char *locale,
@ -403,7 +403,7 @@ ucal_getTimeZoneDisplayName( const UCalendar* cal,
* @return TRUE if cal is currently in daylight savings time, FALSE otherwise
* @stable
*/
U_CAPI UBool
U_CAPI UBool U_EXPORT2
ucal_inDaylightTime( const UCalendar* cal,
UErrorCode* status );
@ -433,7 +433,7 @@ typedef enum UCalendarAttribute UCalendarAttribute;
* @see ucal_setAttribute
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucal_getAttribute( const UCalendar* cal,
UCalendarAttribute attr);
@ -448,7 +448,7 @@ ucal_getAttribute( const UCalendar* cal,
* @see ucal_getAttribute
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ucal_setAttribute( UCalendar* cal,
UCalendarAttribute attr,
int32_t newValue);
@ -462,7 +462,7 @@ ucal_setAttribute( UCalendar* cal,
* @see ucal_countAvailable
* @stable
*/
U_CAPI const char*
U_CAPI const char* U_EXPORT2
ucal_getAvailable(int32_t index);
/**
@ -473,7 +473,7 @@ ucal_getAvailable(int32_t index);
* @see ucal_getAvailable
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucal_countAvailable(void);
/**
@ -487,7 +487,7 @@ ucal_countAvailable(void);
* @see ucal_setDateTime
* @stable
*/
U_CAPI UDate
U_CAPI UDate U_EXPORT2
ucal_getMillis( const UCalendar* cal,
UErrorCode* status);
@ -502,7 +502,7 @@ ucal_getMillis( const UCalendar* cal,
* @see ucal_setDateTime
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ucal_setMillis( UCalendar* cal,
UDate dateTime,
UErrorCode* status );
@ -521,7 +521,7 @@ ucal_setMillis( UCalendar* cal,
* @see ucal_setDateTime
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ucal_setDate( UCalendar* cal,
int32_t year,
int32_t month,
@ -545,7 +545,7 @@ ucal_setDate( UCalendar* cal,
* @see ucal_setDate
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ucal_setDateTime( UCalendar* cal,
int32_t year,
int32_t month,
@ -564,7 +564,7 @@ ucal_setDateTime( UCalendar* cal,
* @return TRUE if cal1 and cal2 represent the same date, FALSE otherwise.
* @stable
*/
U_CAPI UBool
U_CAPI UBool U_EXPORT2
ucal_equivalentTo( const UCalendar* cal1,
const UCalendar* cal2);
@ -583,7 +583,7 @@ ucal_equivalentTo( const UCalendar* cal1,
* @see ucal_roll
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ucal_add( UCalendar* cal,
UCalendarDateFields field,
int32_t amount,
@ -604,7 +604,7 @@ ucal_add( UCalendar* cal,
* @see ucal_add
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ucal_roll( UCalendar* cal,
UCalendarDateFields field,
int32_t amount,
@ -626,7 +626,7 @@ ucal_roll( UCalendar* cal,
* @see ucal_clear
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucal_get( const UCalendar* cal,
UCalendarDateFields field,
UErrorCode* status );
@ -646,7 +646,7 @@ ucal_get( const UCalendar* cal,
* @see ucal_clear
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ucal_set( UCalendar* cal,
UCalendarDateFields field,
int32_t value);
@ -666,7 +666,7 @@ ucal_set( UCalendar* cal,
* @see ucal_clear
* @stable
*/
U_CAPI UBool
U_CAPI UBool U_EXPORT2
ucal_isSet( const UCalendar* cal,
UCalendarDateFields field);
@ -684,7 +684,7 @@ ucal_isSet( const UCalendar* cal,
* @see ucal_clear
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ucal_clearField( UCalendar* cal,
UCalendarDateFields field);
@ -698,7 +698,7 @@ ucal_clearField( UCalendar* cal,
* @see ucal_clearField
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ucal_clear(UCalendar* calendar);
/** Possible limit values for a UCalendar
@ -736,7 +736,7 @@ typedef enum UCalendarLimitType UCalendarLimitType;
* @return The requested value.
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucal_getLimit( const UCalendar* cal,
UCalendarDateFields field,
UCalendarLimitType type,

View File

@ -242,7 +242,7 @@ typedef enum {
* @see ucol_close
* @stable
*/
U_CAPI UCollator*
U_CAPI UCollator* U_EXPORT2
ucol_open(const char *loc, UErrorCode *status);
/**
@ -270,7 +270,7 @@ ucol_open(const char *loc, UErrorCode *status);
* @see ucol_close
* @stable
*/
U_CAPI UCollator*
U_CAPI UCollator* U_EXPORT2
ucol_openRules( const UChar *rules,
int32_t rulesLength,
UColAttributeValue normalizationMode,
@ -288,7 +288,7 @@ ucol_openRules( const UChar *rules,
* @see ucol_safeClone
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ucol_close(UCollator *coll);
/**
@ -306,7 +306,7 @@ ucol_close(UCollator *coll);
* @see ucol_equal
* @stable
*/
U_CAPI UCollationResult
U_CAPI UCollationResult U_EXPORT2
ucol_strcoll( const UCollator *coll,
const UChar *source,
int32_t sourceLength,
@ -327,7 +327,7 @@ ucol_strcoll( const UCollator *coll,
* @see ucol_equal
* @stable
*/
U_CAPI UBool
U_CAPI UBool U_EXPORT2
ucol_greater(const UCollator *coll,
const UChar *source, int32_t sourceLength,
const UChar *target, int32_t targetLength);
@ -346,7 +346,7 @@ ucol_greater(const UCollator *coll,
* @see ucol_equal
* @stable
*/
U_CAPI UBool
U_CAPI UBool U_EXPORT2
ucol_greaterOrEqual(const UCollator *coll,
const UChar *source, int32_t sourceLength,
const UChar *target, int32_t targetLength);
@ -365,7 +365,7 @@ ucol_greaterOrEqual(const UCollator *coll,
* @see ucol_greaterOrEqual
* @stable
*/
U_CAPI UBool
U_CAPI UBool U_EXPORT2
ucol_equal(const UCollator *coll,
const UChar *source, int32_t sourceLength,
const UChar *target, int32_t targetLength);
@ -379,7 +379,7 @@ ucol_equal(const UCollator *coll,
* @see ucol_setStrength
* @stable
*/
U_CAPI UCollationStrength
U_CAPI UCollationStrength U_EXPORT2
ucol_getStrength(const UCollator *coll);
/**
@ -391,7 +391,7 @@ ucol_getStrength(const UCollator *coll);
* @see ucol_getStrength
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ucol_setStrength(UCollator *coll,
UCollationStrength strength);
@ -407,7 +407,7 @@ ucol_setStrength(UCollator *coll,
* the output was truncated.
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucol_getDisplayName( const char *objLoc,
const char *dispLoc,
UChar *result,
@ -423,7 +423,7 @@ ucol_getDisplayName( const char *objLoc,
* @see ucol_countAvailable
* @stable
*/
U_CAPI const char*
U_CAPI const char* U_EXPORT2
ucol_getAvailable(int32_t index);
/**
@ -434,7 +434,7 @@ ucol_getAvailable(int32_t index);
* @see ucol_getAvailable
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucol_countAvailable(void);
/**
@ -445,7 +445,7 @@ ucol_countAvailable(void);
* @return The collation rules.
* @stable
*/
U_CAPI const UChar*
U_CAPI const UChar* U_EXPORT2
ucol_getRules( const UCollator *coll,
int32_t *length);
@ -461,7 +461,7 @@ ucol_getRules( const UCollator *coll,
* @see ucol_keyHashCode
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucol_getSortKey(const UCollator *coll,
const UChar *source,
int32_t sourceLength,
@ -499,8 +499,7 @@ ucol_getVersion(const UCollator* coll, UVersionInfo info);
* src1Length+src2Length-1
* @draft ICU 2.0
*/
U_CAPI
int32_t
U_CAPI int32_t U_EXPORT2
ucol_mergeSortkeys(const uint8_t *src1, int32_t src1Length,
const uint8_t *src2, int32_t src2Length,
uint8_t *dest, int32_t destCapacity);
@ -516,7 +515,8 @@ ucol_mergeSortkeys(const uint8_t *src1, int32_t src1Length,
* @see ucol_getAttribute
* @draft ICU 1.8
*/
U_CAPI void ucol_setAttribute(UCollator *coll, UColAttribute attr, UColAttributeValue value, UErrorCode *status);
U_CAPI void U_EXPORT2
ucol_setAttribute(UCollator *coll, UColAttribute attr, UColAttributeValue value, UErrorCode *status);
/**
* Universal attribute getter
@ -529,7 +529,8 @@ U_CAPI void ucol_setAttribute(UCollator *coll, UColAttribute attr, UColAttribute
* @see ucol_setAttribute
* @draft ICU 1.8
*/
U_CAPI UColAttributeValue ucol_getAttribute(const UCollator *coll, UColAttribute attr, UErrorCode *status);
U_CAPI UColAttributeValue U_EXPORT2
ucol_getAttribute(const UCollator *coll, UColAttribute attr, UErrorCode *status);
/** Variable top
* is a two byte primary value which causes all the codepoints with primary values that
@ -550,9 +551,10 @@ U_CAPI UColAttributeValue ucol_getAttribute(const UCollator *coll, UColAttribute
* @see ucol_restoreVariableTop
* @draft ICU 2.0
*/
U_CAPI uint32_t ucol_setVariableTop(UCollator *coll,
const UChar *varTop, int32_t len,
UErrorCode *status);
U_CAPI uint32_t U_EXPORT2
ucol_setVariableTop(UCollator *coll,
const UChar *varTop, int32_t len,
UErrorCode *status);
/**
* Gets the variable top value of a Collator.
@ -577,7 +579,8 @@ U_CAPI uint32_t ucol_getVariableTop(const UCollator *coll, UErrorCode *status);
* @see ucol_setVariableTop
* @draft ICU 2.0
*/
U_CAPI void ucol_restoreVariableTop(UCollator *coll, const uint32_t varTop, UErrorCode *status);
U_CAPI void U_EXPORT2
ucol_restoreVariableTop(UCollator *coll, const uint32_t varTop, UErrorCode *status);
/**
* Thread safe cloning operation. The result is a clone of a given collator.
@ -601,11 +604,11 @@ U_CAPI void ucol_restoreVariableTop(UCollator *coll, const uint32_t varTop, UErr
* @see ucol_close
* @draft ICU 1.8
*/
U_CAPI UCollator * ucol_safeClone(
const UCollator *coll,
void *stackBuffer,
int32_t *pBufferSize,
UErrorCode *status);
U_CAPI UCollator* U_EXPORT2
ucol_safeClone(const UCollator *coll,
void *stackBuffer,
int32_t *pBufferSize,
UErrorCode *status);
/** default memory size for the new clone */
#define U_COL_SAFECLONE_BUFFERSIZE 384
@ -620,7 +623,8 @@ U_CAPI UCollator * ucol_safeClone(
* @param bufferLen lenght of buffer to store rules in. If less then needed you'll get only the part that fits in.
* @draft ICU 1.8
*/
U_CAPI int32_t ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, UChar *buffer, int32_t bufferLen);
U_CAPI int32_t U_EXPORT2
ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, UChar *buffer, int32_t bufferLen);
/********************************* Deprecated API ********************************/
@ -663,7 +667,7 @@ ucol_openVersion(const char *loc,
* @see ucol_setNormalization
* @deprecated To be removed after 2002-sep-30; use ucol_getAttribute().
*/
U_CAPI UNormalizationMode
U_CAPI UNormalizationMode U_EXPORT2
ucol_getNormalization(const UCollator* coll);
/**
@ -676,7 +680,7 @@ ucol_getNormalization(const UCollator* coll);
* @see ucol_getNormalization
* @deprecated To be removed after 2002-sep-30; use ucol_setAttribute().
*/
U_CAPI void
U_CAPI void U_EXPORT2
ucol_setNormalization( UCollator *coll,
UNormalizationMode mode);

View File

@ -101,7 +101,7 @@ typedef struct UCollationElements UCollationElements;
* @return a struct containing collation element information
* @stable
*/
U_CAPI UCollationElements*
U_CAPI UCollationElements* U_EXPORT2
ucol_openElements(const UCollator *coll,
const UChar *text,
int32_t textLength,
@ -111,7 +111,7 @@ ucol_openElements(const UCollator *coll,
* get a hash code for a key... Not very useful!
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucol_keyHashCode(const uint8_t* key, int32_t length);
/**
@ -120,7 +120,7 @@ ucol_keyHashCode(const uint8_t* key, int32_t length);
* @param elems The UCollationElements to close.
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ucol_closeElements(UCollationElements *elems);
/**
@ -132,7 +132,7 @@ ucol_closeElements(UCollationElements *elems);
* @see ucol_previous
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ucol_reset(UCollationElements *elems);
/**
@ -144,7 +144,7 @@ ucol_reset(UCollationElements *elems);
* if an error has occured or if the end of string has been reached
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucol_next(UCollationElements *elems, UErrorCode *status);
/**
@ -163,7 +163,7 @@ ucol_next(UCollationElements *elems, UErrorCode *status);
* been reached.
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucol_previous(UCollationElements *elems, UErrorCode *status);
/**
@ -177,7 +177,7 @@ ucol_previous(UCollationElements *elems, UErrorCode *status);
* expansion sequence
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
ucol_getMaxExpansion(const UCollationElements *elems, int32_t order);
/**
@ -192,7 +192,7 @@ ucol_getMaxExpansion(const UCollationElements *elems, int32_t order);
* @see ucol_getText
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ucol_setText( UCollationElements *elems,
const UChar *text,
int32_t textLength,
@ -207,7 +207,7 @@ ucol_setText( UCollationElements *elems,
* @see ucol_setOffset
* @stable
*/
U_CAPI UTextOffset
U_CAPI UTextOffset U_EXPORT2
ucol_getOffset(const UCollationElements *elems);
/**
@ -222,7 +222,7 @@ ucol_getOffset(const UCollationElements *elems);
* @see ucol_getOffset
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
ucol_setOffset(UCollationElements *elems,
UTextOffset offset,
UErrorCode *status);

View File

@ -173,7 +173,7 @@ typedef enum UDateFormatStyle UDateFormatStyle;
* an error occurred.
* @draft
*/
U_CAPI UDateFormat*
U_CAPI UDateFormat* U_EXPORT2
udat_open(UDateFormatStyle timeStyle,
UDateFormatStyle dateStyle,
const char *locale,
@ -190,7 +190,7 @@ udat_open(UDateFormatStyle timeStyle,
* @param fmt The formatter to close.
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
udat_close(UDateFormat* format);
/**
@ -201,7 +201,7 @@ udat_close(UDateFormat* format);
* @return A pointer to a UDateFormat identical to fmt.
* @stable
*/
U_CAPI UDateFormat*
U_CAPI UDateFormat* U_EXPORT2
udat_clone(const UDateFormat *fmt,
UErrorCode *status);
@ -224,7 +224,7 @@ udat_clone(const UDateFormat *fmt,
* @see UFieldPosition
* @draft
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
udat_format( const UDateFormat* format,
UDate dateToFormat,
UChar* result,
@ -246,7 +246,7 @@ udat_format( const UDateFormat* format,
* @see udat_format
* @draft
*/
U_CAPI UDate
U_CAPI UDate U_EXPORT2
udat_parse( const UDateFormat* format,
const UChar* text,
int32_t textLength,
@ -262,7 +262,7 @@ udat_parse( const UDateFormat* format,
* @see udat_setLenient
* @stable
*/
U_CAPI UBool
U_CAPI UBool U_EXPORT2
udat_isLenient(const UDateFormat* fmt);
/**
@ -274,7 +274,7 @@ udat_isLenient(const UDateFormat* fmt);
* @see dat_isLenient
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
udat_setLenient( UDateFormat* fmt,
UBool isLenient);
@ -287,7 +287,7 @@ udat_setLenient( UDateFormat* fmt,
* @see udat_setCalendar
* @stable
*/
U_CAPI const UCalendar*
U_CAPI const UCalendar* U_EXPORT2
udat_getCalendar(const UDateFormat* fmt);
/**
@ -299,7 +299,7 @@ udat_getCalendar(const UDateFormat* fmt);
* @see udat_setCalendar
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
udat_setCalendar( UDateFormat* fmt,
const UCalendar* calendarToSet);
@ -312,7 +312,7 @@ udat_setCalendar( UDateFormat* fmt,
* @see udat_setNumberFormat
* @stable
*/
U_CAPI const UNumberFormat*
U_CAPI const UNumberFormat* U_EXPORT2
udat_getNumberFormat(const UDateFormat* fmt);
/**
@ -324,7 +324,7 @@ udat_getNumberFormat(const UDateFormat* fmt);
* @see udat_getNumberFormat
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
udat_setNumberFormat( UDateFormat* fmt,
const UNumberFormat* numberFormatToSet);
@ -337,7 +337,7 @@ udat_setNumberFormat( UDateFormat* fmt,
* @see udat_countAvailable
* @stable
*/
U_CAPI const char*
U_CAPI const char* U_EXPORT2
udat_getAvailable(int32_t index);
/**
@ -348,7 +348,7 @@ udat_getAvailable(int32_t index);
* @see udat_getAvailable
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
udat_countAvailable(void);
/**
@ -361,7 +361,7 @@ udat_countAvailable(void);
* @see udat_Set2DigitYearStart
* @stable
*/
U_CAPI UDate
U_CAPI UDate U_EXPORT2
udat_get2DigitYearStart( const UDateFormat *fmt,
UErrorCode *status);
@ -375,7 +375,7 @@ udat_get2DigitYearStart( const UDateFormat *fmt,
* @see udat_Set2DigitYearStart
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
udat_set2DigitYearStart( UDateFormat *fmt,
UDate d,
UErrorCode *status);
@ -392,7 +392,7 @@ udat_set2DigitYearStart( UDateFormat *fmt,
* @see udat_applyPattern
* @draft
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
udat_toPattern( const UDateFormat *fmt,
UBool localized,
UChar *result,
@ -409,7 +409,7 @@ udat_toPattern( const UDateFormat *fmt,
* @see udat_toPattern
* @draft
*/
U_CAPI void
U_CAPI void U_EXPORT2
udat_applyPattern( UDateFormat *format,
UBool localized,
const UChar *pattern,
@ -456,7 +456,7 @@ typedef struct UDateFormatSymbols UDateFormatSymbols;
* @see udat_setSymbols
* @draft
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
udat_getSymbols(const UDateFormat *fmt,
UDateFormatSymbolType type,
int32_t index,
@ -476,7 +476,7 @@ udat_getSymbols(const UDateFormat *fmt,
* @see udat_setSymbols
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
udat_countSymbols( const UDateFormat *fmt,
UDateFormatSymbolType type);
@ -496,7 +496,7 @@ udat_countSymbols( const UDateFormat *fmt,
* @see udat_countSymbols
* @draft
*/
U_CAPI void
U_CAPI void U_EXPORT2
udat_setSymbols( UDateFormat *format,
UDateFormatSymbolType type,
int32_t index,

View File

@ -196,7 +196,7 @@
* @see u_parseMessage
* @draft should this just be usprintf?
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
u_formatMessage(const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -222,7 +222,7 @@ u_formatMessage(const char *locale,
* output was truncated.
* @see u_parseMessage
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
u_vformatMessage( const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -247,7 +247,7 @@ u_vformatMessage( const char *locale,
* @see u_formatMessage
* @draft
*/
U_CAPI void
U_CAPI void U_EXPORT2
u_parseMessage( const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -271,7 +271,7 @@ u_parseMessage( const char *locale,
* specified in pattern.
* @see u_formatMessage
*/
U_CAPI void
U_CAPI void U_EXPORT2
u_vparseMessage(const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -300,7 +300,7 @@ u_vparseMessage(const char *locale,
* @see u_parseMessage
* @draft
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
u_formatMessageWithError( const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -328,7 +328,7 @@ u_formatMessageWithError( const char *locale,
* @return The total buffer size needed; if greater than resultLength, the
* output was truncated.
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
u_vformatMessageWithError( const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -356,7 +356,7 @@ u_vformatMessageWithError( const char *locale,
* @see u_formatMessage
* @draft
*/
U_CAPI void
U_CAPI void U_EXPORT2
u_parseMessageWithError(const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -383,7 +383,7 @@ u_parseMessageWithError(const char *locale,
* specified in pattern.
* @see u_formatMessage
*/
U_CAPI void
U_CAPI void U_EXPORT2
u_vparseMessageWithError(const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -410,7 +410,7 @@ typedef void* UMessageFormat;
* messages, or 0 if an error occurred.
* @draft
*/
U_CAPI UMessageFormat*
U_CAPI UMessageFormat* U_EXPORT2
umsg_open( const UChar *pattern,
int32_t patternLength,
const char *locale,
@ -423,7 +423,7 @@ umsg_open( const UChar *pattern,
* @param fmt The formatter to close.
* @draft
*/
U_CAPI void
U_CAPI void U_EXPORT2
umsg_close(UMessageFormat* format);
/**
@ -434,7 +434,7 @@ umsg_close(UMessageFormat* format);
* @return A pointer to a UDateFormat identical to fmt.
* @draft
*/
U_CAPI UMessageFormat
U_CAPI UMessageFormat U_EXPORT2
umsg_clone(const UMessageFormat *fmt,
UErrorCode *status);
/**
@ -443,7 +443,7 @@ umsg_clone(const UMessageFormat *fmt,
* @param fmt The formatter to set
* @param locale The locale the formatter should use.
*/
U_CAPI void
U_CAPI void U_EXPORT2
umsg_setLocale(UMessageFormat *fmt,
const char* locale);
@ -453,7 +453,7 @@ umsg_setLocale(UMessageFormat *fmt,
* @param The formatter to querry
* @draft
*/
U_CAPI const char*
U_CAPI const char* U_EXPORT2
umsg_getLocale(UMessageFormat *fmt);
/**
@ -468,7 +468,7 @@ umsg_getLocale(UMessageFormat *fmt);
* set to a failure result.
* @draft
*/
U_CAPI void
U_CAPI void U_EXPORT2
umsg_applyPattern( UMessageFormat *fmt,
const UChar* pattern,
int32_t patternLength,
@ -485,7 +485,7 @@ umsg_applyPattern( UMessageFormat *fmt,
* set to a failure result.
* @draft
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
umsg_toPattern(UMessageFormat *fmt,
UChar* result,
int32_t resultLength,
@ -506,7 +506,7 @@ umsg_toPattern(UMessageFormat *fmt,
* the output was truncated.
* @draft
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
umsg_format( UMessageFormat *fmt,
UChar *result,
int32_t resultLength,
@ -527,7 +527,7 @@ umsg_format( UMessageFormat *fmt,
* @return The total buffer size needed; if greater than resultLength,
* the output was truncated.
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
umsg_vformat( UMessageFormat *fmt,
UChar *result,
int32_t resultLength,
@ -548,7 +548,7 @@ umsg_vformat( UMessageFormat *fmt,
* specified in pattern.
* @draft
*/
U_CAPI void
U_CAPI void U_EXPORT2
umsg_parse( UMessageFormat *fmt,
const UChar *source,
int32_t sourceLength,
@ -570,7 +570,7 @@ umsg_parse( UMessageFormat *fmt,
* specified in pattern.
* @see u_formatMessage
*/
U_CAPI void
U_CAPI void U_EXPORT2
umsg_vparse(UMessageFormat *fmt,
const UChar *source,
int32_t sourceLength,

View File

@ -165,7 +165,7 @@ typedef enum UNumberFormatPadPosition UNumberFormatPadPosition;
* @see unum_open
* @draft ICU 2.0
*/
U_CAPI UNumberFormat*
U_CAPI UNumberFormat* U_EXPORT2
unum_open( UNumberFormatStyle style,
const UChar* pattern,
int32_t patternLength,
@ -180,7 +180,7 @@ unum_open( UNumberFormatStyle style,
* @param fmt The formatter to close.
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
unum_close(UNumberFormat* fmt);
/**
@ -191,7 +191,7 @@ unum_close(UNumberFormat* fmt);
* @return A pointer to a UNumberFormat identical to fmt.
* @stable
*/
U_CAPI UNumberFormat*
U_CAPI UNumberFormat* U_EXPORT2
unum_clone(const UNumberFormat *fmt,
UErrorCode *status);
@ -214,7 +214,7 @@ unum_clone(const UNumberFormat *fmt,
* @see UFieldPosition
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
unum_format( const UNumberFormat* fmt,
int32_t number,
UChar* result,
@ -241,7 +241,7 @@ unum_format( const UNumberFormat* fmt,
* @see UFieldPosition
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
unum_formatDouble( const UNumberFormat* fmt,
double number,
UChar* result,
@ -264,7 +264,7 @@ unum_formatDouble( const UNumberFormat* fmt,
* @see unum_formatDouble
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
unum_parse( const UNumberFormat* fmt,
const UChar* text,
int32_t textLength,
@ -286,7 +286,7 @@ unum_parse( const UNumberFormat* fmt,
* @see unum_formatDouble
* @stable
*/
U_CAPI double
U_CAPI double U_EXPORT2
unum_parseDouble( const UNumberFormat* fmt,
const UChar* text,
int32_t textLength,
@ -302,7 +302,7 @@ unum_parseDouble( const UNumberFormat* fmt,
* @param patternLength The length of pattern, or -1 if null-terminated.
* @see unum_toPattern
* @deprecated
U_CAPI void
U_CAPI void U_EXPORT2
unum_applyPattern( UNumberFormat *format,
UBool localized,
const UChar *pattern,
@ -323,7 +323,7 @@ unum_applyPattern( UNumberFormat *format,
* @see unum_toPattern
* @draft ICU 2.0
*/
U_CAPI void
U_CAPI void U_EXPORT2
unum_applyPattern( UNumberFormat *format,
UBool localized,
const UChar *pattern,
@ -341,7 +341,7 @@ unum_applyPattern( UNumberFormat *format,
* @see unum_countAvailable
* @stable
*/
U_CAPI const char*
U_CAPI const char* U_EXPORT2
unum_getAvailable(int32_t index);
/**
@ -352,7 +352,7 @@ unum_getAvailable(int32_t index);
* @see unum_getAvailable
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
unum_countAvailable(void);
/** The possible UNumberFormat numeric attributes */
@ -419,7 +419,7 @@ typedef enum {
* @see unum_setTextAttribute
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
unum_getAttribute(const UNumberFormat* fmt,
UNumberFormatAttribute attr);
@ -439,7 +439,7 @@ unum_getAttribute(const UNumberFormat* fmt,
* @see unum_setTextAttribute
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
unum_setAttribute( UNumberFormat* fmt,
UNumberFormatAttribute attr,
int32_t newValue);
@ -458,7 +458,7 @@ unum_setAttribute( UNumberFormat* fmt,
* @see unum_setTextAttribute
* @stable
*/
U_CAPI double
U_CAPI double U_EXPORT2
unum_getDoubleAttribute(const UNumberFormat* fmt,
UNumberFormatAttribute attr);
@ -475,7 +475,7 @@ unum_getDoubleAttribute(const UNumberFormat* fmt,
* @see unum_setTextAttribute
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
unum_setDoubleAttribute( UNumberFormat* fmt,
UNumberFormatAttribute attr,
double newValue);
@ -510,7 +510,7 @@ typedef enum UNumberFormatTextAttribute UNumberFormatTextAttribute;
* @see unum_setAttribute
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
unum_getTextAttribute( const UNumberFormat* fmt,
UNumberFormatTextAttribute tag,
UChar* result,
@ -531,7 +531,7 @@ unum_getTextAttribute( const UNumberFormat* fmt,
* @see unum_setAttribute
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
unum_setTextAttribute( UNumberFormat* fmt,
UNumberFormatTextAttribute tag,
const UChar* newValue,
@ -549,7 +549,7 @@ unum_setTextAttribute( UNumberFormat* fmt,
* @return The total buffer size needed; if greater than resultLength, the output was truncated.
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
unum_toPattern( const UNumberFormat* fmt,
UBool isPatternLocalized,
UChar* result,
@ -608,7 +608,7 @@ typedef struct UNumberFormatSymbols UNumberFormatSymbols;
* @see unum_setSymbols
* @deprecated remove after 2000-dec-31. See UNumberFormatSymbol and unum_getSymbol() for a replacement.
*/
U_CAPI void
U_CAPI void U_EXPORT2
unum_getSymbols( const UNumberFormat *fmt,
UNumberFormatSymbols *syms);
@ -622,7 +622,7 @@ unum_getSymbols( const UNumberFormat *fmt,
* @see unum_getSymbols
* @deprecated remove after 2000-dec-31. See UNumberFormatSymbol and unum_getSymbol() for a replacement.
*/
U_CAPI void
U_CAPI void U_EXPORT2
unum_setSymbols( UNumberFormat* fmt,
const UNumberFormatSymbols* symbolsToSet,
UErrorCode *status);

View File

@ -164,7 +164,7 @@ typedef struct _UTransPosition {
* utrans_xxx() functions, or NULL if the open call fails.
* @draft ICU 2.0
*/
U_CAPI UTransliterator*
U_CAPI UTransliterator* U_EXPORT2
utrans_open(const char* id,
UTransDirection dir,
const UChar* rules, /* may be Null */
@ -187,7 +187,7 @@ utrans_open(const char* id,
* inverse of trans, or NULL if the open call fails.
* @stable
*/
U_CAPI UTransliterator*
U_CAPI UTransliterator* U_EXPORT2
utrans_openInverse(const UTransliterator* trans,
UErrorCode* status);
@ -201,7 +201,7 @@ utrans_openInverse(const UTransliterator* trans,
* utrans_xxx() functions, or NULL if the clone call fails.
* @stable
*/
U_CAPI UTransliterator*
U_CAPI UTransliterator* U_EXPORT2
utrans_clone(const UTransliterator* trans,
UErrorCode* status);
@ -210,7 +210,7 @@ utrans_clone(const UTransliterator* trans,
* utrans_openXxx() or utrans_clone() should eventually be closed.
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
utrans_close(UTransliterator* trans);
/**
@ -227,7 +227,7 @@ utrans_close(UTransliterator* trans);
* zero-termination. This may be greater than bufCapacity.
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
utrans_getID(const UTransliterator* trans,
char* buf,
int32_t bufCapacity);
@ -246,7 +246,7 @@ utrans_getID(const UTransliterator* trans,
* @param status a pointer to the UErrorCode
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
utrans_register(UTransliterator* adoptedTrans,
UErrorCode* status);
@ -258,7 +258,7 @@ utrans_register(UTransliterator* adoptedTrans,
* @param id a zero-terminated ID
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
utrans_unregister(const char* id);
/**
@ -279,7 +279,7 @@ utrans_unregister(const char* id);
* @see UnicodeSet
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
utrans_setFilter(UTransliterator* trans,
const UChar* filterPattern,
int32_t filterPatternLen,
@ -289,7 +289,7 @@ utrans_setFilter(UTransliterator* trans,
* Return the number of system transliterators.
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
utrans_countAvailableIDs(void);
/**
@ -309,7 +309,7 @@ utrans_countAvailableIDs(void);
* zero-termination. This may be greater than bufCapacity.
* @stable
*/
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
utrans_getAvailableID(int32_t index,
char* buf,
int32_t bufCapacity);
@ -341,7 +341,7 @@ utrans_getAvailableID(int32_t index,
* @param status a pointer to the UErrorCode
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
utrans_trans(const UTransliterator* trans,
UReplaceable* rep,
UReplaceableCallbacks* repFunc,
@ -392,7 +392,7 @@ utrans_trans(const UTransliterator* trans,
* @param status a pointer to the UErrorCode
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
utrans_transIncremental(const UTransliterator* trans,
UReplaceable* rep,
UReplaceableCallbacks* repFunc,
@ -430,7 +430,7 @@ utrans_transIncremental(const UTransliterator* trans,
* @param status a pointer to the UErrorCode
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
utrans_transUChars(const UTransliterator* trans,
UChar* text,
int32_t* textLength,
@ -465,7 +465,7 @@ utrans_transUChars(const UTransliterator* trans,
* @see utrans_transIncremental
* @stable
*/
U_CAPI void
U_CAPI void U_EXPORT2
utrans_transIncrementalUChars(const UTransliterator* trans,
UChar* text,
int32_t* textLength,
@ -484,7 +484,7 @@ utrans_transIncrementalUChars(const UTransliterator* trans,
#if ((U_ICU_VERSION_MAJOR_NUM != 2) || (U_ICU_VERSION_MINOR_NUM !=0))
# error "ICU version has changed. Please redefine the macros under U_USE_DEPRECATED_FORMAT_API pre-processor definition"
#else
U_CAPI UTransliterator*
U_CAPI UTransliterator* U_EXPORT2
utrans_openRules(const char* id,
const UChar* rules,
int32_t rulesLength, /* -1 if null-terminated */

View File

@ -87,7 +87,7 @@ unum_openPattern( const UChar* pattern,
}*/
U_CAPI UNumberFormat*
U_CAPI UNumberFormat* U_EXPORT2
unum_open( UNumberFormatStyle style,
const UChar* pattern,
int32_t patternLength,
@ -176,14 +176,14 @@ unum_open( UNumberFormatStyle style,
}
}
U_CAPI void
U_CAPI void U_EXPORT2
unum_close(UNumberFormat* fmt)
{
delete (NumberFormat*) fmt;
}
U_CAPI UNumberFormat*
U_CAPI UNumberFormat* U_EXPORT2
unum_clone(const UNumberFormat *fmt,
UErrorCode *status)
{
@ -200,7 +200,7 @@ unum_clone(const UNumberFormat *fmt,
return (UNumberFormat*) res;
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
unum_format( const UNumberFormat* fmt,
int32_t number,
UChar* result,
@ -227,7 +227,7 @@ unum_format( const UNumberFormat* fmt,
return res.extract(result, resultLength, *status);
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
unum_formatDouble( const UNumberFormat* fmt,
double number,
UChar* result,
@ -254,7 +254,7 @@ unum_formatDouble( const UNumberFormat* fmt,
return res.extract(result, resultLength, *status);
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
unum_parse( const UNumberFormat* fmt,
const UChar* text,
int32_t textLength,
@ -289,7 +289,7 @@ unum_parse( const UNumberFormat* fmt,
: (int32_t) res.getDouble();
}
U_CAPI double
U_CAPI double U_EXPORT2
unum_parseDouble( const UNumberFormat* fmt,
const UChar* text,
int32_t textLength,
@ -325,21 +325,21 @@ unum_parseDouble( const UNumberFormat* fmt,
: (double) res.getLong();
}
U_CAPI const char*
U_CAPI const char* U_EXPORT2
unum_getAvailable(int32_t index)
{
return uloc_getAvailable(index);
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
unum_countAvailable()
{
return uloc_countAvailable();
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
unum_getAttribute(const UNumberFormat* fmt,
UNumberFormatAttribute attr)
{
@ -396,7 +396,7 @@ unum_getAttribute(const UNumberFormat* fmt,
return -1;
}
U_CAPI void
U_CAPI void U_EXPORT2
unum_setAttribute( UNumberFormat* fmt,
UNumberFormatAttribute attr,
int32_t newValue)
@ -472,7 +472,7 @@ unum_setAttribute( UNumberFormat* fmt,
}
}
U_CAPI double
U_CAPI double U_EXPORT2
unum_getDoubleAttribute(const UNumberFormat* fmt,
UNumberFormatAttribute attr)
{
@ -484,7 +484,7 @@ unum_getDoubleAttribute(const UNumberFormat* fmt,
}
}
U_CAPI void
U_CAPI void U_EXPORT2
unum_setDoubleAttribute( UNumberFormat* fmt,
UNumberFormatAttribute attr,
double newValue)
@ -495,7 +495,7 @@ unum_setDoubleAttribute( UNumberFormat* fmt,
}
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
unum_getTextAttribute(const UNumberFormat* fmt,
UNumberFormatTextAttribute tag,
UChar* result,
@ -537,7 +537,7 @@ unum_getTextAttribute(const UNumberFormat* fmt,
return res.extract(result, resultLength, *status);
}
U_CAPI void
U_CAPI void U_EXPORT2
unum_setTextAttribute( UNumberFormat* fmt,
UNumberFormatTextAttribute tag,
const UChar* newValue,
@ -577,7 +577,7 @@ unum_setTextAttribute( UNumberFormat* fmt,
}
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
unum_toPattern( const UNumberFormat* fmt,
UBool isPatternLocalized,
UChar* result,
@ -743,7 +743,7 @@ unum_applyPattern( UNumberFormat *format,
}
*/
U_CAPI void
U_CAPI void U_EXPORT2
unum_applyPattern( UNumberFormat *format,
UBool localized,
const UChar *pattern,

View File

@ -2629,8 +2629,8 @@ U_CAPI void U_EXPORT2 usearch_setBreakIterator(UStringSearch *strsrch,
}
}
U_CAPI const U_EXPORT2 UBreakIterator * usearch_getBreakIterator(
const UStringSearch *strsrch)
U_CAPI const UBreakIterator* U_EXPORT2
usearch_getBreakIterator(const UStringSearch *strsrch)
{
if (strsrch) {
return strsrch->search->breakIter;
@ -2742,9 +2742,9 @@ U_CAPI void U_EXPORT2 usearch_setPattern( UStringSearch *strsrch,
}
}
U_CAPI const U_EXPORT2 UChar * usearch_getPattern(
const UStringSearch *strsrch,
int32_t *length)
U_CAPI const UChar* U_EXPORT2
usearch_getPattern(const UStringSearch *strsrch,
int32_t *length)
{
if (strsrch) {
*length = strsrch->pattern.textLength;

View File

@ -176,7 +176,7 @@ utrans_openRules(const char* id,
}
#endif
U_CAPI UTransliterator*
U_CAPI UTransliterator* U_EXPORT2
utrans_open(const char* id,
UTransDirection dir,
const UChar* rules, /* may be Null */
@ -226,7 +226,7 @@ utrans_open(const char* id,
}
}
U_CAPI UTransliterator*
U_CAPI UTransliterator* U_EXPORT2
utrans_openInverse(const UTransliterator* trans,
UErrorCode* status) {
@ -238,7 +238,7 @@ utrans_openInverse(const UTransliterator* trans,
return result;
}
U_CAPI UTransliterator*
U_CAPI UTransliterator* U_EXPORT2
utrans_clone(const UTransliterator* trans,
UErrorCode* status) {
@ -256,19 +256,19 @@ utrans_clone(const UTransliterator* trans,
return (UTransliterator*) t;
}
U_CAPI void
U_CAPI void U_EXPORT2
utrans_close(UTransliterator* trans) {
delete (Transliterator*) trans;
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
utrans_getID(const UTransliterator* trans,
char* buf,
int32_t bufCapacity) {
return ((Transliterator*) trans)->getID().extract(0, 0x7fffffff, buf, bufCapacity, "");
}
U_CAPI void
U_CAPI void U_EXPORT2
utrans_register(UTransliterator* adoptedTrans,
UErrorCode* status) {
utrans_ENTRY(status);
@ -276,13 +276,13 @@ utrans_register(UTransliterator* adoptedTrans,
Transliterator::registerInstance((Transliterator*) adoptedTrans);
}
U_CAPI void
U_CAPI void U_EXPORT2
utrans_unregister(const char* id) {
UnicodeString ID(id, ""); // use invariant converter
Transliterator::unregister(ID);
}
U_CAPI void
U_CAPI void U_EXPORT2
utrans_setFilter(UTransliterator* trans,
const UChar* filterPattern,
int32_t filterPatternLen,
@ -302,12 +302,12 @@ utrans_setFilter(UTransliterator* trans,
((Transliterator*) trans)->adoptFilter(filter);
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
utrans_countAvailableIDs(void) {
return Transliterator::countAvailableIDs();
}
U_CAPI int32_t
U_CAPI int32_t U_EXPORT2
utrans_getAvailableID(int32_t index,
char* buf, // may be NULL
int32_t bufCapacity) {
@ -318,7 +318,7 @@ utrans_getAvailableID(int32_t index,
* Transliteration API
********************************************************************/
U_CAPI void
U_CAPI void U_EXPORT2
utrans_trans(const UTransliterator* trans,
UReplaceable* rep,
UReplaceableCallbacks* repFunc,
@ -338,7 +338,7 @@ utrans_trans(const UTransliterator* trans,
*limit = ((Transliterator*) trans)->transliterate(r, start, *limit);
}
U_CAPI void
U_CAPI void U_EXPORT2
utrans_transIncremental(const UTransliterator* trans,
UReplaceable* rep,
UReplaceableCallbacks* repFunc,
@ -357,7 +357,7 @@ utrans_transIncremental(const UTransliterator* trans,
((Transliterator*) trans)->transliterate(r, *pos, *status);
}
U_CAPI void
U_CAPI void U_EXPORT2
utrans_transUChars(const UTransliterator* trans,
UChar* text,
int32_t* textLength,
@ -388,7 +388,7 @@ utrans_transUChars(const UTransliterator* trans,
}
}
U_CAPI void
U_CAPI void U_EXPORT2
utrans_transIncrementalUChars(const UTransliterator* trans,
UChar* text,
int32_t* textLength,