ICU-3405 prototype for U_DRAFT, U_DEPRECATED and U_OBSOLETE

X-SVN-Rev: 14775
This commit is contained in:
Ram Viswanadha 2004-03-26 19:42:04 +00:00
parent 3c47fc520c
commit bbe9de394c
71 changed files with 2107 additions and 1057 deletions

View file

@ -914,6 +914,52 @@ InputPath=.\unicode\uconfig.h
# End Source File
# Begin Source File
SOURCE=.\unicode\udeprctd.h
!IF "$(CFG)" == "common - Win32 Release"
!ELSEIF "$(CFG)" == "common - Win32 Debug"
# Begin Custom Build
InputPath=.\unicode\udeprctd.h
"..\..\include\unicode\udeprctd.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
copy $(InputPath) ..\..\include\unicode
# End Custom Build
!ELSEIF "$(CFG)" == "common - Win64 Release"
!ELSEIF "$(CFG)" == "common - Win64 Debug"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\unicode\udraft.h
!IF "$(CFG)" == "common - Win32 Release"
!ELSEIF "$(CFG)" == "common - Win32 Debug"
# Begin Custom Build
InputPath=.\unicode\udraft.h
"..\..\include\unicode\udraft.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
copy $(InputPath) ..\..\include\unicode
# End Custom Build
!ELSEIF "$(CFG)" == "common - Win64 Release"
!ELSEIF "$(CFG)" == "common - Win64 Debug"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\unicode\umachine.h
!IF "$(CFG)" == "common - Win32 Release"
@ -978,6 +1024,29 @@ SOURCE=.\umutex.h
# End Source File
# Begin Source File
SOURCE=.\unicode\uobslete.h
!IF "$(CFG)" == "common - Win32 Release"
!ELSEIF "$(CFG)" == "common - Win32 Debug"
# Begin Custom Build
InputPath=.\unicode\uobslete.h
"..\..\include\unicode\uobslete.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"
copy $(InputPath) ..\..\include\unicode
# End Custom Build
!ELSEIF "$(CFG)" == "common - Win64 Release"
!ELSEIF "$(CFG)" == "common - Win64 Debug"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\unicode\urename.h
!IF "$(CFG)" == "common - Win32 Release"

View file

@ -687,6 +687,63 @@
<Tool
Name="VCCustomBuildTool"
CommandLine="copy &quot;$(InputPath)&quot; ..\..\include\unicode
"
Outputs="..\..\include\unicode\$(InputFileName)"/>
</FileConfiguration>
</File>
<File
RelativePath=".\unicode\udraft.h">
<FileConfiguration
Name="Release|Win32">
<Tool
Name="VCCustomBuildTool"
CommandLine="copy &quot;$(InputPath)&quot; ..\..\include\unicode
"
Outputs="..\..\include\unicode\$(InputFileName)"/>
</FileConfiguration>
<FileConfiguration
Name="Debug|Win32">
<Tool
Name="VCCustomBuildTool"
CommandLine="copy &quot;$(InputPath)&quot; ..\..\include\unicode
"
Outputs="..\..\include\unicode\$(InputFileName)"/>
</FileConfiguration>
</File>
<File
RelativePath=".\unicode\udeprcted.h">
<FileConfiguration
Name="Release|Win32">
<Tool
Name="VCCustomBuildTool"
CommandLine="copy &quot;$(InputPath)&quot; ..\..\include\unicode
"
Outputs="..\..\include\unicode\$(InputFileName)"/>
</FileConfiguration>
<FileConfiguration
Name="Debug|Win32">
<Tool
Name="VCCustomBuildTool"
CommandLine="copy &quot;$(InputPath)&quot; ..\..\include\unicode
"
Outputs="..\..\include\unicode\$(InputFileName)"/>
</FileConfiguration>
</File>
<File
RelativePath=".\unicode\uobslete.h">
<FileConfiguration
Name="Release|Win32">
<Tool
Name="VCCustomBuildTool"
CommandLine="copy &quot;$(InputPath)&quot; ..\..\include\unicode
"
Outputs="..\..\include\unicode\$(InputFileName)"/>
</FileConfiguration>
<FileConfiguration
Name="Debug|Win32">
<Tool
Name="VCCustomBuildTool"
CommandLine="copy &quot;$(InputPath)&quot; ..\..\include\unicode
"
Outputs="..\..\include\unicode\$(InputFileName)"/>
</FileConfiguration>

View file

@ -539,7 +539,7 @@ public:
* @param kind the type of iterator for which this instance is to be registered
* @param status the in/out status code, no special meanings are assigned
* @return a registry key that can be used to unregister this instance
* @draft ICU 2.4
* @stable ICU 2.4
*/
static URegistryKey registerInstance(BreakIterator* toAdopt, const Locale& locale, UBreakIteratorType kind, UErrorCode& status);
@ -550,7 +550,7 @@ public:
* @param key the registry key returned by a previous call to registerInstance
* @param status the in/out status code, no special meanings are assigned
* @return TRUE if the iterator for the key was successfully unregistered
* @draft ICU 2.4
* @stable ICU 2.4
*/
static UBool unregister(URegistryKey key, UErrorCode& status);
@ -558,7 +558,7 @@ public:
* Return a StringEnumeration over the locales available at the time of the call,
* including registered locales.
* @return a StringEnumeration over the locales available at the time of the call
* @draft ICU 2.4
* @stable ICU 2.4
*/
static StringEnumeration* getAvailableLocales(void);

View file

@ -17,7 +17,7 @@
/** Should permutation skip characters with combining class zero
* Should be either TRUE or FALSE. This is a compile time option
* @draft ICU 2.4
* @stable ICU 2.4
*/
#ifndef CANITER_SKIP_ZEROES
#define CANITER_SKIP_ZEROES TRUE
@ -60,7 +60,7 @@ Results for: {LATIN CAPITAL LETTER A WITH RING ABOVE}{LATIN SMALL LETTER D}{COMB
* Note, CanonicalIterator is not intended to be subclassed.
* @author M. Davis
* @author C++ port by V. Weinstein
* @draft ICU 2.4
* @stable ICU 2.4
*/
class U_COMMON_API CanonicalIterator : public UObject {
public:
@ -68,26 +68,26 @@ public:
* Construct a CanonicalIterator object
* @param source string to get results for
* @param status Fill-in parameter which receives the status of this operation.
* @draft ICU 2.4
* @stable ICU 2.4
*/
CanonicalIterator(const UnicodeString &source, UErrorCode &status);
/** Destructor
* Cleans pieces
* @draft ICU 2.4
* @stable ICU 2.4
*/
~CanonicalIterator();
/**
* Gets the NFD form of the current source we are iterating over.
* @return gets the source: NOTE: it is the NFD form of source
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeString getSource();
/**
* Resets the iterator so that one can start again from the beginning.
* @draft ICU 2.4
* @stable ICU 2.4
*/
void reset();
@ -96,7 +96,7 @@ public:
* <br><b>Warning: The strings are not guaranteed to be in any particular order.</b>
* @return the next string that is canonically equivalent. A bogus string is returned when
* the iteration is done.
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeString next();
@ -105,7 +105,7 @@ public:
* @param newSource the source string to iterate against. This allows the same iterator to be used
* while changing the source string, saving object creation.
* @param status Fill-in parameter which receives the status of this operation.
* @draft ICU 2.4
* @stable ICU 2.4
*/
void setSource(const UnicodeString &newSource, UErrorCode &status);

View file

@ -46,93 +46,93 @@
* Floating point utility to determine if a double is Not a Number (NaN).
* @internal
*/
U_CAPI UBool U_EXPORT2 uprv_isNaN(double d);
U_STABLE UBool U_EXPORT2 uprv_isNaN(double d);
/**
* Floating point utility to determine if a double has an infinite value.
* @internal
*/
U_CAPI UBool U_EXPORT2 uprv_isInfinite(double d);
U_STABLE UBool U_EXPORT2 uprv_isInfinite(double d);
/**
* Floating point utility to determine if a double has a positive infinite value.
* @internal
*/
U_CAPI UBool U_EXPORT2 uprv_isPositiveInfinity(double d);
U_STABLE UBool U_EXPORT2 uprv_isPositiveInfinity(double d);
/**
* Floating point utility to determine if a double has a negative infinite value.
* @internal
*/
U_CAPI UBool U_EXPORT2 uprv_isNegativeInfinity(double d);
U_STABLE UBool U_EXPORT2 uprv_isNegativeInfinity(double d);
/**
* Floating point utility that returns a Not a Number (NaN) value.
* @internal
*/
U_CAPI double U_EXPORT2 uprv_getNaN(void);
U_STABLE double U_EXPORT2 uprv_getNaN(void);
/**
* Floating point utility that returns an infinite value.
* @internal
*/
U_CAPI double U_EXPORT2 uprv_getInfinity(void);
U_STABLE double U_EXPORT2 uprv_getInfinity(void);
/**
* Floating point utility to truncate a double.
* @internal
*/
U_CAPI double U_EXPORT2 uprv_trunc(double d);
U_STABLE double U_EXPORT2 uprv_trunc(double d);
/**
* Floating point utility to calculate the floor of a double.
* @internal
*/
U_CAPI double U_EXPORT2 uprv_floor(double d);
U_STABLE double U_EXPORT2 uprv_floor(double d);
/**
* Floating point utility to calculate the ceiling of a double.
* @internal
*/
U_CAPI double U_EXPORT2 uprv_ceil(double d);
U_STABLE double U_EXPORT2 uprv_ceil(double d);
/**
* Floating point utility to calculate the absolute value of a double.
* @internal
*/
U_CAPI double U_EXPORT2 uprv_fabs(double d);
U_STABLE double U_EXPORT2 uprv_fabs(double d);
/**
* Floating point utility to calculate the fractional and integer parts of a double.
* @internal
*/
U_CAPI double U_EXPORT2 uprv_modf(double d, double* pinteger);
U_STABLE double U_EXPORT2 uprv_modf(double d, double* pinteger);
/**
* Floating point utility to calculate the remainder of a double divided by another double.
* @internal
*/
U_CAPI double U_EXPORT2 uprv_fmod(double d, double y);
U_STABLE double U_EXPORT2 uprv_fmod(double d, double y);
/**
* Floating point utility to calculate d to the power of exponent (d^exponent).
* @internal
*/
U_CAPI double U_EXPORT2 uprv_pow(double d, double exponent);
U_STABLE double U_EXPORT2 uprv_pow(double d, double exponent);
/**
* Floating point utility to calculate 10 to the power of exponent (10^exponent).
* @internal
*/
U_CAPI double U_EXPORT2 uprv_pow10(int32_t exponent);
U_STABLE double U_EXPORT2 uprv_pow10(int32_t exponent);
/**
* Floating point utility to calculate the maximum value of two doubles.
* @internal
*/
U_CAPI double U_EXPORT2 uprv_fmax(double d, double y);
U_STABLE double U_EXPORT2 uprv_fmax(double d, double y);
/**
* Floating point utility to calculate the minimum value of two doubles.
* @internal
*/
U_CAPI double U_EXPORT2 uprv_fmin(double d, double y);
U_STABLE double U_EXPORT2 uprv_fmin(double d, double y);
/**
* Private utility to calculate the maximum value of two integers.
* @internal
*/
U_CAPI int32_t U_EXPORT2 uprv_max(int32_t d, int32_t y);
U_STABLE int32_t U_EXPORT2 uprv_max(int32_t d, int32_t y);
/**
* Private utility to calculate the minimum value of two integers.
* @internal
*/
U_CAPI int32_t U_EXPORT2 uprv_min(int32_t d, int32_t y);
U_STABLE int32_t U_EXPORT2 uprv_min(int32_t d, int32_t y);
#if U_IS_BIG_ENDIAN
# define uprv_isNegative(number) (*((signed char *)&(number))<0)
@ -145,7 +145,7 @@ U_CAPI int32_t U_EXPORT2 uprv_min(int32_t d, int32_t y);
* type of arbitrary bit length.
* @internal
*/
U_CAPI double U_EXPORT2 uprv_maxMantissa(void);
U_STABLE double U_EXPORT2 uprv_maxMantissa(void);
/**
* Return the floor of the log base 10 of a given double.
@ -158,13 +158,13 @@ U_CAPI double U_EXPORT2 uprv_maxMantissa(void);
* @return the log of value d.
* @internal
*/
U_CAPI int16_t U_EXPORT2 uprv_log10(double d);
U_STABLE int16_t U_EXPORT2 uprv_log10(double d);
/**
* Floating point utility to calculate the logarithm of a double.
* @internal
*/
U_CAPI double U_EXPORT2 uprv_log(double d);
U_STABLE double U_EXPORT2 uprv_log(double d);
/**
* Does common notion of rounding e.g. uprv_floor(x + 0.5);
@ -172,7 +172,7 @@ U_CAPI double U_EXPORT2 uprv_log(double d);
* @return the rounded double
* @internal
*/
U_CAPI double U_EXPORT2 uprv_round(double x);
U_STABLE double U_EXPORT2 uprv_round(double x);
/**
* Returns the number of digits after the decimal point in a double number x.
@ -181,7 +181,7 @@ U_CAPI double U_EXPORT2 uprv_round(double x);
* @return the number of digits after the decimal point in a double number x.
* @internal
*/
U_CAPI int32_t U_EXPORT2 uprv_digitsAfterDecimal(double x);
U_STABLE int32_t U_EXPORT2 uprv_digitsAfterDecimal(double x);
/**
* Time zone utilities
@ -215,7 +215,7 @@ U_CAPI int32_t U_EXPORT2 uprv_digitsAfterDecimal(double x);
* Date/Time application.
* @internal
*/
U_CAPI void U_EXPORT2 uprv_tzset(void);
U_STABLE void U_EXPORT2 uprv_tzset(void);
/**
* Difference in seconds between coordinated universal
@ -223,7 +223,7 @@ U_CAPI void U_EXPORT2 uprv_tzset(void);
* @return the difference in seconds between coordinated universal time and local time.
* @internal
*/
U_CAPI int32_t U_EXPORT2 uprv_timezone(void);
U_STABLE int32_t U_EXPORT2 uprv_timezone(void);
/**
* tzname(0) Three-letter time-zone name derived from TZ environment
@ -233,14 +233,14 @@ U_CAPI int32_t U_EXPORT2 uprv_timezone(void);
* tzname(1) is an empty string.
* @internal
*/
U_CAPI char* U_EXPORT2 uprv_tzname(int n);
U_STABLE char* U_EXPORT2 uprv_tzname(int n);
/**
* Get UTC (GMT) time measured in seconds since 0:00 on 1/1/70.
* @return the UTC time measured in seconds
* @internal
*/
U_CAPI int32_t U_EXPORT2 uprv_getUTCtime(void);
U_STABLE int32_t U_EXPORT2 uprv_getUTCtime(void);
/**
* Return the ICU data directory.
@ -262,7 +262,7 @@ U_CAPI int32_t U_EXPORT2 uprv_getUTCtime(void);
*
* @stable ICU 2.0
*/
U_CAPI const char* U_EXPORT2 u_getDataDirectory(void);
U_STABLE const char* U_EXPORT2 u_getDataDirectory(void);
/**
* Set the ICU data directory.
@ -283,7 +283,7 @@ U_CAPI const char* U_EXPORT2 u_getDataDirectory(void);
* @see u_init
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2 u_setDataDirectory(const char *directory);
U_STABLE void U_EXPORT2 u_setDataDirectory(const char *directory);
/**
* Please use ucnv_getDefaultName() instead.
@ -293,7 +293,7 @@ U_CAPI void U_EXPORT2 u_setDataDirectory(const char *directory);
* @return the default codepage for this platform
* @internal
*/
U_CAPI const char* U_EXPORT2 uprv_getDefaultCodepage(void);
U_STABLE const char* U_EXPORT2 uprv_getDefaultCodepage(void);
/**
* Please use uloc_getDefault() instead.
@ -304,7 +304,7 @@ U_CAPI const char* U_EXPORT2 uprv_getDefaultCodepage(void);
* @return the default locale ID string
* @internal
*/
U_CAPI const char* U_EXPORT2 uprv_getDefaultLocaleID(void);
U_STABLE const char* U_EXPORT2 uprv_getDefaultLocaleID(void);
/**
* Filesystem file and path separator characters.
@ -350,7 +350,7 @@ U_CAPI const char* U_EXPORT2 uprv_getDefaultLocaleID(void);
* include the terminating <code>NUL</code>.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
u_charsToUChars(const char *cs, UChar *us, int32_t length);
/**
@ -370,7 +370,7 @@ u_charsToUChars(const char *cs, UChar *us, int32_t length);
* include the terminating <code>NUL</code>.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
u_UCharsToChars(const UChar *us, char *cs, int32_t length);
/**
@ -383,7 +383,7 @@ u_UCharsToChars(const UChar *us, char *cs, int32_t length);
*
* @internal (ICU 2.8)
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
uprv_isInvariantString(const char *s, int32_t length);
/**
@ -396,7 +396,7 @@ uprv_isInvariantString(const char *s, int32_t length);
*
* @internal (ICU 2.8)
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
uprv_isInvariantUString(const UChar *s, int32_t length);
/**

View file

@ -198,7 +198,7 @@ protected:
/**
* Default constructor.
* @draft ICU 2.4
* @stable ICU 2.4
*/
Replaceable();
@ -215,19 +215,19 @@ protected:
/**
* Virtual version of length().
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual int32_t getLength() const = 0;
/**
* Virtual version of charAt().
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UChar getCharAt(int32_t offset) const = 0;
/**
* Virtual version of char32At().
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UChar32 getChar32At(int32_t offset) const = 0;
};

View file

@ -45,13 +45,13 @@ U_NAMESPACE_BEGIN
* ICU 2.8 adds some default implementations and helper functions
* for subclasses.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
class U_COMMON_API StringEnumeration : public UObject {
public:
/**
* Destructor.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual ~StringEnumeration();
@ -88,7 +88,7 @@ public:
* @param status the error code.
* @return number of elements in the iterator.
*
* @draft ICU 2.4 */
* @stable ICU 2.4 */
virtual int32_t count(UErrorCode& status) const = 0;
/**
@ -118,7 +118,7 @@ public:
* @param resultLength a pointer to receive the length, can be NULL.
* @return a pointer to the string, or NULL.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual const char* next(int32_t *resultLength, UErrorCode& status);
@ -143,7 +143,7 @@ public:
* @param resultLength a ponter to receive the length, can be NULL.
* @return a pointer to the string, or NULL.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual const UChar* unext(int32_t *resultLength, UErrorCode& status);
@ -161,7 +161,7 @@ public:
* @param status the error code.
* @return a pointer to the string, or NULL.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual const UnicodeString* snext(UErrorCode& status) = 0;
@ -175,7 +175,7 @@ public:
*
* @param status the error code.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual void reset(UErrorCode& status) = 0;

View file

@ -413,7 +413,7 @@ typedef struct UBiDi UBiDi;
* @return An empty <code>UBiDi</code> object.
* @stable ICU 2.0
*/
U_CAPI UBiDi * U_EXPORT2
U_STABLE UBiDi * U_EXPORT2
ubidi_open(void);
/**
@ -451,7 +451,7 @@ ubidi_open(void);
* @return An empty <code>UBiDi</code> object with preallocated memory.
* @stable ICU 2.0
*/
U_CAPI UBiDi * U_EXPORT2
U_STABLE UBiDi * U_EXPORT2
ubidi_openSized(int32_t maxLength, int32_t maxRunCount, UErrorCode *pErrorCode);
/**
@ -472,7 +472,7 @@ ubidi_openSized(int32_t maxLength, int32_t maxRunCount, UErrorCode *pErrorCode);
* @see ubidi_setLine
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ubidi_close(UBiDi *pBiDi);
/**
@ -511,7 +511,7 @@ ubidi_close(UBiDi *pBiDi);
* @see ubidi_writeReordered
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ubidi_setInverse(UBiDi *pBiDi, UBool isInverse);
/**
@ -523,7 +523,7 @@ ubidi_setInverse(UBiDi *pBiDi, UBool isInverse);
* @see ubidi_setInverse
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
ubidi_isInverse(UBiDi *pBiDi);
/**
@ -597,7 +597,7 @@ ubidi_isInverse(UBiDi *pBiDi);
* which must not indicate a failure before the function call.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ubidi_setPara(UBiDi *pBiDi, const UChar *text, int32_t length,
UBiDiLevel paraLevel, UBiDiLevel *embeddingLevels,
UErrorCode *pErrorCode);
@ -645,7 +645,7 @@ ubidi_setPara(UBiDi *pBiDi, const UChar *text, int32_t length,
* @see ubidi_setPara
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ubidi_setLine(const UBiDi *pParaBiDi,
int32_t start, int32_t limit,
UBiDi *pLineBiDi,
@ -663,7 +663,7 @@ ubidi_setLine(const UBiDi *pParaBiDi,
* @see UBiDiDirection
* @stable ICU 2.0
*/
U_CAPI UBiDiDirection U_EXPORT2
U_STABLE UBiDiDirection U_EXPORT2
ubidi_getDirection(const UBiDi *pBiDi);
/**
@ -677,7 +677,7 @@ ubidi_getDirection(const UBiDi *pBiDi);
* @see ubidi_setLine
* @stable ICU 2.0
*/
U_CAPI const UChar * U_EXPORT2
U_STABLE const UChar * U_EXPORT2
ubidi_getText(const UBiDi *pBiDi);
/**
@ -688,7 +688,7 @@ ubidi_getText(const UBiDi *pBiDi);
* @return The length of the text that the UBiDi object was created for.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ubidi_getLength(const UBiDi *pBiDi);
/**
@ -701,7 +701,7 @@ ubidi_getLength(const UBiDi *pBiDi);
* @see UBiDiLevel
* @stable ICU 2.0
*/
U_CAPI UBiDiLevel U_EXPORT2
U_STABLE UBiDiLevel U_EXPORT2
ubidi_getParaLevel(const UBiDi *pBiDi);
/**
@ -716,7 +716,7 @@ ubidi_getParaLevel(const UBiDi *pBiDi);
* @see UBiDiLevel
* @stable ICU 2.0
*/
U_CAPI UBiDiLevel U_EXPORT2
U_STABLE UBiDiLevel U_EXPORT2
ubidi_getLevelAt(const UBiDi *pBiDi, int32_t charIndex);
/**
@ -736,7 +736,7 @@ ubidi_getLevelAt(const UBiDi *pBiDi, int32_t charIndex);
* @see UBiDiLevel
* @stable ICU 2.0
*/
U_CAPI const UBiDiLevel * U_EXPORT2
U_STABLE const UBiDiLevel * U_EXPORT2
ubidi_getLevels(UBiDi *pBiDi, UErrorCode *pErrorCode);
/**
@ -761,7 +761,7 @@ ubidi_getLevels(UBiDi *pBiDi, UErrorCode *pErrorCode);
* value is not necessary.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ubidi_getLogicalRun(const UBiDi *pBiDi, int32_t logicalStart,
int32_t *pLogicalLimit, UBiDiLevel *pLevel);
@ -781,7 +781,7 @@ ubidi_getLogicalRun(const UBiDi *pBiDi, int32_t logicalStart,
* @return The number of runs.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ubidi_countRuns(UBiDi *pBiDi, UErrorCode *pErrorCode);
/**
@ -835,7 +835,7 @@ ubidi_countRuns(UBiDi *pBiDi, UErrorCode *pErrorCode);
* before first ones.
* @stable ICU 2.0
*/
U_CAPI UBiDiDirection U_EXPORT2
U_STABLE UBiDiDirection U_EXPORT2
ubidi_getVisualRun(UBiDi *pBiDi, int32_t runIndex,
int32_t *pLogicalStart, int32_t *pLength);
@ -862,7 +862,7 @@ ubidi_getVisualRun(UBiDi *pBiDi, int32_t runIndex,
* @see ubidi_getLogicalIndex
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ubidi_getVisualIndex(UBiDi *pBiDi, int32_t logicalIndex, UErrorCode *pErrorCode);
/**
@ -886,7 +886,7 @@ ubidi_getVisualIndex(UBiDi *pBiDi, int32_t logicalIndex, UErrorCode *pErrorCode)
* @see ubidi_getVisualIndex
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ubidi_getLogicalIndex(UBiDi *pBiDi, int32_t visualIndex, UErrorCode *pErrorCode);
/**
@ -907,7 +907,7 @@ ubidi_getLogicalIndex(UBiDi *pBiDi, int32_t visualIndex, UErrorCode *pErrorCode)
* @see ubidi_getVisualIndex
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ubidi_getLogicalMap(UBiDi *pBiDi, int32_t *indexMap, UErrorCode *pErrorCode);
/**
@ -928,7 +928,7 @@ ubidi_getLogicalMap(UBiDi *pBiDi, int32_t *indexMap, UErrorCode *pErrorCode);
* @see ubidi_getLogicalIndex
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ubidi_getVisualMap(UBiDi *pBiDi, int32_t *indexMap, UErrorCode *pErrorCode);
/**
@ -951,7 +951,7 @@ ubidi_getVisualMap(UBiDi *pBiDi, int32_t *indexMap, UErrorCode *pErrorCode);
* The index map will result in <code>indexMap[logicalIndex]==visualIndex</code>.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ubidi_reorderLogical(const UBiDiLevel *levels, int32_t length, int32_t *indexMap);
/**
@ -974,7 +974,7 @@ ubidi_reorderLogical(const UBiDiLevel *levels, int32_t length, int32_t *indexMap
* The index map will result in <code>indexMap[visualIndex]==logicalIndex</code>.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ubidi_reorderVisual(const UBiDiLevel *levels, int32_t length, int32_t *indexMap);
/**
@ -991,7 +991,7 @@ ubidi_reorderVisual(const UBiDiLevel *levels, int32_t length, int32_t *indexMap)
* @param length is the length of each array.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ubidi_invertMap(const int32_t *srcMap, int32_t *destMap, int32_t length);
/** option flags for ubidi_writeReordered() */
@ -1109,7 +1109,7 @@ ubidi_invertMap(const int32_t *srcMap, int32_t *destMap, int32_t length);
* @return The length of the output string.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ubidi_writeReordered(UBiDi *pBiDi,
UChar *dest, int32_t destSize,
uint16_t options,
@ -1162,7 +1162,7 @@ ubidi_writeReordered(UBiDi *pBiDi,
* @return The length of the output string.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ubidi_writeReverse(const UChar *src, int32_t srcLength,
UChar *dest, int32_t destSize,
uint16_t options,

View file

@ -193,6 +193,8 @@ typedef enum UBreakIteratorType {
UBRK_LINE,
/** Sentence breaks @stable ICU 2.0 */
UBRK_SENTENCE,
#ifndef U_HIDE_DEPRECATED_API
/**
* Title Case breaks
* The iterator created using this type locates title boundaries as described for
@ -202,6 +204,8 @@ typedef enum UBreakIteratorType {
* @deprecated ICU 2.8 Use the word break iterator for titlecasing for Unicode 4 and later.
*/
UBRK_TITLE
#endif /* U_HIDE_DEPRECATED_API */
} UBreakIteratorType;
/** Value indicating all text boundaries have been returned.
@ -306,7 +310,7 @@ typedef enum USentenceBreakTag {
* @see ubrk_openRules
* @stable ICU 2.0
*/
U_CAPI UBreakIterator* U_EXPORT2
U_STABLE UBreakIterator* U_EXPORT2
ubrk_open(UBreakIteratorType type,
const char *locale,
const UChar *text,
@ -328,7 +332,7 @@ ubrk_open(UBreakIteratorType type,
* @see ubrk_open
* @stable ICU 2.2
*/
U_CAPI UBreakIterator* U_EXPORT2
U_STABLE UBreakIterator* U_EXPORT2
ubrk_openRules(const UChar *rules,
int32_t rulesLength,
const UChar *text,
@ -352,7 +356,7 @@ ubrk_openRules(const UChar *rules,
* @return pointer to the new clone
* @stable ICU 2.0
*/
U_CAPI UBreakIterator * U_EXPORT2
U_STABLE UBreakIterator * U_EXPORT2
ubrk_safeClone(
const UBreakIterator *bi,
void *stackBuffer,
@ -371,7 +375,7 @@ ubrk_safeClone(
* @param bi The break iterator to close.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ubrk_close(UBreakIterator *bi);
/**
@ -382,7 +386,7 @@ ubrk_close(UBreakIterator *bi);
* @param status The error code
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ubrk_setText(UBreakIterator* bi,
const UChar* text,
int32_t textLength,
@ -396,7 +400,7 @@ ubrk_setText(UBreakIterator* bi,
* \Ref{ubrk_first}, or \Ref{ubrk_last}.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ubrk_current(const UBreakIterator *bi);
/**
@ -408,7 +412,7 @@ ubrk_current(const UBreakIterator *bi);
* @see ubrk_previous
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ubrk_next(UBreakIterator *bi);
/**
@ -420,7 +424,7 @@ ubrk_next(UBreakIterator *bi);
* @see ubrk_next
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ubrk_previous(UBreakIterator *bi);
/**
@ -431,7 +435,7 @@ ubrk_previous(UBreakIterator *bi);
* @see ubrk_last
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ubrk_first(UBreakIterator *bi);
/**
@ -444,7 +448,7 @@ ubrk_first(UBreakIterator *bi);
* @see ubrk_first
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ubrk_last(UBreakIterator *bi);
/**
@ -456,7 +460,7 @@ ubrk_last(UBreakIterator *bi);
* @see ubrk_following
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ubrk_preceding(UBreakIterator *bi,
int32_t offset);
@ -469,7 +473,7 @@ ubrk_preceding(UBreakIterator *bi,
* @see ubrk_preceding
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ubrk_following(UBreakIterator *bi,
int32_t offset);
@ -482,7 +486,7 @@ ubrk_following(UBreakIterator *bi,
* @see ubrk_countAvailable
* @stable ICU 2.0
*/
U_CAPI const char* U_EXPORT2
U_STABLE const char* U_EXPORT2
ubrk_getAvailable(int32_t index);
/**
@ -493,7 +497,7 @@ ubrk_getAvailable(int32_t index);
* @see ubrk_getAvailable
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ubrk_countAvailable(void);
@ -506,7 +510,7 @@ ubrk_countAvailable(void);
* @return True if "offset" is a boundary position.
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
ubrk_isBoundary(UBreakIterator *bi, int32_t offset);
/**
@ -518,7 +522,7 @@ ubrk_isBoundary(UBreakIterator *bi, int32_t offset);
* For word break iterators, the possible values are defined in enum UWordBreak.
* @stable ICU 2.2
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ubrk_getRuleStatus(UBreakIterator *bi);
/**
@ -538,7 +542,7 @@ ubrk_getRuleStatus(UBreakIterator *bi);
* the most recent boundary returned by the break iterator.
* @draft ICU 3.0
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
ubrk_getRuleStatusVec(UBreakIterator *bi, int32_t *fillInVec, int32_t capacity, UErrorCode *status);
/**
@ -550,7 +554,7 @@ ubrk_getRuleStatusVec(UBreakIterator *bi, int32_t *fillInVec, int32_t capacity,
* @return locale string
* @draft ICU 2.8 likely to change in ICU 3.0, based on feedback
*/
U_CAPI const char* U_EXPORT2
U_DRAFT const char* U_EXPORT2
ubrk_getLocaleByType(const UBreakIterator *bi, ULocDataLocaleType type, UErrorCode* status);

View file

@ -101,7 +101,7 @@ typedef UResourceBundle* u_nl_catd;
*
* @draft ICU 2.6
*/
U_CAPI u_nl_catd U_EXPORT2
U_DRAFT u_nl_catd U_EXPORT2
u_catopen(const char* name, const char* locale, UErrorCode* ec);
/**
@ -112,7 +112,7 @@ u_catopen(const char* name, const char* locale, UErrorCode* ec);
*
* @draft ICU 2.6
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
u_catclose(u_nl_catd catd);
/**
@ -147,7 +147,7 @@ u_catclose(u_nl_catd catd);
*
* @draft ICU 2.6
*/
U_CAPI const UChar* U_EXPORT2
U_DRAFT const UChar* U_EXPORT2
u_catgets(u_nl_catd catd, int32_t set_num, int32_t msg_num,
const UChar* s,
int32_t* len, UErrorCode* ec);

View file

@ -338,66 +338,66 @@ typedef enum UProperty {
When used with u_getPropertyValueName() and u_getPropertyValueEnum(),
a multi-bit mask is used for sets of categories like "Letters".
Mask values should be cast to uint32_t.
@draft ICU 2.4 */
@stable ICU 2.4 */
UCHAR_GENERAL_CATEGORY_MASK=0x2000,
/** First constant for bit-mask Unicode properties. @draft ICU 2.4 */
/** First constant for bit-mask Unicode properties. @stable ICU 2.4 */
UCHAR_MASK_START=UCHAR_GENERAL_CATEGORY_MASK,
/** One more than the last constant for bit-mask Unicode properties. @draft ICU 2.4 */
/** One more than the last constant for bit-mask Unicode properties. @stable ICU 2.4 */
UCHAR_MASK_LIMIT,
/** Double property Numeric_Value.
Corresponds to u_getNumericValue. @draft ICU 2.4 */
Corresponds to u_getNumericValue. @stable ICU 2.4 */
UCHAR_NUMERIC_VALUE=0x3000,
/** First constant for double Unicode properties. @draft ICU 2.4 */
/** First constant for double Unicode properties. @stable ICU 2.4 */
UCHAR_DOUBLE_START=UCHAR_NUMERIC_VALUE,
/** One more than the last constant for double Unicode properties. @draft ICU 2.4 */
/** One more than the last constant for double Unicode properties. @stable ICU 2.4 */
UCHAR_DOUBLE_LIMIT,
/** String property Age.
Corresponds to u_charAge. @draft ICU 2.4 */
Corresponds to u_charAge. @stable ICU 2.4 */
UCHAR_AGE=0x4000,
/** First constant for string Unicode properties. @draft ICU 2.4 */
/** First constant for string Unicode properties. @stable ICU 2.4 */
UCHAR_STRING_START=UCHAR_AGE,
/** String property Bidi_Mirroring_Glyph.
Corresponds to u_charMirror. @draft ICU 2.4 */
Corresponds to u_charMirror. @stable ICU 2.4 */
UCHAR_BIDI_MIRRORING_GLYPH,
/** String property Case_Folding.
Corresponds to u_strFoldCase in ustring.h. @draft ICU 2.4 */
Corresponds to u_strFoldCase in ustring.h. @stable ICU 2.4 */
UCHAR_CASE_FOLDING,
/** String property ISO_Comment.
Corresponds to u_getISOComment. @draft ICU 2.4 */
Corresponds to u_getISOComment. @stable ICU 2.4 */
UCHAR_ISO_COMMENT,
/** String property Lowercase_Mapping.
Corresponds to u_strToLower in ustring.h. @draft ICU 2.4 */
Corresponds to u_strToLower in ustring.h. @stable ICU 2.4 */
UCHAR_LOWERCASE_MAPPING,
/** String property Name.
Corresponds to u_charName. @draft ICU 2.4 */
Corresponds to u_charName. @stable ICU 2.4 */
UCHAR_NAME,
/** String property Simple_Case_Folding.
Corresponds to u_foldCase. @draft ICU 2.4 */
Corresponds to u_foldCase. @stable ICU 2.4 */
UCHAR_SIMPLE_CASE_FOLDING,
/** String property Simple_Lowercase_Mapping.
Corresponds to u_tolower. @draft ICU 2.4 */
Corresponds to u_tolower. @stable ICU 2.4 */
UCHAR_SIMPLE_LOWERCASE_MAPPING,
/** String property Simple_Titlecase_Mapping.
Corresponds to u_totitle. @draft ICU 2.4 */
Corresponds to u_totitle. @stable ICU 2.4 */
UCHAR_SIMPLE_TITLECASE_MAPPING,
/** String property Simple_Uppercase_Mapping.
Corresponds to u_toupper. @draft ICU 2.4 */
Corresponds to u_toupper. @stable ICU 2.4 */
UCHAR_SIMPLE_UPPERCASE_MAPPING,
/** String property Titlecase_Mapping.
Corresponds to u_strToTitle in ustring.h. @draft ICU 2.4 */
Corresponds to u_strToTitle in ustring.h. @stable ICU 2.4 */
UCHAR_TITLECASE_MAPPING,
/** String property Unicode_1_Name.
Corresponds to u_charName. @draft ICU 2.4 */
Corresponds to u_charName. @stable ICU 2.4 */
UCHAR_UNICODE_1_NAME,
/** String property Uppercase_Mapping.
Corresponds to u_strToUpper in ustring.h. @draft ICU 2.4 */
Corresponds to u_strToUpper in ustring.h. @stable ICU 2.4 */
UCHAR_UPPERCASE_MAPPING,
/** One more than the last constant for string Unicode properties. @draft ICU 2.4 */
/** One more than the last constant for string Unicode properties. @stable ICU 2.4 */
UCHAR_STRING_LIMIT,
/** Represents a nonexistent or invalid property or property value. @draft ICU 2.4 */
/** Represents a nonexistent or invalid property or property value. @stable ICU 2.4 */
UCHAR_INVALID_CODE = -1
} UProperty;
@ -642,6 +642,7 @@ typedef enum UCharDirection {
* @stable ICU 2.0
*/
enum UBlockCode {
/** New No_Block value in Unicode 4. @draft ICU 2.6 */
UBLOCK_NO_BLOCK = 0, /*[none]*/ /* Special range indicating No_Block */
@ -1075,7 +1076,7 @@ typedef enum UCharNameChoice {
*
* @see u_getPropertyName()
* @see u_getPropertyValueName()
* @draft ICU 2.4
* @stable ICU 2.4
*/
typedef enum UPropertyNameChoice {
U_SHORT_PROPERTY_NAME,
@ -1288,7 +1289,7 @@ typedef enum UHangulSyllableType {
* @see u_getUnicodeVersion
* @stable ICU 2.1
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_hasBinaryProperty(UChar32 c, UProperty which);
/**
@ -1303,7 +1304,7 @@ u_hasBinaryProperty(UChar32 c, UProperty which);
* @see u_hasBinaryProperty
* @stable ICU 2.1
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isUAlphabetic(UChar32 c);
/**
@ -1318,7 +1319,7 @@ u_isUAlphabetic(UChar32 c);
* @see u_hasBinaryProperty
* @stable ICU 2.1
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isULowercase(UChar32 c);
/**
@ -1333,7 +1334,7 @@ u_isULowercase(UChar32 c);
* @see u_hasBinaryProperty
* @stable ICU 2.1
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isUUppercase(UChar32 c);
/**
@ -1354,7 +1355,7 @@ u_isUUppercase(UChar32 c);
* @see u_hasBinaryProperty
* @stable ICU 2.1
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isUWhiteSpace(UChar32 c);
/**
@ -1394,7 +1395,7 @@ u_isUWhiteSpace(UChar32 c);
* @see u_getUnicodeVersion
* @stable ICU 2.2
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_getIntPropertyValue(UChar32 c, UProperty which);
/**
@ -1415,7 +1416,7 @@ u_getIntPropertyValue(UChar32 c, UProperty which);
* @see u_getIntPropertyValue
* @stable ICU 2.2
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_getIntPropertyMinValue(UProperty which);
/**
@ -1444,7 +1445,7 @@ u_getIntPropertyMinValue(UProperty which);
* @see u_getIntPropertyValue
* @stable ICU 2.2
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_getIntPropertyMaxValue(UProperty which);
/**
@ -1467,7 +1468,7 @@ u_getIntPropertyMaxValue(UProperty which);
* @see U_NO_NUMERIC_VALUE
* @stable ICU 2.2
*/
U_CAPI double U_EXPORT2
U_STABLE double U_EXPORT2
u_getNumericValue(UChar32 c);
/**
@ -1503,7 +1504,7 @@ u_getNumericValue(UChar32 c);
* @see u_islower
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_islower(UChar32 c);
/**
@ -1530,7 +1531,7 @@ u_islower(UChar32 c);
* @see u_tolower
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isupper(UChar32 c);
/**
@ -1547,7 +1548,7 @@ u_isupper(UChar32 c);
* @see u_totitle
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_istitle(UChar32 c);
/**
@ -1568,7 +1569,7 @@ u_istitle(UChar32 c);
*
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isdigit(UChar32 c);
/**
@ -1589,7 +1590,7 @@ u_isdigit(UChar32 c);
* @see u_isalnum
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isalpha(UChar32 c);
/**
@ -1610,7 +1611,7 @@ u_isalpha(UChar32 c);
*
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isalnum(UChar32 c);
/**
@ -1633,7 +1634,7 @@ u_isalnum(UChar32 c);
*
* @draft ICU 2.6
*/
U_CAPI UBool U_EXPORT2
U_DRAFT UBool U_EXPORT2
u_isxdigit(UChar32 c);
/**
@ -1649,7 +1650,7 @@ u_isxdigit(UChar32 c);
*
* @draft ICU 2.6
*/
U_CAPI UBool U_EXPORT2
U_DRAFT UBool U_EXPORT2
u_ispunct(UChar32 c);
/**
@ -1668,7 +1669,7 @@ u_ispunct(UChar32 c);
*
* @draft ICU 2.6
*/
U_CAPI UBool U_EXPORT2
U_DRAFT UBool U_EXPORT2
u_isgraph(UChar32 c);
/**
@ -1697,7 +1698,7 @@ u_isgraph(UChar32 c);
*
* @draft ICU 2.6
*/
U_CAPI UBool U_EXPORT2
U_DRAFT UBool U_EXPORT2
u_isblank(UChar32 c);
/**
@ -1722,7 +1723,7 @@ u_isblank(UChar32 c);
* @see u_istitle
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isdefined(UChar32 c);
/**
@ -1743,7 +1744,7 @@ u_isdefined(UChar32 c);
* @see u_isUWhiteSpace
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isspace(UChar32 c);
/**
@ -1764,7 +1765,7 @@ u_isspace(UChar32 c);
* @see u_isUWhiteSpace
* @draft ICU 2.6
*/
U_CAPI UBool U_EXPORT2
U_DRAFT UBool U_EXPORT2
u_isJavaSpaceChar(UChar32 c);
/**
@ -1798,7 +1799,7 @@ u_isJavaSpaceChar(UChar32 c);
* @see u_isUWhiteSpace
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isWhitespace(UChar32 c);
/**
@ -1822,7 +1823,7 @@ u_isWhitespace(UChar32 c);
* @see u_isprint
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_iscntrl(UChar32 c);
/**
@ -1837,7 +1838,7 @@ u_iscntrl(UChar32 c);
* @see u_iscntrl
* @draft ICU 2.6
*/
U_CAPI UBool U_EXPORT2
U_DRAFT UBool U_EXPORT2
u_isISOControl(UChar32 c);
/**
@ -1855,7 +1856,7 @@ u_isISOControl(UChar32 c);
* @see u_iscntrl
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isprint(UChar32 c);
/**
@ -1876,7 +1877,7 @@ u_isprint(UChar32 c);
* @see u_isdigit
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isbase(UChar32 c);
/**
@ -1895,7 +1896,7 @@ u_isbase(UChar32 c);
* @see UCharDirection
* @stable ICU 2.0
*/
U_CAPI UCharDirection U_EXPORT2
U_STABLE UCharDirection U_EXPORT2
u_charDirection(UChar32 c);
/**
@ -1913,7 +1914,7 @@ u_charDirection(UChar32 c);
* @see UCHAR_BIDI_MIRRORED
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isMirrored(UChar32 c);
/**
@ -1935,7 +1936,7 @@ u_isMirrored(UChar32 c);
* @see u_isMirrored
* @stable ICU 2.0
*/
U_CAPI UChar32 U_EXPORT2
U_STABLE UChar32 U_EXPORT2
u_charMirror(UChar32 c);
/**
@ -1949,7 +1950,7 @@ u_charMirror(UChar32 c);
* @see UCharCategory
* @stable ICU 2.0
*/
U_CAPI int8_t U_EXPORT2
U_STABLE int8_t U_EXPORT2
u_charType(UChar32 c);
/**
@ -2006,7 +2007,7 @@ UCharEnumTypeRange(const void *context, UChar32 start, UChar32 limit, UCharCateg
* @see UCharCategory
* @see UCharEnumTypeRange
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
u_enumCharTypes(UCharEnumTypeRange *enumRange, const void *context);
#if !UCONFIG_NO_NORMALIZATION
@ -2018,7 +2019,7 @@ u_enumCharTypes(UCharEnumTypeRange *enumRange, const void *context);
* @return the combining class of the character
* @stable ICU 2.0
*/
U_CAPI uint8_t U_EXPORT2
U_STABLE uint8_t U_EXPORT2
u_getCombiningClass(UChar32 c);
#endif
@ -2046,7 +2047,7 @@ u_getCombiningClass(UChar32 c);
* @see u_getNumericValue
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_charDigitValue(UChar32 c);
/**
@ -2058,7 +2059,7 @@ u_charDigitValue(UChar32 c);
* @see UBlockCode
* @stable ICU 2.0
*/
U_CAPI UBlockCode U_EXPORT2
U_STABLE UBlockCode U_EXPORT2
ublock_getCode(UChar32 c);
/**
@ -2093,7 +2094,7 @@ ublock_getCode(UChar32 c);
* @see u_enumCharNames
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_charName(UChar32 code, UCharNameChoice nameChoice,
char *buffer, int32_t bufferLength,
UErrorCode *pErrorCode);
@ -2120,7 +2121,7 @@ u_charName(UChar32 code, UCharNameChoice nameChoice,
*
* @stable ICU 2.2
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_getISOComment(UChar32 c,
char *dest, int32_t destCapacity,
UErrorCode *pErrorCode);
@ -2145,7 +2146,7 @@ u_getISOComment(UChar32 c,
* @see u_enumCharNames
* @stable ICU 1.7
*/
U_CAPI UChar32 U_EXPORT2
U_STABLE UChar32 U_EXPORT2
u_charFromName(UCharNameChoice nameChoice,
const char *name,
UErrorCode *pErrorCode);
@ -2194,7 +2195,7 @@ typedef UBool UEnumCharNamesFn(void *context,
* @see u_charFromName
* @stable ICU 1.7
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
u_enumCharNames(UChar32 start, UChar32 limit,
UEnumCharNamesFn *fn,
void *context,
@ -2230,9 +2231,9 @@ u_enumCharNames(UChar32 start, UChar32 limit,
*
* @see UProperty
* @see UPropertyNameChoice
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI const char* U_EXPORT2
U_STABLE const char* U_EXPORT2
u_getPropertyName(UProperty property,
UPropertyNameChoice nameChoice);
@ -2253,9 +2254,9 @@ u_getPropertyName(UProperty property,
* does not match any property.
*
* @see UProperty
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI UProperty U_EXPORT2
U_STABLE UProperty U_EXPORT2
u_getPropertyEnum(const char* alias);
/**
@ -2303,9 +2304,9 @@ u_getPropertyEnum(const char* alias);
*
* @see UProperty
* @see UPropertyNameChoice
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI const char* U_EXPORT2
U_STABLE const char* U_EXPORT2
u_getPropertyValueName(UProperty property,
int32_t value,
UPropertyNameChoice nameChoice);
@ -2339,9 +2340,9 @@ u_getPropertyValueName(UProperty property,
* categories such as [:L:] to be represented.
*
* @see UProperty
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_getPropertyValueEnum(UProperty property,
const char* alias);
@ -2362,7 +2363,7 @@ u_getPropertyValueEnum(UProperty property,
* @see u_isIDPart
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isIDStart(UChar32 c);
/**
@ -2386,7 +2387,7 @@ u_isIDStart(UChar32 c);
* @see u_isIDIgnorable
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isIDPart(UChar32 c);
/**
@ -2411,7 +2412,7 @@ u_isIDPart(UChar32 c);
* @see u_isIDPart
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isIDIgnorable(UChar32 c);
/**
@ -2430,7 +2431,7 @@ u_isIDIgnorable(UChar32 c);
* @see u_isIDStart
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isJavaIDStart(UChar32 c);
/**
@ -2451,7 +2452,7 @@ u_isJavaIDStart(UChar32 c);
* @see u_isIDPart
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_isJavaIDPart(UChar32 c);
/**
@ -2472,7 +2473,7 @@ u_isJavaIDPart(UChar32 c);
* otherwise the code point itself.
* @stable ICU 2.0
*/
U_CAPI UChar32 U_EXPORT2
U_STABLE UChar32 U_EXPORT2
u_tolower(UChar32 c);
/**
@ -2493,7 +2494,7 @@ u_tolower(UChar32 c);
* otherwise the code point itself.
* @stable ICU 2.0
*/
U_CAPI UChar32 U_EXPORT2
U_STABLE UChar32 U_EXPORT2
u_toupper(UChar32 c);
/**
@ -2514,7 +2515,7 @@ u_toupper(UChar32 c);
* otherwise the code point itself.
* @stable ICU 2.0
*/
U_CAPI UChar32 U_EXPORT2
U_STABLE UChar32 U_EXPORT2
u_totitle(UChar32 c);
/** Option value for case folding: use default mappings defined in CaseFolding.txt. @stable ICU 2.0 */
@ -2556,7 +2557,7 @@ u_totitle(UChar32 c);
* otherwise the code point itself.
* @stable ICU 2.0
*/
U_CAPI UChar32 U_EXPORT2
U_STABLE UChar32 U_EXPORT2
u_foldCase(UChar32 c, uint32_t options);
/**
@ -2597,7 +2598,7 @@ u_foldCase(UChar32 c, uint32_t options);
* @see u_isdigit
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_digit(UChar32 ch, int8_t radix);
/**
@ -2628,7 +2629,7 @@ u_digit(UChar32 ch, int8_t radix);
* @see u_isdigit
* @stable ICU 2.0
*/
U_CAPI UChar32 U_EXPORT2
U_STABLE UChar32 U_EXPORT2
u_forDigit(int32_t digit, int8_t radix);
/**
@ -2645,7 +2646,7 @@ u_forDigit(int32_t digit, int8_t radix);
*
* @stable ICU 2.1
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
u_charAge(UChar32 c, UVersionInfo versionArray);
/**
@ -2659,7 +2660,7 @@ u_charAge(UChar32 c, UVersionInfo versionArray);
* the Unicode version number
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
u_getUnicodeVersion(UVersionInfo versionArray);
/**
@ -2683,7 +2684,7 @@ u_getUnicodeVersion(UVersionInfo versionArray);
*
* @stable ICU 2.2
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_getFC_NFKC_Closure(UChar32 c, UChar *dest, int32_t destCapacity, UErrorCode *pErrorCode);
U_CDECL_END

View file

@ -48,7 +48,7 @@
*
* @draft ICU 2.6
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
u_init(UErrorCode *status);
/**
@ -87,7 +87,7 @@ u_init(UErrorCode *status);
* @stable ICU 2.0
* @system
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
u_cleanup(void);
@ -152,7 +152,7 @@ typedef void U_CALLCONV UMtxFn (const void *context, UMTX *mutex);
* @draft ICU 2.8
* @system
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
u_setMutexFunctions(const void *context, UMtxInitFn *init, UMtxFn *destroy, UMtxFn *lock, UMtxFn *unlock,
UErrorCode *status);
@ -182,7 +182,7 @@ typedef int32_t U_CALLCONV UMtxAtomicFn(const void *context, int32_t *p);
* @draft ICU 2.8
* @system
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
u_setAtomicIncDecFunctions(const void *context, UMtxAtomicFn *inc, UMtxAtomicFn *dec,
UErrorCode *status);
@ -234,7 +234,7 @@ typedef void U_CALLCONV UMemFreeFn (const void *context, void *mem);
* @draft ICU 2.8
* @system
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
u_setMemoryFunctions(const void *context, UMemAllocFn *a, UMemReallocFn *r, UMemFreeFn *f,
UErrorCode *status);

View file

@ -234,7 +234,7 @@ U_CDECL_END
* See convrtrs.txt.
*
* @see ucnv_open
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define UCNV_VERSION_OPTION_STRING ",version="
@ -246,7 +246,7 @@ U_CDECL_END
* See convrtrs.txt.
*
* @see ucnv_open
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define UCNV_SWAP_LFNL_OPTION_STRING ",swaplfnl"
@ -263,7 +263,7 @@ U_CDECL_END
* lexically follows name2.
* @stable ICU 2.0
*/
U_CAPI int U_EXPORT2
U_STABLE int U_EXPORT2
ucnv_compareNames(const char *name1, const char *name2);
@ -302,7 +302,7 @@ ucnv_compareNames(const char *name1, const char *name2);
* @see ucnv_close
* @stable ICU 2.0
*/
U_CAPI UConverter* U_EXPORT2
U_STABLE UConverter* U_EXPORT2
ucnv_open(const char *converterName, UErrorCode *err);
@ -329,7 +329,7 @@ ucnv_open(const char *converterName, UErrorCode *err);
* @see ucnv_getDefaultName
* @stable ICU 2.0
*/
U_CAPI UConverter* U_EXPORT2
U_STABLE UConverter* U_EXPORT2
ucnv_openU(const UChar *name,
UErrorCode *err);
@ -397,7 +397,7 @@ ucnv_openU(const UChar *name,
* @see UConverterPlatform
* @stable ICU 2.0
*/
U_CAPI UConverter* U_EXPORT2
U_STABLE UConverter* U_EXPORT2
ucnv_openCCSID(int32_t codepage,
UConverterPlatform platform,
UErrorCode * err);
@ -432,7 +432,7 @@ ucnv_openCCSID(int32_t codepage,
* @see ucnv_close
* @stable ICU 2.2
*/
U_CAPI UConverter* U_EXPORT2
U_STABLE UConverter* U_EXPORT2
ucnv_openPackage(const char *packageName, const char *converterName, UErrorCode *err);
/**
@ -451,7 +451,7 @@ ucnv_openPackage(const char *packageName, const char *converterName, UErrorCode
* @return pointer to the new clone
* @stable ICU 2.0
*/
U_CAPI UConverter * U_EXPORT2
U_STABLE UConverter * U_EXPORT2
ucnv_safeClone(const UConverter *cnv,
void *stackBuffer,
int32_t *pBufferSize,
@ -476,7 +476,7 @@ ucnv_safeClone(const UConverter *cnv,
* @see ucnv_openCCSID
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_close(UConverter * converter);
/**
@ -493,7 +493,7 @@ ucnv_close(UConverter * converter);
* @see ucnv_setSubstChars
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_getSubstChars(const UConverter *converter,
char *subChars,
int8_t *len,
@ -511,7 +511,7 @@ ucnv_getSubstChars(const UConverter *converter,
* @see ucnv_getSubstChars
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_setSubstChars(UConverter *converter,
const char *subChars,
int8_t len,
@ -530,7 +530,7 @@ ucnv_setSubstChars(UConverter *converter,
* <TT>U_INDEX_OUTOFBOUNDS_ERROR</TT> will be returned.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_getInvalidChars(const UConverter *converter,
char *errBytes,
int8_t *len,
@ -549,7 +549,7 @@ ucnv_getInvalidChars(const UConverter *converter,
* <TT>U_INDEX_OUTOFBOUNDS_ERROR</TT> will be returned.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_getInvalidUChars(const UConverter *converter,
UChar *errUChars,
int8_t *len,
@ -562,7 +562,7 @@ ucnv_getInvalidUChars(const UConverter *converter,
* @param converter the Unicode converter
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_reset(UConverter *converter);
/**
@ -573,7 +573,7 @@ ucnv_reset(UConverter *converter);
* @param converter the Unicode converter
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_resetToUnicode(UConverter *converter);
/**
@ -584,7 +584,7 @@ ucnv_resetToUnicode(UConverter *converter);
* @param converter the Unicode converter
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_resetFromUnicode(UConverter *converter);
/**
@ -635,9 +635,11 @@ ucnv_resetFromUnicode(UConverter *converter);
* @see ucnv_getMinCharSize
* @stable ICU 2.0
*/
U_CAPI int8_t U_EXPORT2
U_STABLE int8_t U_EXPORT2
ucnv_getMaxCharSize(const UConverter *converter);
#ifndef U_HIDE_DRAFT_API
/**
* Calculates the size of a buffer for conversion from Unicode to a charset.
* The calculated size is guaranteed to be sufficient for this conversion.
@ -660,6 +662,8 @@ ucnv_getMaxCharSize(const UConverter *converter);
#define UCNV_GET_MAX_BYTES_FOR_STRING(length, maxCharSize) \
(((int32_t)(length)+10)*(int32_t)(maxCharSize))
#endif /*U_HIDE_DRAFT_API*/
/**
* Returns the minimum byte length for characters in this codepage.
* This is usually either 1 or 2.
@ -668,7 +672,7 @@ ucnv_getMaxCharSize(const UConverter *converter);
* @see ucnv_getMaxCharSize
* @stable ICU 2.0
*/
U_CAPI int8_t U_EXPORT2
U_STABLE int8_t U_EXPORT2
ucnv_getMinCharSize(const UConverter *converter);
/**
@ -685,7 +689,7 @@ ucnv_getMinCharSize(const UConverter *converter);
* @see ucnv_getName
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucnv_getDisplayName(const UConverter *converter,
const char *displayLocale,
UChar *displayName,
@ -702,7 +706,7 @@ ucnv_getDisplayName(const UConverter *converter,
* @see ucnv_getDisplayName
* @stable ICU 2.0
*/
U_CAPI const char * U_EXPORT2
U_STABLE const char * U_EXPORT2
ucnv_getName(const UConverter *converter, UErrorCode *err);
/**
@ -728,7 +732,7 @@ ucnv_getName(const UConverter *converter, UErrorCode *err);
* @see ucnv_getPlatform
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucnv_getCCSID(const UConverter *converter,
UErrorCode *err);
@ -742,7 +746,7 @@ ucnv_getCCSID(const UConverter *converter,
* @return The codepage platform
* @stable ICU 2.0
*/
U_CAPI UConverterPlatform U_EXPORT2
U_STABLE UConverterPlatform U_EXPORT2
ucnv_getPlatform(const UConverter *converter,
UErrorCode *err);
@ -754,7 +758,7 @@ ucnv_getPlatform(const UConverter *converter,
* @return the type of the converter
* @stable ICU 2.0
*/
U_CAPI UConverterType U_EXPORT2
U_STABLE UConverterType U_EXPORT2
ucnv_getType(const UConverter * converter);
/**
@ -772,11 +776,13 @@ ucnv_getType(const UConverter * converter);
* @see ucnv_getType
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_getStarters(const UConverter* converter,
UBool starters[256],
UErrorCode* err);
#ifndef U_HIDE_DRAFT_API
/**
* Selectors for Unicode sets that can be returned by ucnv_getUnicodeSet().
* @see ucnv_getUnicodeSet
@ -789,6 +795,8 @@ typedef enum UConverterUnicodeSet {
UCNV_SET_COUNT
} UConverterUnicodeSet;
#endif /*U_HIDE_DRAFT_API*/
/**
* Returns the set of Unicode code points that can be converted by an ICU converter.
*
@ -823,7 +831,7 @@ typedef enum UConverterUnicodeSet {
* @see uset_close
* @draft ICU 2.6
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
ucnv_getUnicodeSet(const UConverter *cnv,
USet *set,
UConverterUnicodeSet which,
@ -840,7 +848,7 @@ ucnv_getUnicodeSet(const UConverter *cnv,
* @see ucnv_setToUCallBack
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_getToUCallBack (const UConverter * converter,
UConverterToUCallback *action,
const void **context);
@ -856,7 +864,7 @@ ucnv_getToUCallBack (const UConverter * converter,
* @see ucnv_setFromUCallBack
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_getFromUCallBack (const UConverter * converter,
UConverterFromUCallback *action,
const void **context);
@ -876,7 +884,7 @@ ucnv_getFromUCallBack (const UConverter * converter,
* @see ucnv_getToUCallBack
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_setToUCallBack (UConverter * converter,
UConverterToUCallback newAction,
const void* newContext,
@ -899,7 +907,7 @@ ucnv_setToUCallBack (UConverter * converter,
* @see ucnv_getFromUCallBack
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_setFromUCallBack (UConverter * converter,
UConverterFromUCallback newAction,
const void *newContext,
@ -965,7 +973,7 @@ ucnv_setFromUCallBack (UConverter * converter,
* @see ucnv_setToUCallBack
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_fromUnicode (UConverter * converter,
char **target,
const char *targetLimit,
@ -1034,7 +1042,7 @@ ucnv_fromUnicode (UConverter * converter,
* @see ucnv_getNextUChar
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_toUnicode(UConverter *converter,
UChar **target,
const UChar *targetLimit,
@ -1071,7 +1079,7 @@ ucnv_toUnicode(UConverter *converter,
* @see UCNV_GET_MAX_BYTES_FOR_STRING
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucnv_fromUChars(UConverter *cnv,
char *dest, int32_t destCapacity,
const UChar *src, int32_t srcLength,
@ -1103,7 +1111,7 @@ ucnv_fromUChars(UConverter *cnv,
* @see ucnv_convert
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucnv_toUChars(UConverter *cnv,
UChar *dest, int32_t destCapacity,
const char *src, int32_t srcLength,
@ -1179,7 +1187,7 @@ ucnv_toUChars(UConverter *cnv,
* @see ucnv_convert
* @stable ICU 2.0
*/
U_CAPI UChar32 U_EXPORT2
U_STABLE UChar32 U_EXPORT2
ucnv_getNextUChar(UConverter * converter,
const char **source,
const char * sourceLimit,
@ -1313,7 +1321,7 @@ ucnv_getNextUChar(UConverter * converter,
* @see ucnv_toUChars
* @draft ICU 2.6
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
ucnv_convertEx(UConverter *targetCnv, UConverter *sourceCnv,
char **target, const char *targetLimit,
const char **source, const char *sourceLimit,
@ -1377,7 +1385,7 @@ ucnv_convertEx(UConverter *targetCnv, UConverter *sourceCnv,
* @see ucnv_getNextUChar
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucnv_convert(const char *toConverterName,
const char *fromConverterName,
char *target,
@ -1431,7 +1439,7 @@ ucnv_convert(const char *toConverterName,
* @see ucnv_toUChars
* @draft ICU 2.6
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
ucnv_toAlgorithmic(UConverterType algorithmicType,
UConverter *cnv,
char *target, int32_t targetCapacity,
@ -1483,7 +1491,7 @@ ucnv_toAlgorithmic(UConverterType algorithmicType,
* @see ucnv_toUChars
* @draft ICU 2.6
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
ucnv_fromAlgorithmic(UConverter *cnv,
UConverterType algorithmicType,
char *target, int32_t targetCapacity,
@ -1497,7 +1505,7 @@ ucnv_fromAlgorithmic(UConverter *cnv,
* @see ucnv_close
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucnv_flushCache(void);
/**
@ -1507,7 +1515,7 @@ ucnv_flushCache(void);
* @see ucnv_getAvailableName
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucnv_countAvailable(void);
/**
@ -1520,7 +1528,7 @@ ucnv_countAvailable(void);
* @see ucnv_countAvailable
* @stable ICU 2.0
*/
U_CAPI const char* U_EXPORT2
U_STABLE const char* U_EXPORT2
ucnv_getAvailableName(int32_t n);
/**
@ -1533,9 +1541,9 @@ ucnv_getAvailableName(int32_t n);
* @see ucnv_getAvailableName
* @see uenum_close
* @see uenum_next
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI UEnumeration * U_EXPORT2
U_STABLE UEnumeration * U_EXPORT2
ucnv_openAllNames(UErrorCode *pErrorCode);
/**
@ -1548,7 +1556,7 @@ ucnv_openAllNames(UErrorCode *pErrorCode);
* @return number of names on alias list for given alias
* @stable ICU 2.0
*/
U_CAPI uint16_t U_EXPORT2
U_STABLE uint16_t U_EXPORT2
ucnv_countAliases(const char *alias, UErrorCode *pErrorCode);
/**
@ -1563,7 +1571,7 @@ ucnv_countAliases(const char *alias, UErrorCode *pErrorCode);
* @see ucnv_countAliases
* @stable ICU 2.0
*/
U_CAPI const char * U_EXPORT2
U_STABLE const char * U_EXPORT2
ucnv_getAlias(const char *alias, uint16_t n, UErrorCode *pErrorCode);
/**
@ -1579,7 +1587,7 @@ ucnv_getAlias(const char *alias, uint16_t n, UErrorCode *pErrorCode);
* @param pErrorCode result of operation
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_getAliases(const char *alias, const char **aliases, UErrorCode *pErrorCode);
/**
@ -1605,7 +1613,7 @@ ucnv_getAliases(const char *alias, const char **aliases, UErrorCode *pErrorCode)
* @see uenum_next
* @stable ICU 2.2
*/
U_CAPI UEnumeration * U_EXPORT2
U_STABLE UEnumeration * U_EXPORT2
ucnv_openStandardNames(const char *convName,
const char *standard,
UErrorCode *pErrorCode);
@ -1615,7 +1623,7 @@ ucnv_openStandardNames(const char *convName,
* @return number of standards
* @stable ICU 2.0
*/
U_CAPI uint16_t U_EXPORT2
U_STABLE uint16_t U_EXPORT2
ucnv_countStandards(void);
/**
@ -1625,7 +1633,7 @@ ucnv_countStandards(void);
* @return returns the name of the standard at given index. Owned by the library.
* @stable ICU 2.0
*/
U_CAPI const char * U_EXPORT2
U_STABLE const char * U_EXPORT2
ucnv_getStandard(uint16_t n, UErrorCode *pErrorCode);
/**
@ -1647,7 +1655,7 @@ ucnv_getStandard(uint16_t n, UErrorCode *pErrorCode);
* then <code>NULL</code> is returned. Owned by the library.
* @stable ICU 2.0
*/
U_CAPI const char * U_EXPORT2
U_STABLE const char * U_EXPORT2
ucnv_getStandardName(const char *name, const char *standard, UErrorCode *pErrorCode);
/**
@ -1667,9 +1675,9 @@ ucnv_getStandardName(const char *name, const char *standard, UErrorCode *pErrorC
* then <code>NULL</code> is returned. The returned string is
* owned by the library.
* @see ucnv_getStandardName
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI const char * U_EXPORT2
U_STABLE const char * U_EXPORT2
ucnv_getCanonicalName(const char *alias, const char *standard, UErrorCode *pErrorCode);
/**
@ -1682,7 +1690,7 @@ ucnv_getCanonicalName(const char *alias, const char *standard, UErrorCode *pErro
* @see ucnv_setDefaultName
* @stable ICU 2.0
*/
U_CAPI const char * U_EXPORT2
U_STABLE const char * U_EXPORT2
ucnv_getDefaultName(void);
/**
@ -1693,7 +1701,7 @@ ucnv_getDefaultName(void);
* @system SYSTEM API
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_setDefaultName(const char *name);
/**
@ -1713,7 +1721,7 @@ ucnv_setDefaultName(const char *name);
* @see ucnv_isAmbiguous
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_fixFileSeparator(const UConverter *cnv, UChar *source, int32_t sourceLen);
/**
@ -1724,7 +1732,7 @@ ucnv_fixFileSeparator(const UConverter *cnv, UChar *source, int32_t sourceLen);
* character, FALSE otherwise.
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
ucnv_isAmbiguous(const UConverter *cnv);
/**
@ -1734,7 +1742,7 @@ ucnv_isAmbiguous(const UConverter *cnv);
* mapping, FALSE otherwise.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_setFallback(UConverter *cnv, UBool usesFallback);
/**
@ -1743,7 +1751,7 @@ ucnv_setFallback(UConverter *cnv, UBool usesFallback);
* @return TRUE if the converter uses fallback, FALSE otherwise.
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
ucnv_usesFallback(const UConverter *cnv);
/**
@ -1803,7 +1811,7 @@ ucnv_usesFallback(const UConverter *cnv);
* @return The name of the encoding detected. NULL if encoding is not detected.
* @stable ICU 2.4
*/
U_CAPI const char* U_EXPORT2
U_STABLE const char* U_EXPORT2
ucnv_detectUnicodeSignature(const char* source,
int32_t sourceLength,
int32_t *signatureLength,

View file

@ -79,7 +79,7 @@
* @see ucnv_cbFromUWriteSub
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_cbFromUWriteBytes (UConverterFromUnicodeArgs *args,
const char* source,
int32_t length,
@ -99,7 +99,7 @@ ucnv_cbFromUWriteBytes (UConverterFromUnicodeArgs *args,
* @see ucnv_cbFromUWriteBytes
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucnv_cbFromUWriteSub (UConverterFromUnicodeArgs *args,
int32_t offsetIndex,
UErrorCode * err);
@ -116,7 +116,7 @@ ucnv_cbFromUWriteSub (UConverterFromUnicodeArgs *args,
* @see ucnv_cbToUWriteSub
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2 ucnv_cbFromUWriteUChars(UConverterFromUnicodeArgs *args,
U_STABLE void U_EXPORT2 ucnv_cbFromUWriteUChars(UConverterFromUnicodeArgs *args,
const UChar** source,
const UChar* sourceLimit,
int32_t offsetIndex,
@ -135,7 +135,7 @@ U_CAPI void U_EXPORT2 ucnv_cbFromUWriteUChars(UConverterFromUnicodeArgs *args,
* @see ucnv_cbToUWriteSub
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2 ucnv_cbToUWriteUChars (UConverterToUnicodeArgs *args,
U_STABLE void U_EXPORT2 ucnv_cbToUWriteUChars (UConverterToUnicodeArgs *args,
const UChar* source,
int32_t length,
int32_t offsetIndex,
@ -151,7 +151,7 @@ U_CAPI void U_EXPORT2 ucnv_cbToUWriteUChars (UConverterToUnicodeArgs *args,
* @see ucnv_cbToUWriteUChars
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2 ucnv_cbToUWriteSub (UConverterToUnicodeArgs *args,
U_STABLE void U_EXPORT2 ucnv_cbToUWriteSub (UConverterToUnicodeArgs *args,
int32_t offsetIndex,
UErrorCode * err);
#endif

View file

@ -223,7 +223,7 @@ typedef struct {
* @param err This should always be set to a failure status prior to calling.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2 UCNV_FROM_U_CALLBACK_STOP (
U_STABLE void U_EXPORT2 UCNV_FROM_U_CALLBACK_STOP (
const void *context,
UConverterFromUnicodeArgs *fromUArgs,
const UChar* codeUnits,
@ -247,7 +247,7 @@ U_CAPI void U_EXPORT2 UCNV_FROM_U_CALLBACK_STOP (
* @param err This should always be set to a failure status prior to calling.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2 UCNV_TO_U_CALLBACK_STOP (
U_STABLE void U_EXPORT2 UCNV_TO_U_CALLBACK_STOP (
const void *context,
UConverterToUnicodeArgs *toUArgs,
const char* codeUnits,
@ -274,7 +274,7 @@ U_CAPI void U_EXPORT2 UCNV_TO_U_CALLBACK_STOP (
* otherwise this value will be set to a failure status.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2 UCNV_FROM_U_CALLBACK_SKIP (
U_STABLE void U_EXPORT2 UCNV_FROM_U_CALLBACK_SKIP (
const void *context,
UConverterFromUnicodeArgs *fromUArgs,
const UChar* codeUnits,
@ -304,7 +304,7 @@ U_CAPI void U_EXPORT2 UCNV_FROM_U_CALLBACK_SKIP (
* @see ucnv_setSubstChars
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2 UCNV_FROM_U_CALLBACK_SUBSTITUTE (
U_STABLE void U_EXPORT2 UCNV_FROM_U_CALLBACK_SUBSTITUTE (
const void *context,
UConverterFromUnicodeArgs *fromUArgs,
const UChar* codeUnits,
@ -360,7 +360,7 @@ U_CAPI void U_EXPORT2 UCNV_FROM_U_CALLBACK_SUBSTITUTE (
* otherwise this value will be set to a failure status.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2 UCNV_FROM_U_CALLBACK_ESCAPE (
U_STABLE void U_EXPORT2 UCNV_FROM_U_CALLBACK_ESCAPE (
const void *context,
UConverterFromUnicodeArgs *fromUArgs,
const UChar* codeUnits,
@ -388,7 +388,7 @@ U_CAPI void U_EXPORT2 UCNV_FROM_U_CALLBACK_ESCAPE (
* otherwise this value will be set to a failure status.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2 UCNV_TO_U_CALLBACK_SKIP (
U_STABLE void U_EXPORT2 UCNV_TO_U_CALLBACK_SKIP (
const void *context,
UConverterToUnicodeArgs *toUArgs,
const char* codeUnits,
@ -414,7 +414,7 @@ U_CAPI void U_EXPORT2 UCNV_TO_U_CALLBACK_SKIP (
* otherwise this value will be set to a failure status.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2 UCNV_TO_U_CALLBACK_SUBSTITUTE (
U_STABLE void U_EXPORT2 UCNV_TO_U_CALLBACK_SUBSTITUTE (
const void *context,
UConverterToUnicodeArgs *toUArgs,
const char* codeUnits,
@ -440,7 +440,7 @@ U_CAPI void U_EXPORT2 UCNV_TO_U_CALLBACK_SUBSTITUTE (
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2 UCNV_TO_U_CALLBACK_ESCAPE (
U_STABLE void U_EXPORT2 UCNV_TO_U_CALLBACK_ESCAPE (
const void *context,
UConverterToUnicodeArgs *toUArgs,
const char* codeUnits,

View file

@ -24,7 +24,7 @@
* The switches are fairly coarse, controlling large modules.
* Basic services cannot be turned off.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
/**
@ -36,7 +36,7 @@
* If you want "only collation" and do not build for EBCDIC,
* then you can #define UCONFIG_NO_LEGACY_CONVERSION 1 as well.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
#ifndef UCONFIG_ONLY_COLLATION
# define UCONFIG_ONLY_COLLATION 0
@ -68,7 +68,7 @@
* Turning off legacy conversion is not possible on EBCDIC platforms
* because they need ibm-37 or ibm-1047 default converters.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
#ifndef UCONFIG_NO_LEGACY_CONVERSION
# define UCONFIG_NO_LEGACY_CONVERSION 0
@ -100,7 +100,7 @@
* \def UCONFIG_NO_BREAK_ITERATION
* This switch turns off break iteration.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
#ifndef UCONFIG_NO_BREAK_ITERATION
# define UCONFIG_NO_BREAK_ITERATION 0
@ -122,7 +122,7 @@
* \def
* This switch turns off collation and collation-based string search.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
#ifndef UCONFIG_NO_COLLATION
# define UCONFIG_NO_COLLATION 0
@ -132,7 +132,7 @@
* \def UCONFIG_NO_FORMATTING
* This switch turns off formatting and calendar/timezone services.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
#ifndef UCONFIG_NO_FORMATTING
# define UCONFIG_NO_FORMATTING 0
@ -142,7 +142,7 @@
* \def UCONFIG_NO_TRANSLITERATION
* This switch turns off transliteration.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
#ifndef UCONFIG_NO_TRANSLITERATION
# define UCONFIG_NO_TRANSLITERATION 0
@ -152,7 +152,7 @@
* \def UCONFIG_NO_REGULAR_EXPRESSIONS
* This switch turns off regular expressions.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
#ifndef UCONFIG_NO_REGULAR_EXPRESSIONS
# define UCONFIG_NO_REGULAR_EXPRESSIONS 0

View file

@ -156,7 +156,7 @@ UDataMemoryIsAcceptable(void *context,
* @see udata_openChoice
* @stable ICU 2.0
*/
U_CAPI UDataMemory * U_EXPORT2
U_STABLE UDataMemory * U_EXPORT2
udata_open(const char *path, const char *type, const char *name,
UErrorCode *pErrorCode);
@ -208,7 +208,7 @@ udata_open(const char *path, const char *type, const char *name,
* to get a pointer to the actual data.
* @stable ICU 2.0
*/
U_CAPI UDataMemory * U_EXPORT2
U_STABLE UDataMemory * U_EXPORT2
udata_openChoice(const char *path, const char *type, const char *name,
UDataMemoryIsAcceptable *isAcceptable, void *context,
UErrorCode *pErrorCode);
@ -220,7 +220,7 @@ udata_openChoice(const char *path, const char *type, const char *name,
* @param pData The pointer to data memory object
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
udata_close(UDataMemory *pData);
/**
@ -229,7 +229,7 @@ udata_close(UDataMemory *pData);
* @param pData The pointer to data memory object
* @stable ICU 2.0
*/
U_CAPI const void * U_EXPORT2
U_STABLE const void * U_EXPORT2
udata_getMemory(UDataMemory *pData);
/**
@ -250,7 +250,7 @@ udata_getMemory(UDataMemory *pData);
* adjusted and only part of the structure will be filled.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
udata_getInfo(UDataMemory *pData, UDataInfo *pInfo);
/**
@ -287,7 +287,7 @@ udata_getInfo(UDataMemory *pData, UDataInfo *pInfo);
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
udata_setCommonData(const void *data, UErrorCode *err);
@ -315,7 +315,7 @@ udata_setCommonData(const void *data, UErrorCode *err);
* @see udata_setCommonData
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
udata_setAppData(const char *packageName, const void *data, UErrorCode *err);
U_CDECL_END

View file

@ -0,0 +1,37 @@
/*
*******************************************************************************
* Copyright (C) 2004, International Business Machines
* Corporation and others. All Rights Reserved.
*******************************************************************************
*
* file name: udeprctd.h
* encoding: US-ASCII
* tab size: 8 (not used)
* indentation:4
*
* Created by: Created by: gendraft.pl, a perl script written by Ram Viswanadha
*
* Contains data for commenting out APIs marked draft.
* Gets included by umachine.h
*
* THIS FILE IS MACHINE-GENERATED, DON'T PLAY WITH IT IF YOU DON'T KNOW WHAT
* YOU ARE DOING, OTHERWISE VERY BAD THINGS WILL HAPPEN!
*/
#ifndef UDEPRECATED_H
#define UDEPRECATED_H
#ifdef U_HIDE_DEPRECATED_API
#define ures_countArrayItems_2_8 ures_countArrayItems_DEPRECATED_API_DO_NOT_USE
#define ures_getVersionNumber_2_8 ures_getVersionNumber_DEPRECATED_API_DO_NOT_USE
#define ures_getLocale_2_8 ures_getLocale_DEPRECATED_API_DO_NOT_USE
#define ucol_getLocale_2_8 ucol_getLocale_DEPRECATED_API_DO_NOT_USE
#define utrans_open_2_8 utrans_open_DEPRECATED_API_DO_NOT_USE
#define utrans_getID_2_8 utrans_getID_DEPRECATED_API_DO_NOT_USE
#define utrans_unregister_2_8 utrans_unregister_DEPRECATED_API_DO_NOT_USE
#define utrans_getAvailableID_2_8 utrans_getAvailableID_DEPRECATED_API_DO_NOT_USE
#endif /* U_HIDE_DEPRECATED_API */
#endif /* UDEPRECATED_H */

View file

@ -35,7 +35,7 @@ typedef struct UEnumeration UEnumeration;
* @param en UEnumeration structure pointer
* @stable ICU 2.2
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
uenum_close(UEnumeration* en);
/**
@ -52,7 +52,7 @@ uenum_close(UEnumeration* en);
* @return number of elements in the iterator
* @stable ICU 2.2
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
uenum_count(UEnumeration* en, UErrorCode* status);
/**
@ -76,7 +76,7 @@ uenum_count(UEnumeration* en, UErrorCode* status);
* traversed, returns NULL.
* @stable ICU 2.2
*/
U_CAPI const UChar* U_EXPORT2
U_STABLE const UChar* U_EXPORT2
uenum_unext(UEnumeration* en,
int32_t* resultLength,
UErrorCode* status);
@ -109,7 +109,7 @@ uenum_unext(UEnumeration* en,
* traversed, returns NULL.
* @stable ICU 2.2
*/
U_CAPI const char* U_EXPORT2
U_STABLE const char* U_EXPORT2
uenum_next(UEnumeration* en,
int32_t* resultLength,
UErrorCode* status);
@ -123,7 +123,7 @@ uenum_next(UEnumeration* en,
* the iterator is out of sync with its service.
* @stable ICU 2.2
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
uenum_reset(UEnumeration* en, UErrorCode* status);
#endif

View file

@ -47,6 +47,8 @@
*
*/
#ifndef U_HIDE_DRAFT_API
/**
* Option to prohibit processing of unassigned codepoints in the input and
* do not check if the input conforms to STD-3 ASCII rules.
@ -69,6 +71,8 @@
* @draft ICU 2.6
*/
#define UIDNA_USE_STD3_RULES 0x0002
#endif /*U_HIDE_DRAFT_API*/
/**
* This function implements the ToASCII operation as defined in the IDNA RFC.
@ -108,7 +112,7 @@
* @return Number of ASCII characters converted.
* @draft ICU 2.6
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uidna_toASCII(const UChar* src, int32_t srcLength,
UChar* dest, int32_t destCapacity,
int32_t options,
@ -158,7 +162,7 @@ uidna_toASCII(const UChar* src, int32_t srcLength,
* @return Number of Unicode characters converted.
* @draft ICU 2.6
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uidna_toUnicode(const UChar* src, int32_t srcLength,
UChar* dest, int32_t destCapacity,
int32_t options,
@ -208,7 +212,7 @@ uidna_toUnicode(const UChar* src, int32_t srcLength,
* @return Number of ASCII characters converted.
* @draft ICU 2.6
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uidna_IDNToASCII( const UChar* src, int32_t srcLength,
UChar* dest, int32_t destCapacity,
int32_t options,
@ -254,7 +258,7 @@ uidna_IDNToASCII( const UChar* src, int32_t srcLength,
* @return Number of ASCII characters converted.
* @draft ICU 2.6
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uidna_IDNToUnicode( const UChar* src, int32_t srcLength,
UChar* dest, int32_t destCapacity,
int32_t options,
@ -295,7 +299,7 @@ uidna_IDNToUnicode( const UChar* src, int32_t srcLength,
* @return <0 or 0 or >0 as usual for string comparisons
* @draft ICU 2.6
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uidna_compare( const UChar *s1, int32_t length1,
const UChar *s2, int32_t length2,
int32_t options,

View file

@ -50,6 +50,8 @@ typedef enum UCharIteratorOrigin {
UITER_START, UITER_CURRENT, UITER_LIMIT, UITER_ZERO, UITER_LENGTH
} UCharIteratorOrigin;
#ifndef U_HIDE_DRAFT_API
/** Constants for UCharIterator. @draft ICU 2.6 */
enum {
/**
@ -69,6 +71,7 @@ enum {
UITER_UNKNOWN_INDEX=-2
};
/**
* Constant for UCharIterator getState() indicating an error or
* an unknown state.
@ -82,6 +85,8 @@ enum {
*/
#define UITER_NO_STATE ((uint32_t)0xffffffff)
#endif /*U_HIDE_DRAFT_API*/
/**
* Function type declaration for UCharIterator.getIndex().
*
@ -489,7 +494,7 @@ struct UCharIterator {
* @see UnicodeString::char32At()
* @stable ICU 2.1
*/
U_CAPI UChar32 U_EXPORT2
U_STABLE UChar32 U_EXPORT2
uiter_current32(UCharIterator *iter);
/**
@ -506,7 +511,7 @@ uiter_current32(UCharIterator *iter);
* @see U16_NEXT
* @stable ICU 2.1
*/
U_CAPI UChar32 U_EXPORT2
U_STABLE UChar32 U_EXPORT2
uiter_next32(UCharIterator *iter);
/**
@ -523,7 +528,7 @@ uiter_next32(UCharIterator *iter);
* @see U16_PREV
* @stable ICU 2.1
*/
U_CAPI UChar32 U_EXPORT2
U_STABLE UChar32 U_EXPORT2
uiter_previous32(UCharIterator *iter);
/**
@ -544,7 +549,7 @@ uiter_previous32(UCharIterator *iter);
* @see UITER_NO_STATE
* @draft ICU 2.6
*/
U_CAPI uint32_t U_EXPORT2
U_DRAFT uint32_t U_EXPORT2
uiter_getState(const UCharIterator *iter);
/**
@ -562,7 +567,7 @@ uiter_getState(const UCharIterator *iter);
* @see UCharIteratorSetState
* @draft ICU 2.6
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
uiter_setState(UCharIterator *iter, uint32_t state, UErrorCode *pErrorCode);
/**
@ -587,7 +592,7 @@ uiter_setState(UCharIterator *iter, uint32_t state, UErrorCode *pErrorCode);
* @see UCharIterator
* @stable ICU 2.1
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
uiter_setString(UCharIterator *iter, const UChar *s, int32_t length);
/**
@ -610,7 +615,7 @@ uiter_setString(UCharIterator *iter, const UChar *s, int32_t length);
* @see uiter_setString
* @draft ICU 2.6
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
uiter_setUTF16BE(UCharIterator *iter, const char *s, int32_t length);
/**
@ -646,7 +651,7 @@ uiter_setUTF16BE(UCharIterator *iter, const char *s, int32_t length);
* @see UCharIterator
* @draft ICU 2.6
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
uiter_setUTF8(UCharIterator *iter, const char *s, int32_t length);
#ifdef XP_CPLUSPLUS
@ -671,7 +676,7 @@ uiter_setUTF8(UCharIterator *iter, const char *s, int32_t length);
* @see UCharIterator
* @stable ICU 2.1
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
uiter_setCharacterIterator(UCharIterator *iter, CharacterIterator *charIter);
/**
@ -696,7 +701,7 @@ uiter_setCharacterIterator(UCharIterator *iter, CharacterIterator *charIter);
* @see UCharIterator
* @stable ICU 2.1
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
uiter_setReplaceable(UCharIterator *iter, const Replaceable *rep);
#endif

View file

@ -247,12 +247,7 @@
* @stable ICU 2.0
*/
#define ULOC_LANG_CAPACITY 12
/**
* Useful constant for the maximum size of the script part of a locale ID
* (including the terminating NULL).
* @draft ICU 2.8
*/
#define ULOC_SCRIPT_CAPACITY 6
/**
* Useful constant for the maximum size of the country part of a locale ID
* (including the terminating NULL).
@ -265,17 +260,48 @@
* @stable ICU 2.0
*/
#define ULOC_FULLNAME_CAPACITY 56
#ifndef U_HIDE_DRAFT_API
/**
* Useful constant for the maximum size of the script part of a locale ID
* (including the terminating NULL).
* @draft ICU 2.8
*/
#define ULOC_SCRIPT_CAPACITY 6
/**
* Useful constant for the maximum size of keywords in a locale
* @draft ICU 2.8
*/
#define ULOC_KEYWORDS_CAPACITY 50
/**
* Useful constant for the maximum size of keywords in a locale
* @draft ICU 2.8
*/
#define ULOC_KEYWORD_AND_VALUES_CAPACITY 100
/**
* Character separating keywords from the locale string
* different for EBCDIC - TODO
* @draft ICU 2.8
*/
#define ULOC_KEYWORD_SEPARATOR '@'
/**
* Character for assigning value to a keyword
* @draft ICU 2.8
*/
#define ULOC_KEYWORD_ASSIGN '='
/**
* Character separating keywords
* @draft ICU 2.8
*/
#define ULOC_KEYWORD_ITEM_SEPARATOR ';'
#endif /*U_HIDE_DRAFT_API*/
/**
* Constants for *_getLocale()
* Allow user to select whether she wants information on
@ -299,10 +325,14 @@ typedef enum {
* @stable ICU 2.1
*/
ULOC_VALID_LOCALE = 1,
#ifndef U_HIDE_DEPRECATED_API
/** This is the requested locale
* @deprecated ICU 2.8
*/
ULOC_REQUESTED_LOCALE = 2,
#endif /* U_HIDE_DEPRECATED_API */
ULOC_DATA_LOCALE_TYPE_LIMIT
} ULocDataLocaleType ;
@ -318,7 +348,7 @@ typedef enum {
* @system
* @stable ICU 2.0
*/
U_CAPI const char* U_EXPORT2
U_STABLE const char* U_EXPORT2
uloc_getDefault(void);
/**
@ -338,7 +368,7 @@ uloc_getDefault(void);
* @system
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
uloc_setDefault(const char* localeID,
UErrorCode* status);
@ -354,7 +384,7 @@ uloc_setDefault(const char* localeID,
* than languageCapacity, the returned language code will be truncated.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
uloc_getLanguage(const char* localeID,
char* language,
int32_t languageCapacity,
@ -372,7 +402,7 @@ uloc_getLanguage(const char* localeID,
* than scriptCapacity, the returned language code will be truncated.
* @draft ICU 2.8
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uloc_getScript(const char* localeID,
char* script,
int32_t scriptCapacity,
@ -390,7 +420,7 @@ uloc_getScript(const char* localeID,
* than countryCapacity, the returned country code will be truncated.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uloc_getCountry(const char* localeID,
char* country,
int32_t countryCapacity,
@ -408,7 +438,7 @@ uloc_getCountry(const char* localeID,
* than variantCapacity, the returned variant code will be truncated.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
uloc_getVariant(const char* localeID,
char* variant,
int32_t variantCapacity,
@ -431,7 +461,7 @@ uloc_getVariant(const char* localeID,
* than nameCapacity, the returned full name will be truncated.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
uloc_getName(const char* localeID,
char* name,
int32_t nameCapacity,
@ -454,7 +484,7 @@ uloc_getName(const char* localeID,
* than nameCapacity, the returned full name will be truncated.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
uloc_canonicalize(const char* localeID,
char* name,
int32_t nameCapacity,
@ -467,7 +497,7 @@ uloc_canonicalize(const char* localeID,
* @return language the ISO language code for localeID
* @stable ICU 2.0
*/
U_CAPI const char* U_EXPORT2
U_STABLE const char* U_EXPORT2
uloc_getISO3Language(const char* localeID);
@ -478,7 +508,7 @@ uloc_getISO3Language(const char* localeID);
* @return country the ISO country code for localeID
* @stable ICU 2.0
*/
U_CAPI const char* U_EXPORT2
U_STABLE const char* U_EXPORT2
uloc_getISO3Country(const char* localeID);
/**
@ -489,7 +519,7 @@ uloc_getISO3Country(const char* localeID);
* @return country the Win32 LCID for localeID
* @stable ICU 2.0
*/
U_CAPI uint32_t U_EXPORT2
U_STABLE uint32_t U_EXPORT2
uloc_getLCID(const char* localeID);
/**
@ -508,7 +538,7 @@ uloc_getLCID(const char* localeID);
* than languageCapacity, the returned language code will be truncated.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
uloc_getDisplayLanguage(const char* locale,
const char* displayLocale,
UChar* language,
@ -531,7 +561,7 @@ uloc_getDisplayLanguage(const char* locale,
* than scriptCapacity, the returned displayable script code will be truncated.
* @draft ICU 2.8
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uloc_getDisplayScript(const char* locale,
const char* displayLocale,
UChar* script,
@ -554,7 +584,7 @@ uloc_getDisplayScript(const char* locale,
* than countryCapacity, the returned displayable country code will be truncated.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
uloc_getDisplayCountry(const char* locale,
const char* displayLocale,
UChar* country,
@ -578,7 +608,7 @@ uloc_getDisplayCountry(const char* locale,
* than variantCapacity, the returned displayable variant code will be truncated.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
uloc_getDisplayVariant(const char* locale,
const char* displayLocale,
UChar* variant,
@ -625,7 +655,7 @@ uloc_getDisplayVariant(const char* locale,
* @see #uloc_getKeywords
* @draft ICU 2.8
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uloc_getDisplayKeyword(const char* keyword,
const char* displayLocale,
UChar* dest,
@ -651,7 +681,7 @@ uloc_getDisplayKeyword(const char* keyword,
* @return the actual buffer size needed for the displayable variant code.
* @draft ICU 2.8
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uloc_getDisplayKeywordValue( const char* locale,
const char* keyword,
const char* displayLocale,
@ -674,7 +704,7 @@ uloc_getDisplayKeywordValue( const char* locale,
* than variantCapacity, the returned displayable name will be truncated.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
uloc_getDisplayName(const char* localeID,
const char* inLocaleID,
UChar* result,
@ -692,7 +722,7 @@ uloc_getDisplayName(const char* localeID,
* @return a specified locale name of all available locales
* @stable ICU 2.0
*/
U_CAPI const char* U_EXPORT2
U_STABLE const char* U_EXPORT2
uloc_getAvailable(int32_t n);
/**
@ -701,7 +731,7 @@ uloc_getAvailable(int32_t n);
* @return the size of the locale list
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2 uloc_countAvailable(void);
U_STABLE int32_t U_EXPORT2 uloc_countAvailable(void);
/**
*
@ -712,7 +742,7 @@ U_CAPI int32_t U_EXPORT2 uloc_countAvailable(void);
* @return a list of all available language codes
* @stable ICU 2.0
*/
U_CAPI const char* const* U_EXPORT2
U_STABLE const char* const* U_EXPORT2
uloc_getISOLanguages(void);
/**
@ -724,7 +754,7 @@ uloc_getISOLanguages(void);
* @return a list of all available country codes
* @stable ICU 2.0
*/
U_CAPI const char* const* U_EXPORT2
U_STABLE const char* const* U_EXPORT2
uloc_getISOCountries(void);
/**
@ -740,29 +770,14 @@ uloc_getISOCountries(void);
* @return The length of the parent locale ID.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
uloc_getParent(const char* localeID,
char* parent,
int32_t parentCapacity,
UErrorCode* err);
/**
* Character separating keywords from the locale string
* different for EBCDIC - TODO
* @draft ICU 2.8
*/
#define ULOC_KEYWORD_SEPARATOR '@'
/**
* Character for assigning value to a keyword
* @draft ICU 2.8
*/
#define ULOC_KEYWORD_ASSIGN '='
/**
* Character separating keywords
* @draft ICU 2.8
*/
#define ULOC_KEYWORD_ITEM_SEPARATOR ';'
/**
* Gets the full name for the specified locale.
@ -783,7 +798,7 @@ uloc_getParent(const char* localeID,
* than nameCapacity, the returned full name will be truncated.
* @draft ICU 2.8
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uloc_getBaseName(const char* localeID,
char* name,
int32_t nameCapacity,
@ -798,7 +813,7 @@ uloc_getBaseName(const char* localeID,
* @return enumeration of keywords or NULL if there are no keywords.
* @draft ICU 2.8
*/
U_CAPI UEnumeration* U_EXPORT2
U_DRAFT UEnumeration* U_EXPORT2
uloc_openKeywords(const char* localeID,
UErrorCode* status);
@ -813,7 +828,7 @@ uloc_openKeywords(const char* localeID,
* @return the length of keyword value
* @draft ICU 2.8
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uloc_getKeywordValue(const char* localeID,
const char* keywordName,
char* buffer, int32_t bufferCapacity,

View file

@ -65,9 +65,9 @@
#endif
/*==========================================================================*/
/* For C wrappers, we use the symbol U_CAPI. */
/* For C wrappers, we use the symbol U_STABLE. */
/* This works properly if the includer is C or C++. */
/* Functions are declared U_CAPI return-type U_EXPORT2 function-name()... */
/* Functions are declared U_STABLE return-type U_EXPORT2 function-name()... */
/*==========================================================================*/
/**
@ -143,6 +143,10 @@
/** This is used to declare a function as a public ICU C API @stable ICU 2.0*/
#define U_CAPI U_CFUNC U_EXPORT
#define U_STABLE U_CAPI
#define U_DRAFT U_CAPI
#define U_DEPRECATED U_CAPI
#define U_OBSOLETE U_CAPI
/*==========================================================================*/
/* limits for int32_t etc., like in POSIX inttypes.h */

View file

@ -69,13 +69,13 @@ public:
/**
* UnicodeFunctor API. Cast 'this' to a UnicodeMatcher* pointer
* and return the pointer.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UnicodeMatcher* toMatcher() const;
/**
* Implement UnicodeMatcher API.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UMatchDegree matches(const Replaceable& text,
int32_t& offset,
@ -84,7 +84,7 @@ public:
/**
* UnicodeFunctor API. Nothing to do.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual void setData(const TransliterationRuleData*);

View file

@ -23,7 +23,7 @@ class TransliterationRuleData;
* <code>UnicodeFunctor</code> is an abstract base class for objects
* that perform match and/or replace operations on Unicode strings.
* @author Alan Liu
* @draft ICU 2.4
* @stable ICU 2.4
*/
class U_COMMON_API UnicodeFunctor : public UObject {
@ -31,7 +31,7 @@ public:
/**
* Destructor
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual ~UnicodeFunctor();
@ -39,7 +39,7 @@ public:
* Return a copy of this object. All UnicodeFunctor objects
* have to support cloning in order to allow classes using
* UnicodeFunctor to implement cloning.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UnicodeFunctor* clone() const = 0;
@ -51,7 +51,7 @@ public:
* cannot be cast to a pointer to a UnicodeMatcher, since
* UnicodeMatcher is a mixin that does not derive from
* UnicodeFunctor.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UnicodeMatcher* toMatcher() const;
@ -63,7 +63,7 @@ public:
* cannot be cast to a pointer to a UnicodeReplacer, since
* UnicodeReplacer is a mixin that does not derive from
* UnicodeFunctor.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UnicodeReplacer* toReplacer() const;
@ -101,7 +101,7 @@ public:
* @return The class ID for this object. All objects of a given
* class have the same class ID. Objects of other classes have
* different class IDs.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UClassID getDynamicClassID(void) const = 0;

View file

@ -19,7 +19,7 @@ class UnicodeSet;
/**
* Constants returned by <code>UnicodeMatcher::matches()</code>
* indicating the degree of match.
* @draft ICU 2.4
* @stable ICU 2.4
*/
enum UMatchDegree {
/**
@ -27,7 +27,7 @@ enum UMatchDegree {
* mismatch between the text and this matcher. The text contains
* a character which does not match, or the text does not contain
* all desired characters for a non-incremental match.
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_MISMATCH,
@ -39,7 +39,7 @@ enum UMatchDegree {
* complete match. Alternatively, for variable-length matchers,
* all characters of the text match, and if more characters were
* supplied at limit, they might also match.
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_PARTIAL_MATCH,
@ -49,7 +49,7 @@ enum UMatchDegree {
* incremental variable-length match, this value is returned if
* the given text matches, and it is known that additional
* characters would not alter the extent of the match.
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_MATCH
};
@ -57,14 +57,14 @@ enum UMatchDegree {
/**
* <code>UnicodeMatcher</code> defines a protocol for objects that can
* match a range of characters in a Replaceable string.
* @draft ICU 2.4
* @stable ICU 2.4
*/
class U_COMMON_API UnicodeMatcher /* not : public UObject because this is an interface/mixin class */ {
public:
/**
* Destructor.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual ~UnicodeMatcher();
@ -112,7 +112,7 @@ public:
* @return a match degree value indicating a full match, a partial
* match, or a mismatch. If incremental is FALSE then
* U_PARTIAL_MATCH should never be returned.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UMatchDegree matches(const Replaceable& text,
int32_t& offset,
@ -129,7 +129,7 @@ public:
* character to their hex escape representations, \uxxxx or
* \Uxxxxxxxx. Unprintable characters are those other than
* U+000A, U+0020..U+007E.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UnicodeString& toPattern(UnicodeString& result,
UBool escapeUnprintable = FALSE) const = 0;
@ -139,7 +139,7 @@ public:
* & 0xFF == v, at offset, in the forward direction (with limit >
* offset). This is used by <tt>RuleBasedTransliterator</tt> for
* indexing.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UBool matchesIndexValue(uint8_t v) const = 0;
@ -147,7 +147,7 @@ public:
* Union the set of all characters that may be matched by this object
* into the given set.
* @param toUnionTo the set into which to union the source characters
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual void addMatchSetTo(UnicodeSet& toUnionTo) const = 0;
};

View file

@ -280,7 +280,7 @@ public:
/**
* Minimum value that can be stored in a UnicodeSet.
* @draft ICU 2.4
* @stable ICU 2.4
*/
#ifdef U_CYGWIN
static U_COMMON_API const UChar32 MIN_VALUE;
@ -290,7 +290,7 @@ public:
/**
* Maximum value that can be stored in a UnicodeSet.
* @draft ICU 2.4
* @stable ICU 2.4
*/
#ifdef U_CYGWIN
static U_COMMON_API const UChar32 MAX_VALUE;
@ -316,7 +316,7 @@ public:
*
* @param start first character, inclusive, of range
* @param end last character, inclusive, of range
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeSet(UChar32 start, UChar32 end);
@ -442,14 +442,14 @@ public:
*
* @param start first character in the set, inclusive
* @param end last character in the set, inclusive
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeSet& set(UChar32 start, UChar32 end);
/**
* Return true if the given position, in the given pattern, appears
* to be the start of a UnicodeSet pattern.
* @draft ICU 2.4
* @stable ICU 2.4
*/
static UBool resemblesPattern(const UnicodeString& pattern,
int32_t pos);
@ -558,7 +558,7 @@ public:
*
* @return a reference to this set
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeSet& applyIntPropertyValue(UProperty prop,
int32_t value,
@ -589,7 +589,7 @@ public:
*
* @return a reference to this set
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeSet& applyPropertyAlias(const UnicodeString& prop,
const UnicodeString& value,
@ -635,7 +635,7 @@ public:
* multicharacter string.
* @param s string to be checked for containment
* @return <tt>true</tt> if this set contains the specified string
* @draft ICU 2.4
* @stable ICU 2.4
*/
UBool contains(const UnicodeString& s) const;
@ -644,7 +644,7 @@ public:
* of the given set.
* @param c set to be checked for containment
* @return true if the test condition is met
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UBool containsAll(const UnicodeSet& c) const;
@ -653,7 +653,7 @@ public:
* of the given string.
* @param s string containing characters to be checked for containment
* @return true if the test condition is met
* @draft ICU 2.4
* @stable ICU 2.4
*/
UBool containsAll(const UnicodeString& s) const;
@ -663,7 +663,7 @@ public:
* @param start first character, inclusive, of the range
* @param end last character, inclusive, of the range
* @return true if the test condition is met
* @draft ICU 2.4
* @stable ICU 2.4
*/
UBool containsNone(UChar32 start, UChar32 end) const;
@ -672,7 +672,7 @@ public:
* of the given set.
* @param c set to be checked for containment
* @return true if the test condition is met
* @draft ICU 2.4
* @stable ICU 2.4
*/
UBool containsNone(const UnicodeSet& c) const;
@ -681,7 +681,7 @@ public:
* of the given string.
* @param s string containing characters to be checked for containment
* @return true if the test condition is met
* @draft ICU 2.4
* @stable ICU 2.4
*/
UBool containsNone(const UnicodeString& s) const;
@ -691,7 +691,7 @@ public:
* @param start first character, inclusive, of the range
* @param end last character, inclusive, of the range
* @return true if the condition is met
* @draft ICU 2.4
* @stable ICU 2.4
*/
inline UBool containsSome(UChar32 start, UChar32 end) const;
@ -700,7 +700,7 @@ public:
* and strings of the given set.
* @param s The set to be checked for containment
* @return true if the condition is met
* @draft ICU 2.4
* @stable ICU 2.4
*/
inline UBool containsSome(const UnicodeSet& s) const;
@ -709,13 +709,13 @@ public:
* of the given string.
* @param s string containing characters to be checked for containment
* @return true if the condition is met
* @draft ICU 2.4
* @stable ICU 2.4
*/
inline UBool containsSome(const UnicodeString& s) const;
/**
* Implement UnicodeMatcher::matches()
* @draft ICU 2.4
* @stable ICU 2.4
*/
UMatchDegree matches(const Replaceable& text,
int32_t& offset,
@ -766,7 +766,7 @@ public:
* characters that may be matched by this object into the given
* set.
* @param toUnionTo the set into which to union the source characters
* @draft ICU 2.4
* @stable ICU 2.4
*/
void addMatchSetTo(UnicodeSet& toUnionTo) const;
@ -776,7 +776,7 @@ public:
* is not in this set, return -1. The inverse of this method is
* <code>charAt()</code>.
* @return an index from 0..size()-1, or -1
* @draft ICU 2.4
* @stable ICU 2.4
*/
int32_t indexOf(UChar32 c) const;
@ -787,7 +787,7 @@ public:
* <code>indexOf()</code>.
* @param index an index from 0..size()-1
* @return the character at the given index, or (UChar32)-1.
* @draft ICU 2.4
* @stable ICU 2.4
*/
UChar32 charAt(int32_t index) const;
@ -822,7 +822,7 @@ public:
* <br><b>Warning: you cannot add an empty string ("") to a UnicodeSet.</b>
* @param s the source string
* @return this object, for chaining
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeSet& add(const UnicodeString& s);
@ -842,7 +842,7 @@ public:
* If this set already any particular character, it has no effect on that character.
* @param s the source string
* @return this object, for chaining
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeSet& addAll(const UnicodeString& s);
@ -851,7 +851,7 @@ public:
* If this set already any particular character, it has no effect on that character.
* @param s the source string
* @return this object, for chaining
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeSet& retainAll(const UnicodeString& s);
@ -860,7 +860,7 @@ public:
* If this set already any particular character, it has no effect on that character.
* @param s the source string
* @return this object, for chaining
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeSet& complementAll(const UnicodeString& s);
@ -869,7 +869,7 @@ public:
* If this set already any particular character, it has no effect on that character.
* @param s the source string
* @return this object, for chaining
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeSet& removeAll(const UnicodeString& s);
@ -879,7 +879,7 @@ public:
* @param s the source string
* @return a newly created set containing the given string.
* The caller owns the return object and is responsible for deleting it.
* @draft ICU 2.4
* @stable ICU 2.4
*/
static UnicodeSet* createFrom(const UnicodeString& s);
@ -889,7 +889,7 @@ public:
* @param s the source string
* @return a newly created set containing the given characters
* The caller owns the return object and is responsible for deleting it.
* @draft ICU 2.4
* @stable ICU 2.4
*/
static UnicodeSet* createFromAll(const UnicodeString& s);
@ -942,7 +942,7 @@ public:
* returns.
* @param s the source string
* @return this object, for chaining
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeSet& remove(const UnicodeString& s);
@ -984,7 +984,7 @@ public:
* <br><b>Warning: you cannot add an empty string ("") to a UnicodeSet.</b>
* @param s the string to complement
* @return this object, for chaining
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeSet& complement(const UnicodeString& s);
@ -1032,7 +1032,7 @@ public:
*
* @param c set that defines which elements will be xor'ed from
* this set.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UnicodeSet& complementAll(const UnicodeSet& c);
@ -1073,7 +1073,7 @@ public:
* this set.
* @see #getRangeStart
* @see #getRangeEnd
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual int32_t getRangeCount(void) const;
@ -1082,7 +1082,7 @@ public:
* specified range of this set.
* @see #getRangeCount
* @see #getRangeEnd
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UChar32 getRangeStart(int32_t index) const;
@ -1091,7 +1091,7 @@ public:
* specified range of this set.
* @see #getRangeStart
* @see #getRangeEnd
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UChar32 getRangeEnd(int32_t index) const;
@ -1141,14 +1141,14 @@ public:
* @return the total length of the serialized format, including
* the header, that is, n+2*m+(m!=0?2:1), or 0 on error other
* than U_BUFFER_OVERFLOW_ERROR.
* @draft ICU 2.4
* @stable ICU 2.4
*/
int32_t serialize(uint16_t *dest, int32_t destCapacity, UErrorCode& ec) const;
/**
* Reallocate this objects internal structures to take up the least
* possible space, without changing this object's value.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UnicodeSet& compact();
@ -1171,7 +1171,7 @@ public:
* @return The class ID for this object. All objects of a given
* class have the same class ID. Objects of other classes have
* different class IDs.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UClassID getDynamicClassID(void) const;

View file

@ -38,7 +38,7 @@ class StringThreadTest;
#ifndef USTRING_H
/* see ustring.h */
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_strlen(const UChar *s);
#endif
@ -1512,7 +1512,7 @@ public:
* than 'number'. Same as (u_countChar32(s, length)>number).
* @see countChar32
* @see u_strHasMoreChar32Than
* @draft ICU 2.4
* @stable ICU 2.4
*/
UBool
hasMoreChar32Than(int32_t start, int32_t length, int32_t number) const;
@ -1591,7 +1591,7 @@ public:
*
* @param src The text containing the characters to replace.
* @return a reference to this
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeString &fastCopyFrom(const UnicodeString &src);
@ -2133,7 +2133,7 @@ public:
/**
* Replaceable API
* @return TRUE if it has MetaData
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UBool hasMetaData() const;
@ -2836,21 +2836,21 @@ public:
protected:
/**
* Implement Replaceable::getLength() (see jitterbug 1027).
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual int32_t getLength() const;
/**
* The change in Replaceable to use virtual getCharAt() allows
* UnicodeString::charAt() to be inline again (see jitterbug 709).
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UChar getCharAt(int32_t offset) const;
/**
* The change in Replaceable to use virtual getChar32At() allows
* UnicodeString::char32At() to be inline again (see jitterbug 709).
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UChar32 getChar32At(int32_t offset) const;

View file

@ -144,6 +144,8 @@ typedef enum {
UNORM_MODE_COUNT
} UNormalizationMode;
#ifndef U_HIDE_DRAFT_API
/**
* Constants for options flags for normalization.
* Use 0 for default options,
@ -161,6 +163,25 @@ enum {
UNORM_UNICODE_3_2=0x20
};
/**
* Lowest-order bit number of unorm_compare() options bits corresponding to
* normalization options bits.
*
* The options parameter for unorm_compare() uses most bits for
* itself and for various comparison and folding flags.
* The most significant bits, however, are shifted down and passed on
* to the normalization implementation.
* (That is, from unorm_compare(..., options, ...),
* options>>UNORM_COMPARE_NORM_OPTIONS_SHIFT will be passed on to the
* internal normalization functions.)
*
* @see unorm_compare
* @draft ICU 2.6
*/
#define UNORM_COMPARE_NORM_OPTIONS_SHIFT 20
#endif /*U_HIDE_DRAFT_API*/
/**
* Normalize a string.
* The string will be normalized according the specified normalization mode
@ -179,7 +200,7 @@ enum {
* the output was truncated, and the error code is set to U_BUFFER_OVERFLOW_ERROR.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
unorm_normalize(const UChar *source, int32_t sourceLength,
UNormalizationMode mode, int32_t options,
UChar *result, int32_t resultLength,
@ -226,7 +247,7 @@ typedef enum UNormalizationCheckResult {
* @see unorm_isNormalized
* @stable ICU 2.0
*/
U_CAPI UNormalizationCheckResult U_EXPORT2
U_STABLE UNormalizationCheckResult U_EXPORT2
unorm_quickCheck(const UChar *source, int32_t sourcelength,
UNormalizationMode mode,
UErrorCode *status);
@ -247,7 +268,7 @@ unorm_quickCheck(const UChar *source, int32_t sourcelength,
* @see unorm_isNormalized
* @draft ICU 2.6
*/
U_CAPI UNormalizationCheckResult U_EXPORT2
U_DRAFT UNormalizationCheckResult U_EXPORT2
unorm_quickCheckWithOptions(const UChar *src, int32_t srcLength,
UNormalizationMode mode, int32_t options,
UErrorCode *pErrorCode);
@ -273,7 +294,7 @@ unorm_quickCheckWithOptions(const UChar *src, int32_t srcLength,
* @see unorm_quickCheck
* @stable ICU 2.2
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
unorm_isNormalized(const UChar *src, int32_t srcLength,
UNormalizationMode mode,
UErrorCode *pErrorCode);
@ -295,7 +316,7 @@ unorm_isNormalized(const UChar *src, int32_t srcLength,
* @see unorm_isNormalized
* @draft ICU 2.6
*/
U_CAPI UBool U_EXPORT2
U_DRAFT UBool U_EXPORT2
unorm_isNormalizedWithOptions(const UChar *src, int32_t srcLength,
UNormalizationMode mode, int32_t options,
UErrorCode *pErrorCode);
@ -373,7 +394,7 @@ unorm_isNormalizedWithOptions(const UChar *src, int32_t srcLength,
*
* @stable ICU 2.1
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
unorm_next(UCharIterator *src,
UChar *dest, int32_t destCapacity,
UNormalizationMode mode, int32_t options,
@ -406,7 +427,7 @@ unorm_next(UCharIterator *src,
*
* @stable ICU 2.1
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
unorm_previous(UCharIterator *src,
UChar *dest, int32_t destCapacity,
UNormalizationMode mode, int32_t options,
@ -450,7 +471,7 @@ unorm_previous(UCharIterator *src,
*
* @stable ICU 2.1
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
unorm_concatenate(const UChar *left, int32_t leftLength,
const UChar *right, int32_t rightLength,
UChar *dest, int32_t destCapacity,
@ -481,23 +502,6 @@ unorm_concatenate(const UChar *left, int32_t leftLength,
#define U_COMPARE_CODE_POINT_ORDER 0x8000
#endif
/**
* Lowest-order bit number of unorm_compare() options bits corresponding to
* normalization options bits.
*
* The options parameter for unorm_compare() uses most bits for
* itself and for various comparison and folding flags.
* The most significant bits, however, are shifted down and passed on
* to the normalization implementation.
* (That is, from unorm_compare(..., options, ...),
* options>>UNORM_COMPARE_NORM_OPTIONS_SHIFT will be passed on to the
* internal normalization functions.)
*
* @see unorm_compare
* @draft ICU 2.6
*/
#define UNORM_COMPARE_NORM_OPTIONS_SHIFT 20
/**
* Compare two strings for canonical equivalence.
* Further options include case-insensitive comparison and
@ -564,7 +568,7 @@ unorm_concatenate(const UChar *left, int32_t leftLength,
*
* @stable ICU 2.2
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
unorm_compare(const UChar *s1, int32_t length1,
const UChar *s2, int32_t length2,
uint32_t options,

View file

@ -62,7 +62,7 @@ U_NAMESPACE_BEGIN
* UMemory does not contain any virtual functions.
* Common "boilerplate" functions are defined in UObject.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
class U_COMMON_API UMemory {
public:
@ -74,14 +74,14 @@ public:
* (uprv_malloc(), uprv_free(), uprv_realloc());
* they or something else could be used here to implement C++ new/delete
* for ICU4C C++ classes
* @draft ICU 2.4
* @stable ICU 2.4
*/
static void *operator new(size_t size);
/**
* Override for ICU4C C++ memory management.
* See new().
* @draft ICU 2.4
* @stable ICU 2.4
*/
static void *operator new[](size_t size);
@ -91,14 +91,14 @@ public:
* (uprv_malloc(), uprv_free(), uprv_realloc());
* they or something else could be used here to implement C++ new/delete
* for ICU4C C++ classes
* @draft ICU 2.4
* @stable ICU 2.4
*/
static void operator delete(void *p);
/**
* Override for ICU4C C++ memory management.
* See delete().
* @draft ICU 2.4
* @stable ICU 2.4
*/
static void operator delete[](void *p);

View file

@ -0,0 +1,28 @@
/*
*******************************************************************************
* Copyright (C) 2004, International Business Machines
* Corporation and others. All Rights Reserved.
*******************************************************************************
*
* file name: uobslete.h
* encoding: US-ASCII
* tab size: 8 (not used)
* indentation:4
*
* Created by: Created by: gendraft.pl, a perl script written by Ram Viswanadha
*
* Contains data for commenting out APIs marked draft.
* Gets included by umachine.h
*
* THIS FILE IS MACHINE-GENERATED, DON'T PLAY WITH IT IF YOU DON'T KNOW WHAT
* YOU ARE DOING, OTHERWISE VERY BAD THINGS WILL HAPPEN!
*/
#ifndef UOBSOLETE_H
#define UOBSOLETE_H
#ifdef U_HIDE_OBSOLETE_API
#endif /* U_HIDE_OBSOLETE_API */
#endif /* UOBSOLETE_H */

View file

@ -109,7 +109,7 @@ typedef enum {
*/
URES_INT_VECTOR=14,
#ifndef U_HIDE_DEPRECATED_API
/** @deprecated ICU 2.6 Use the URES_ constant instead. */
RES_NONE=URES_NONE,
/** @deprecated ICU 2.6 Use the URES_ constant instead. */
@ -126,6 +126,8 @@ typedef enum {
RES_ARRAY=URES_ARRAY,
/** @deprecated ICU 2.6 Use the URES_ constant instead. */
RES_INT_VECTOR=URES_INT_VECTOR,
#endif /* U_HIDE_DEPRECATED_API */
/** @deprecated ICU 2.6 Not used. */
RES_RESERVED=15
} UResType;
@ -161,7 +163,7 @@ typedef enum {
* @see ures_close
* @stable ICU 2.0
*/
U_CAPI UResourceBundle* U_EXPORT2
U_STABLE UResourceBundle* U_EXPORT2
ures_open(const char* path,
const char* locale,
UErrorCode* status);
@ -183,7 +185,7 @@ ures_open(const char* path,
* @see ures_close
* @stable ICU 2.0
*/
U_CAPI UResourceBundle* U_EXPORT2
U_STABLE UResourceBundle* U_EXPORT2
ures_openDirect(const char* path,
const char* locale,
UErrorCode* status);
@ -203,7 +205,7 @@ ures_openDirect(const char* path,
* @see ures_open
* @stable ICU 2.0
*/
U_CAPI UResourceBundle* U_EXPORT2
U_STABLE UResourceBundle* U_EXPORT2
ures_openU(const UChar* path,
const char* locale,
UErrorCode* status);
@ -224,7 +226,7 @@ ures_openU(const UChar* path,
*@see ures_getSize
* @deprecated ICU 2.8 User ures_getSize instead
*/
U_CAPI int32_t U_EXPORT2
U_DEPRECATED int32_t U_EXPORT2
ures_countArrayItems(const UResourceBundle* resourceBundle,
const char* resourceKey,
UErrorCode* err);
@ -236,7 +238,7 @@ ures_countArrayItems(const UResourceBundle* resourceBundle,
* @see ures_open
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ures_close(UResourceBundle* resourceBundle);
/**
@ -249,7 +251,7 @@ ures_close(UResourceBundle* resourceBundle);
* @see ures_getVersion
* @deprecated ICU 2.8 Use ures_getVersion instead.
*/
U_CAPI const char* U_EXPORT2
U_DEPRECATED const char* U_EXPORT2
ures_getVersionNumber(const UResourceBundle* resourceBundle);
/**
@ -261,7 +263,7 @@ ures_getVersionNumber(const UResourceBundle* resourceBundle);
* as specified in the resource bundle or its parent.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ures_getVersion(const UResourceBundle* resB,
UVersionInfo versionInfo);
@ -277,7 +279,7 @@ ures_getVersion(const UResourceBundle* resB,
* @return A Locale name
* @deprecated ICU 2.8 Use ures_getLocaleByType instead.
*/
U_CAPI const char* U_EXPORT2
U_DEPRECATED const char* U_EXPORT2
ures_getLocale(const UResourceBundle* resourceBundle,
UErrorCode* status);
@ -294,7 +296,7 @@ ures_getLocale(const UResourceBundle* resourceBundle,
* @return A Locale name
* @draft ICU 2.8
*/
U_CAPI const char* U_EXPORT2
U_DRAFT const char* U_EXPORT2
ures_getLocaleByType(const UResourceBundle* resourceBundle,
ULocDataLocaleType type,
UErrorCode* status);
@ -313,7 +315,7 @@ ures_getLocaleByType(const UResourceBundle* resourceBundle,
* @return a newly allocated resource bundle or NULL if it doesn't exist.
* @internal
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ures_openFillIn(UResourceBundle *r,
const char* path,
const char* localeID,
@ -336,7 +338,7 @@ ures_openFillIn(UResourceBundle *r,
* @see ures_getUInt
* @stable ICU 2.0
*/
U_CAPI const UChar* U_EXPORT2
U_STABLE const UChar* U_EXPORT2
ures_getString(const UResourceBundle* resourceBundle,
int32_t* len,
UErrorCode* status);
@ -358,7 +360,7 @@ ures_getString(const UResourceBundle* resourceBundle,
* @see ures_getUInt
* @stable ICU 2.0
*/
U_CAPI const uint8_t* U_EXPORT2
U_STABLE const uint8_t* U_EXPORT2
ures_getBinary(const UResourceBundle* resourceBundle,
int32_t* len,
UErrorCode* status);
@ -380,7 +382,7 @@ ures_getBinary(const UResourceBundle* resourceBundle,
* @see ures_getUInt
* @stable ICU 2.0
*/
U_CAPI const int32_t* U_EXPORT2
U_STABLE const int32_t* U_EXPORT2
ures_getIntVector(const UResourceBundle* resourceBundle,
int32_t* len,
UErrorCode* status);
@ -401,7 +403,7 @@ ures_getIntVector(const UResourceBundle* resourceBundle,
* @see ures_getString
* @stable ICU 2.0
*/
U_CAPI uint32_t U_EXPORT2
U_STABLE uint32_t U_EXPORT2
ures_getUInt(const UResourceBundle* resourceBundle,
UErrorCode *status);
@ -421,7 +423,7 @@ ures_getUInt(const UResourceBundle* resourceBundle,
* @see ures_getString
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ures_getInt(const UResourceBundle* resourceBundle,
UErrorCode *status);
@ -435,7 +437,7 @@ ures_getInt(const UResourceBundle* resourceBundle,
* @return number of resources in a given resource.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ures_getSize(UResourceBundle *resourceBundle);
/**
@ -446,7 +448,7 @@ ures_getSize(UResourceBundle *resourceBundle);
* @see UResType
* @stable ICU 2.0
*/
U_CAPI UResType U_EXPORT2
U_STABLE UResType U_EXPORT2
ures_getType(UResourceBundle *resourceBundle);
/**
@ -457,7 +459,7 @@ ures_getType(UResourceBundle *resourceBundle);
* @return a key associated to this resource, or NULL if it doesn't have a key
* @stable ICU 2.0
*/
U_CAPI const char * U_EXPORT2
U_STABLE const char * U_EXPORT2
ures_getKey(UResourceBundle *resourceBundle);
/* ITERATION API
@ -470,7 +472,7 @@ ures_getKey(UResourceBundle *resourceBundle);
* @param resourceBundle a resource
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ures_resetIterator(UResourceBundle *resourceBundle);
/**
@ -480,7 +482,7 @@ ures_resetIterator(UResourceBundle *resourceBundle);
* @return TRUE if there are more elements, FALSE if there is no more elements
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
ures_hasNext(UResourceBundle *resourceBundle);
/**
@ -495,7 +497,7 @@ ures_hasNext(UResourceBundle *resourceBundle);
* @return a pointer to a UResourceBundle struct. If fill in param was NULL, caller must delete it
* @stable ICU 2.0
*/
U_CAPI UResourceBundle* U_EXPORT2
U_STABLE UResourceBundle* U_EXPORT2
ures_getNextResource(UResourceBundle *resourceBundle,
UResourceBundle *fillIn,
UErrorCode *status);
@ -512,7 +514,7 @@ ures_getNextResource(UResourceBundle *resourceBundle,
* @return a pointer to a zero-terminated UChar array which lives in a memory mapped/DLL file.
* @stable ICU 2.0
*/
U_CAPI const UChar* U_EXPORT2
U_STABLE const UChar* U_EXPORT2
ures_getNextString(UResourceBundle *resourceBundle,
int32_t* len,
const char ** key,
@ -530,7 +532,7 @@ ures_getNextString(UResourceBundle *resourceBundle,
* @return a pointer to a UResourceBundle struct. If fill in param was NULL, caller must delete it
* @stable ICU 2.0
*/
U_CAPI UResourceBundle* U_EXPORT2
U_STABLE UResourceBundle* U_EXPORT2
ures_getByIndex(const UResourceBundle *resourceBundle,
int32_t indexR,
UResourceBundle *fillIn,
@ -547,7 +549,7 @@ ures_getByIndex(const UResourceBundle *resourceBundle,
* @return a pointer to a zero-terminated UChar array which lives in a memory mapped/DLL file.
* @stable ICU 2.0
*/
U_CAPI const UChar* U_EXPORT2
U_STABLE const UChar* U_EXPORT2
ures_getStringByIndex(const UResourceBundle *resourceBundle,
int32_t indexS,
int32_t* len,
@ -565,7 +567,7 @@ ures_getStringByIndex(const UResourceBundle *resourceBundle,
* @return a pointer to a UResourceBundle struct. If fill in param was NULL, caller must delete it
* @stable ICU 2.0
*/
U_CAPI UResourceBundle* U_EXPORT2
U_STABLE UResourceBundle* U_EXPORT2
ures_getByKey(const UResourceBundle *resourceBundle,
const char* key,
UResourceBundle *fillIn,
@ -583,7 +585,7 @@ ures_getByKey(const UResourceBundle *resourceBundle,
* @return a pointer to a zero-terminated UChar array which lives in a memory mapped/DLL file.
* @stable ICU 2.0
*/
U_CAPI const UChar* U_EXPORT2
U_STABLE const UChar* U_EXPORT2
ures_getStringByKey(const UResourceBundle *resB,
const char* key,
int32_t* len,

View file

@ -102,9 +102,9 @@ typedef enum UScriptCode {
* @param capacity the capacity (size) fo UScriptCode buffer passed in.
* @param err the error status code.
* @return The number of script codes filled in the buffer passed in
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
uscript_getCode(const char* nameOrAbbrOrLocale,UScriptCode* fillIn,int32_t capacity,UErrorCode *err);
/**
@ -113,9 +113,9 @@ uscript_getCode(const char* nameOrAbbrOrLocale,UScriptCode* fillIn,int32_t capac
* @param scriptCode UScriptCode enum
* @return script long name as given in
* PropertyValueAliases.txt, or NULL if scriptCode is invalid
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI const char* U_EXPORT2
U_STABLE const char* U_EXPORT2
uscript_getName(UScriptCode scriptCode);
/**
@ -124,9 +124,9 @@ uscript_getName(UScriptCode scriptCode);
* @param scriptCode UScriptCode enum
* @return script abbreviated name as given in
* PropertyValueAliases.txt, or NULL if scriptCode is invalid
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI const char* U_EXPORT2
U_STABLE const char* U_EXPORT2
uscript_getShortName(UScriptCode scriptCode);
/**
@ -135,9 +135,9 @@ uscript_getShortName(UScriptCode scriptCode);
* @param codepoint UChar32 codepoint
* @param err the error status code.
* @return The UScriptCode, or 0 if codepoint is invalid
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI UScriptCode U_EXPORT2
U_STABLE UScriptCode U_EXPORT2
uscript_getScript(UChar32 codepoint, UErrorCode *err);
#endif

View file

@ -34,7 +34,7 @@ struct USet;
/**
* A UnicodeSet. Use the uset_* API to manipulate. Create with
* uset_open*, and destroy with uset_close.
* @draft ICU 2.4
* @stable ICU 2.4
*/
typedef struct USet USet;
#endif
@ -42,12 +42,12 @@ typedef struct USet USet;
/**
* Bitmask values to be passed to uset_openPatternOptions() or
* uset_applyPattern() taking an option parameter.
* @draft ICU 2.4
* @stable ICU 2.4
*/
enum {
/**
* Ignore white space within patterns unless quoted or escaped.
* @draft ICU 2.4
* @stable ICU 2.4
*/
USET_IGNORE_SPACE = 1,
@ -55,7 +55,7 @@ enum {
* Enable case insensitive matching. E.g., "[ab]" with this flag
* will match 'a', 'A', 'b', and 'B'. "[^ab]" with this flag will
* match all except 'a', 'A', 'b', and 'B'.
* @draft ICU 2.4
* @stable ICU 2.4
*/
USET_CASE_INSENSITIVE = 2,
@ -75,27 +75,27 @@ enum {
/**
* A serialized form of a Unicode set. Limited manipulations are
* possible directly on a serialized set. See below.
* @draft ICU 2.4
* @stable ICU 2.4
*/
typedef struct USerializedSet {
/**
* The serialized Unicode Set.
* @draft ICU 2.4
* @stable ICU 2.4
*/
const uint16_t *array;
/**
* The length of the array that contains BMP characters.
* @draft ICU 2.4
* @stable ICU 2.4
*/
int32_t bmpLength;
/**
* The total length of the array.
* @draft ICU 2.4
* @stable ICU 2.4
*/
int32_t length;
/**
* A small buffer for the array to reduce memory allocations.
* @draft ICU 2.4
* @stable ICU 2.4
*/
uint16_t staticArray[USET_SERIALIZED_STATIC_ARRAY_CAPACITY];
} USerializedSet;
@ -111,9 +111,9 @@ typedef struct USerializedSet {
* @param end last character of the range, inclusive
* @return a newly created USet. The caller must call uset_close() on
* it when done.
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI USet* U_EXPORT2
U_STABLE USet* U_EXPORT2
uset_open(UChar32 start, UChar32 end);
/**
@ -123,9 +123,9 @@ uset_open(UChar32 start, UChar32 end);
* @param patternLength the length of the pattern, or -1 if null
* terminated
* @param ec the error code
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI USet* U_EXPORT2
U_STABLE USet* U_EXPORT2
uset_openPattern(const UChar* pattern, int32_t patternLength,
UErrorCode* ec);
@ -138,9 +138,9 @@ uset_openPattern(const UChar* pattern, int32_t patternLength,
* @param options bitmask for options to apply to the pattern.
* Valid options are USET_IGNORE_SPACE and USET_CASE_INSENSITIVE.
* @param ec the error code
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI USet* U_EXPORT2
U_STABLE USet* U_EXPORT2
uset_openPatternOptions(const UChar* pattern, int32_t patternLength,
uint32_t options,
UErrorCode* ec);
@ -149,9 +149,9 @@ uset_openPatternOptions(const UChar* pattern, int32_t patternLength,
* Disposes of the storage used by a USet object. This function should
* be called exactly once for objects returned by uset_open().
* @param set the object to dispose of
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
uset_close(USet* set);
/**
@ -174,7 +174,7 @@ uset_close(USet* set);
*
* @draft ICU 2.8
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uset_applyPattern(USet *set,
const UChar *pattern, int32_t patternLength,
uint32_t options,
@ -193,9 +193,9 @@ uset_applyPattern(USet *set,
* U+000A, U+0020..U+007E.
* @param ec error code.
* @return length of string, possibly larger than resultCapacity
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
uset_toPattern(const USet* set,
UChar* result, int32_t resultCapacity,
UBool escapeUnprintable,
@ -206,9 +206,9 @@ uset_toPattern(const USet* set,
* uset_contains(set, c) will return TRUE.
* @param set the object to which to add the character
* @param c the character to add
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
uset_add(USet* set, UChar32 c);
/**
@ -222,7 +222,7 @@ uset_add(USet* set, UChar32 c);
* @param additionalSet the source set whose elements are to be added to this set.
* @draft ICU 2.6
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
uset_addAll(USet* set, const USet *additionalSet);
/**
@ -233,7 +233,7 @@ uset_addAll(USet* set, const USet *additionalSet);
* @param end the last character of the range to add, inclusive
* @stable ICU 2.2
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
uset_addRange(USet* set, UChar32 start, UChar32 end);
/**
@ -242,9 +242,9 @@ uset_addRange(USet* set, UChar32 start, UChar32 end);
* @param set the object to which to add the character
* @param str the string to add
* @param strLen the length of the string or -1 if null terminated.
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
uset_addString(USet* set, const UChar* str, int32_t strLen);
/**
@ -252,9 +252,9 @@ uset_addString(USet* set, const UChar* str, int32_t strLen);
* uset_contains(set, c) will return FALSE.
* @param set the object from which to remove the character
* @param c the character to remove
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
uset_remove(USet* set, UChar32 c);
/**
@ -265,7 +265,7 @@ uset_remove(USet* set, UChar32 c);
* @param end the last character of the range to remove, inclusive
* @stable ICU 2.2
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
uset_removeRange(USet* set, UChar32 start, UChar32 end);
/**
@ -274,9 +274,9 @@ uset_removeRange(USet* set, UChar32 start, UChar32 end);
* @param set the object to which to add the character
* @param str the string to remove
* @param strLen the length of the string or -1 if null terminated.
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
uset_removeString(USet* set, const UChar* str, int32_t strLen);
/**
@ -284,18 +284,18 @@ uset_removeString(USet* set, const UChar* str, int32_t strLen);
* its value is its complement. This operation does not affect
* the multicharacter strings, if any.
* @param set the set
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
uset_complement(USet* set);
/**
* Removes all of the elements from this set. This set will be
* empty after this call returns.
* @param set the set
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
uset_clear(USet* set);
/**
@ -303,9 +303,9 @@ uset_clear(USet* set);
* strings.
* @param set the set
* @return true if set is empty
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
uset_isEmpty(const USet* set);
/**
@ -313,9 +313,9 @@ uset_isEmpty(const USet* set);
* @param set the set
* @param c The codepoint to check for within the set
* @return true if set contains c
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
uset_contains(const USet* set, UChar32 c);
/**
@ -327,7 +327,7 @@ uset_contains(const USet* set, UChar32 c);
* @return TRUE if set contains the range
* @stable ICU 2.2
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
uset_containsRange(const USet* set, UChar32 start, UChar32 end);
/**
@ -336,9 +336,9 @@ uset_containsRange(const USet* set, UChar32 start, UChar32 end);
* @param str the string
* @param strLen the length of the string or -1 if null terminated.
* @return true if set contains str
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
uset_containsString(const USet* set, const UChar* str, int32_t strLen);
/**
@ -347,9 +347,9 @@ uset_containsString(const USet* set, const UChar* str, int32_t strLen);
* @param set the set
* @return a non-negative integer counting the characters and strings
* contained in set
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
uset_size(const USet* set);
/**
@ -358,9 +358,9 @@ uset_size(const USet* set);
* @param set the set
* @return a non-negative integer counting the character ranges
* and/or strings contained in set
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
uset_getItemCount(const USet* set);
/**
@ -379,9 +379,9 @@ uset_getItemCount(const USet* set);
* @return the length of the string (>= 2), or 0 if the item is a
* range, in which case it is the range *start..*end, or -1 if
* itemIndex is out of range
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
uset_getItem(const USet* set, int32_t itemIndex,
UChar32* start, UChar32* end,
UChar* str, int32_t strCapacity,
@ -438,9 +438,9 @@ uset_getItem(const USet* set, int32_t itemIndex,
* @return the total length of the serialized format, including
* the header, that is, n+2*m+(m!=0?2:1), or 0 on error other
* than U_BUFFER_OVERFLOW_ERROR.
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
uset_serialize(const USet* set, uint16_t* dest, int32_t destCapacity, UErrorCode* pErrorCode);
/**
@ -449,9 +449,9 @@ uset_serialize(const USet* set, uint16_t* dest, int32_t destCapacity, UErrorCode
* @param src pointer to start of array
* @param srcLength length of array
* @return true if the given array is valid, otherwise false
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
uset_getSerializedSet(USerializedSet* fillSet, const uint16_t* src, int32_t srcLength);
/**
@ -459,9 +459,9 @@ uset_getSerializedSet(USerializedSet* fillSet, const uint16_t* src, int32_t srcL
* else).
* @param fillSet pointer to result
* @param c The codepoint to set
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
uset_setSerializedToOne(USerializedSet* fillSet, UChar32 c);
/**
@ -470,9 +470,9 @@ uset_setSerializedToOne(USerializedSet* fillSet, UChar32 c);
* @param set the serialized set
* @param c The codepoint to check for within the set
* @return true if set contains c
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
uset_serializedContains(const USerializedSet* set, UChar32 c);
/**
@ -482,9 +482,9 @@ uset_serializedContains(const USerializedSet* set, UChar32 c);
* @param set the serialized set
* @return a non-negative integer counting the character ranges
* contained in set
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
uset_getSerializedRangeCount(const USerializedSet* set);
/**
@ -498,9 +498,9 @@ uset_getSerializedRangeCount(const USerializedSet* set);
* @param pEnd pointer to variable to receive last character in range,
* inclusive
* @return true if rangeIndex is valid, otherwise false
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
uset_getSerializedRange(const USerializedSet* set, int32_t rangeIndex,
UChar32* pStart, UChar32* pEnd);

View file

@ -48,7 +48,7 @@ class UnicodeString;
* }
* </pre>
* @author M. Davis
* @draft ICU 2.4
* @stable ICU 2.4
*/
class U_COMMON_API UnicodeSetIterator : public UObject {
@ -58,14 +58,14 @@ class U_COMMON_API UnicodeSetIterator : public UObject {
* Value of <tt>codepoint</tt> if the iterator points to a string.
* If <tt>codepoint == IS_STRING</tt>, then examine
* <tt>string</tt> for the current iteration result.
* @draft ICU 2.4
* @stable ICU 2.4
*/
enum { IS_STRING = -1 };
/**
* Current code point, or the special value <tt>IS_STRING</tt>, if
* the iterator points to a string.
* @draft ICU 2.4
* @stable ICU 2.4
*/
UChar32 codepoint;
@ -76,7 +76,7 @@ class U_COMMON_API UnicodeSetIterator : public UObject {
* iterating over code points using <tt>next()</tt>, or if
* <tt>codepoint == IS_STRING</tt>, then the value of
* <tt>codepointEnd</tt> is undefined.
* @draft ICU 2.4
* @stable ICU 2.4
*/
UChar32 codepointEnd;
@ -84,7 +84,7 @@ class U_COMMON_API UnicodeSetIterator : public UObject {
* If <tt>codepoint == IS_STRING</tt>, then <tt>string</tt> points
* to the current string. If <tt>codepoint != IS_STRING</tt>, the
* value of <tt>string</tt> is undefined.
* @draft ICU 2.4
* @stable ICU 2.4
*/
const UnicodeString* string;
@ -94,7 +94,7 @@ class U_COMMON_API UnicodeSetIterator : public UObject {
* Create an iterator over the given set. The iterator is valid
* only so long as <tt>set</tt> is valid.
* @param set set to iterate over
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeSetIterator(const UnicodeSet& set);
@ -102,13 +102,13 @@ class U_COMMON_API UnicodeSetIterator : public UObject {
* Create an iterator over nothing. <tt>next()</tt> and
* <tt>nextRange()</tt> return false. This is a convenience
* constructor allowing the target to be set later.
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeSetIterator();
/**
* Destructor.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual ~UnicodeSetIterator();
@ -120,14 +120,14 @@ class U_COMMON_API UnicodeSetIterator : public UObject {
* <tt>nextRange()</tt> was called, and the caller can retrieve it
* with <tt>getCodepoint()</tt> and, for a range,
* <tt>getCodepointEnd()</tt>.
* @draft ICU 2.4
* @stable ICU 2.4
*/
inline UBool isString() const;
/**
* Returns the current code point, if <tt>isString()</tt> returned
* false. Otherwise returns an undefined result.
* @draft ICU 2.4
* @stable ICU 2.4
*/
inline UChar32 getCodepoint() const;
@ -135,14 +135,14 @@ class U_COMMON_API UnicodeSetIterator : public UObject {
* Returns the end of the current code point range, if
* <tt>isString()</tt> returned false and <tt>nextRange()</tt> was
* called. Otherwise returns an undefined result.
* @draft ICU 2.4
* @stable ICU 2.4
*/
inline UChar32 getCodepointEnd() const;
/**
* Returns the current string, if <tt>isString()</tt> returned
* true. Otherwise returns an undefined result.
* @draft ICU 2.4
* @stable ICU 2.4
*/
inline const UnicodeString& getString() const;
@ -163,7 +163,7 @@ class U_COMMON_API UnicodeSetIterator : public UObject {
*
* @return true if there was another element in the set and this
* object contains the element.
* @draft ICU 2.4
* @stable ICU 2.4
*/
UBool next();
@ -185,7 +185,7 @@ class U_COMMON_API UnicodeSetIterator : public UObject {
*
* @return true if there was another element in the set and this
* object contains the element.
* @draft ICU 2.4
* @stable ICU 2.4
*/
UBool nextRange();
@ -194,27 +194,27 @@ class U_COMMON_API UnicodeSetIterator : public UObject {
* resets it to the start of that set. The iterator is valid only
* so long as <tt>set</tt> is valid.
* @param set the set to iterate over.
* @draft ICU 2.4
* @stable ICU 2.4
*/
void reset(const UnicodeSet& set);
/**
* Resets this iterator to the start of the set.
* @draft ICU 2.4
* @stable ICU 2.4
*/
void reset();
/**
* ICU "poor man's RTTI", returns a UClassID for this class.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
static UClassID getStaticClassID();
/**
* ICU "poor man's RTTI", returns a UClassID for the actual class.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UClassID getDynamicClassID() const;
@ -226,47 +226,47 @@ class U_COMMON_API UnicodeSetIterator : public UObject {
// them as signed int32_t's so we can do comparisons with
// endElement set to -1. Leave them as int32_t's.
/** The set
* @draft ICU 2.4
* @stable ICU 2.4
*/
const UnicodeSet* set;
/** End range
* @draft ICU 2.4
* @stable ICU 2.4
*/
int32_t endRange;
/** Range
* @draft ICU 2.4
* @stable ICU 2.4
*/
int32_t range;
/** End element
* @draft ICU 2.4
* @stable ICU 2.4
*/
int32_t endElement;
/** Next element
* @draft ICU 2.4
* @stable ICU 2.4
*/
int32_t nextElement;
//UBool abbreviated;
/** Next string
* @draft ICU 2.4
* @stable ICU 2.4
*/
int32_t nextString;
/** String count
* @draft ICU 2.4
* @stable ICU 2.4
*/
int32_t stringCount;
/** Copy constructor. Disallowed.
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeSetIterator(const UnicodeSetIterator&); // disallow
/** Assignment operator. Disallowed.
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeSetIterator& operator=(const UnicodeSetIterator&); // disallow
/** Load range
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual void loadRange(int32_t range);

View file

@ -96,7 +96,7 @@
* the return value indicates the necessary destination buffer size.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_shapeArabic(const UChar *source, int32_t sourceLength,
UChar *dest, int32_t destSize,
uint32_t options,

View file

@ -76,7 +76,7 @@
* @return The number of UChars in <code>chars</code>, minus the terminator.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_strlen(const UChar *s);
/**
@ -92,7 +92,7 @@ u_strlen(const UChar *s);
* @return The number of code points in the specified code units.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_countChar32(const UChar *s, int32_t length);
/**
@ -111,9 +111,9 @@ u_countChar32(const UChar *s, int32_t length);
* the 'number' parameter.
* @return Boolean value for whether the string contains more Unicode code points
* than 'number'. Same as (u_countChar32(s, length)>number).
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
u_strHasMoreChar32Than(const UChar *s, int32_t length, int32_t number);
/**
@ -126,7 +126,7 @@ u_strHasMoreChar32Than(const UChar *s, int32_t length, int32_t number);
* @return A pointer to <code>dst</code>.
* @stable ICU 2.0
*/
U_CAPI UChar* U_EXPORT2
U_STABLE UChar* U_EXPORT2
u_strcat(UChar *dst,
const UChar *src);
@ -144,7 +144,7 @@ u_strcat(UChar *dst,
* @return A pointer to <code>dst</code>.
* @stable ICU 2.0
*/
U_CAPI UChar* U_EXPORT2
U_STABLE UChar* U_EXPORT2
u_strncat(UChar *dst,
const UChar *src,
int32_t n);
@ -169,7 +169,7 @@ u_strncat(UChar *dst,
* @see u_strFindFirst
* @see u_strFindLast
*/
U_CAPI UChar * U_EXPORT2
U_STABLE UChar * U_EXPORT2
u_strstr(const UChar *s, const UChar *substring);
/**
@ -188,12 +188,12 @@ u_strstr(const UChar *s, const UChar *substring);
* @return A pointer to the first occurrence of <code>substring</code> in <code>s</code>,
* or <code>s</code> itself if the <code>substring</code> is empty,
* or <code>NULL</code> if <code>substring</code> is not in <code>s</code>.
* @draft ICU 2.4
* @stable ICU 2.4
*
* @see u_strstr
* @see u_strFindLast
*/
U_CAPI UChar * U_EXPORT2
U_STABLE UChar * U_EXPORT2
u_strFindFirst(const UChar *s, int32_t length, const UChar *substring, int32_t subLength);
/**
@ -213,7 +213,7 @@ u_strFindFirst(const UChar *s, int32_t length, const UChar *substring, int32_t s
* @see u_strstr
* @see u_strFindFirst
*/
U_CAPI UChar * U_EXPORT2
U_STABLE UChar * U_EXPORT2
u_strchr(const UChar *s, UChar c);
/**
@ -233,7 +233,7 @@ u_strchr(const UChar *s, UChar c);
* @see u_strstr
* @see u_strFindFirst
*/
U_CAPI UChar * U_EXPORT2
U_STABLE UChar * U_EXPORT2
u_strchr32(const UChar *s, UChar32 c);
/**
@ -250,13 +250,13 @@ u_strchr32(const UChar *s, UChar32 c);
* @return A pointer to the last occurrence of <code>substring</code> in <code>s</code>,
* or <code>s</code> itself if the <code>substring</code> is empty,
* or <code>NULL</code> if <code>substring</code> is not in <code>s</code>.
* @draft ICU 2.4
* @stable ICU 2.4
*
* @see u_strstr
* @see u_strFindFirst
* @see u_strFindLast
*/
U_CAPI UChar * U_EXPORT2
U_STABLE UChar * U_EXPORT2
u_strrstr(const UChar *s, const UChar *substring);
/**
@ -275,12 +275,12 @@ u_strrstr(const UChar *s, const UChar *substring);
* @return A pointer to the last occurrence of <code>substring</code> in <code>s</code>,
* or <code>s</code> itself if the <code>substring</code> is empty,
* or <code>NULL</code> if <code>substring</code> is not in <code>s</code>.
* @draft ICU 2.4
* @stable ICU 2.4
*
* @see u_strstr
* @see u_strFindLast
*/
U_CAPI UChar * U_EXPORT2
U_STABLE UChar * U_EXPORT2
u_strFindLast(const UChar *s, int32_t length, const UChar *substring, int32_t subLength);
/**
@ -293,14 +293,14 @@ u_strFindLast(const UChar *s, int32_t length, const UChar *substring, int32_t su
* @param c The BMP code point to find.
* @return A pointer to the last occurrence of <code>c</code> in <code>s</code>
* or <code>NULL</code> if <code>c</code> is not in <code>s</code>.
* @draft ICU 2.4
* @stable ICU 2.4
*
* @see u_strrchr32
* @see u_memrchr
* @see u_strrstr
* @see u_strFindLast
*/
U_CAPI UChar * U_EXPORT2
U_STABLE UChar * U_EXPORT2
u_strrchr(const UChar *s, UChar c);
/**
@ -313,14 +313,14 @@ u_strrchr(const UChar *s, UChar c);
* @param c The code point to find.
* @return A pointer to the last occurrence of <code>c</code> in <code>s</code>
* or <code>NULL</code> if <code>c</code> is not in <code>s</code>.
* @draft ICU 2.4
* @stable ICU 2.4
*
* @see u_strrchr
* @see u_memchr32
* @see u_strrstr
* @see u_strFindLast
*/
U_CAPI UChar * U_EXPORT2
U_STABLE UChar * U_EXPORT2
u_strrchr32(const UChar *s, UChar32 c);
/**
@ -335,7 +335,7 @@ u_strrchr32(const UChar *s, UChar32 c);
* characters in <code>matchSet</code>, or NULL if no such character is found.
* @stable ICU 2.0
*/
U_CAPI UChar * U_EXPORT2
U_STABLE UChar * U_EXPORT2
u_strpbrk(const UChar *string, const UChar *matchSet);
/**
@ -351,7 +351,7 @@ u_strpbrk(const UChar *string, const UChar *matchSet);
* @see u_strspn
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_strcspn(const UChar *string, const UChar *matchSet);
/**
@ -367,7 +367,7 @@ u_strcspn(const UChar *string, const UChar *matchSet);
* @see u_strcspn
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_strspn(const UChar *string, const UChar *matchSet);
/**
@ -395,7 +395,7 @@ u_strspn(const UChar *string, const UChar *matchSet);
* when there are no more tokens.
* @stable ICU 2.0
*/
U_CAPI UChar * U_EXPORT2
U_STABLE UChar * U_EXPORT2
u_strtok_r(UChar *src,
const UChar *delim,
UChar **saveState);
@ -410,7 +410,7 @@ u_strtok_r(UChar *src,
* value if <code>s1</code> is bitwise greater than <code>s2</code>.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_strcmp(const UChar *s1,
const UChar *s2);
@ -425,7 +425,7 @@ u_strcmp(const UChar *s1,
* in code point order
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_strcmpCodePointOrder(const UChar *s1, const UChar *s2);
/**
@ -455,7 +455,7 @@ u_strcmpCodePointOrder(const UChar *s1, const UChar *s2);
*
* @stable ICU 2.2
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_strCompare(const UChar *s1, int32_t length1,
const UChar *s2, int32_t length2,
UBool codePointOrder);
@ -480,7 +480,7 @@ u_strCompare(const UChar *s1, int32_t length1,
*
* @draft ICU 2.6
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
u_strCompareIter(UCharIterator *iter1, UCharIterator *iter2, UBool codePointOrder);
#ifndef U_COMPARE_CODE_POINT_ORDER
@ -533,7 +533,7 @@ u_strCompareIter(UCharIterator *iter1, UCharIterator *iter2, UBool codePointOrde
*
* @stable ICU 2.2
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_strCaseCompare(const UChar *s1, int32_t length1,
const UChar *s2, int32_t length2,
uint32_t options,
@ -551,7 +551,7 @@ u_strCaseCompare(const UChar *s1, int32_t length1,
* value if <code>s1</code> is bitwise greater than <code>s2,/code>.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_strncmp(const UChar *ucs1,
const UChar *ucs2,
int32_t n);
@ -569,7 +569,7 @@ u_strncmp(const UChar *ucs1,
* in code point order
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_strncmpCodePointOrder(const UChar *s1, const UChar *s2, int32_t n);
/**
@ -591,7 +591,7 @@ u_strncmpCodePointOrder(const UChar *s1, const UChar *s2, int32_t n);
* @return A negative, zero, or positive integer indicating the comparison result.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_strcasecmp(const UChar *s1, const UChar *s2, uint32_t options);
/**
@ -615,7 +615,7 @@ u_strcasecmp(const UChar *s1, const UChar *s2, uint32_t options);
* @return A negative, zero, or positive integer indicating the comparison result.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_strncasecmp(const UChar *s1, const UChar *s2, int32_t n, uint32_t options);
/**
@ -639,7 +639,7 @@ u_strncasecmp(const UChar *s1, const UChar *s2, int32_t n, uint32_t options);
* @return A negative, zero, or positive integer indicating the comparison result.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_memcasecmp(const UChar *s1, const UChar *s2, int32_t length, uint32_t options);
/**
@ -650,7 +650,7 @@ u_memcasecmp(const UChar *s1, const UChar *s2, int32_t length, uint32_t options)
* @return A pointer to <code>dst</code>.
* @stable ICU 2.0
*/
U_CAPI UChar* U_EXPORT2
U_STABLE UChar* U_EXPORT2
u_strcpy(UChar *dst,
const UChar *src);
@ -665,7 +665,7 @@ u_strcpy(UChar *dst,
* @return A pointer to <code>dst</code>.
* @stable ICU 2.0
*/
U_CAPI UChar* U_EXPORT2
U_STABLE UChar* U_EXPORT2
u_strncpy(UChar *dst,
const UChar *src,
int32_t n);
@ -680,7 +680,7 @@ u_strncpy(UChar *dst,
* @return A pointer to <code>dst</code>.
* @stable ICU 2.0
*/
U_CAPI UChar* U_EXPORT2 u_uastrcpy(UChar *dst,
U_STABLE UChar* U_EXPORT2 u_uastrcpy(UChar *dst,
const char *src );
/**
@ -695,7 +695,7 @@ U_CAPI UChar* U_EXPORT2 u_uastrcpy(UChar *dst,
* @return A pointer to <code>dst</code>.
* @stable ICU 2.0
*/
U_CAPI UChar* U_EXPORT2 u_uastrncpy(UChar *dst,
U_STABLE UChar* U_EXPORT2 u_uastrncpy(UChar *dst,
const char *src,
int32_t n);
@ -709,7 +709,7 @@ U_CAPI UChar* U_EXPORT2 u_uastrncpy(UChar *dst,
* @return A pointer to <code>dst</code>.
* @stable ICU 2.0
*/
U_CAPI char* U_EXPORT2 u_austrcpy(char *dst,
U_STABLE char* U_EXPORT2 u_austrcpy(char *dst,
const UChar *src );
/**
@ -724,7 +724,7 @@ U_CAPI char* U_EXPORT2 u_austrcpy(char *dst,
* @return A pointer to <code>dst</code>.
* @stable ICU 2.0
*/
U_CAPI char* U_EXPORT2 u_austrncpy(char *dst,
U_STABLE char* U_EXPORT2 u_austrncpy(char *dst,
const UChar *src,
int32_t n );
@ -736,7 +736,7 @@ U_CAPI char* U_EXPORT2 u_austrncpy(char *dst,
* @return A pointer to <code>dest</code>
* @stable ICU 2.0
*/
U_CAPI UChar* U_EXPORT2
U_STABLE UChar* U_EXPORT2
u_memcpy(UChar *dest, const UChar *src, int32_t count);
/**
@ -747,7 +747,7 @@ u_memcpy(UChar *dest, const UChar *src, int32_t count);
* @return A pointer to <code>dest</code>
* @stable ICU 2.0
*/
U_CAPI UChar* U_EXPORT2
U_STABLE UChar* U_EXPORT2
u_memmove(UChar *dest, const UChar *src, int32_t count);
/**
@ -759,7 +759,7 @@ u_memmove(UChar *dest, const UChar *src, int32_t count);
* @return A pointer to <code>dest</code>.
* @stable ICU 2.0
*/
U_CAPI UChar* U_EXPORT2
U_STABLE UChar* U_EXPORT2
u_memset(UChar *dest, UChar c, int32_t count);
/**
@ -773,7 +773,7 @@ u_memset(UChar *dest, UChar c, int32_t count);
* When buf1 > buf2, a positive number is returned.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_memcmp(const UChar *buf1, const UChar *buf2, int32_t count);
/**
@ -789,7 +789,7 @@ u_memcmp(const UChar *buf1, const UChar *buf2, int32_t count);
* in code point order
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_memcmpCodePointOrder(const UChar *s1, const UChar *s2, int32_t count);
/**
@ -809,7 +809,7 @@ u_memcmpCodePointOrder(const UChar *s1, const UChar *s2, int32_t count);
* @see u_memchr32
* @see u_strFindFirst
*/
U_CAPI UChar* U_EXPORT2
U_STABLE UChar* U_EXPORT2
u_memchr(const UChar *s, UChar c, int32_t count);
/**
@ -829,7 +829,7 @@ u_memchr(const UChar *s, UChar c, int32_t count);
* @see u_memchr
* @see u_strFindFirst
*/
U_CAPI UChar* U_EXPORT2
U_STABLE UChar* U_EXPORT2
u_memchr32(const UChar *s, UChar32 c, int32_t count);
/**
@ -843,13 +843,13 @@ u_memchr32(const UChar *s, UChar32 c, int32_t count);
* @param count The length of the string.
* @return A pointer to the last occurrence of <code>c</code> in <code>s</code>
* or <code>NULL</code> if <code>c</code> is not in <code>s</code>.
* @draft ICU 2.4
* @stable ICU 2.4
*
* @see u_strrchr
* @see u_memrchr32
* @see u_strFindLast
*/
U_CAPI UChar* U_EXPORT2
U_STABLE UChar* U_EXPORT2
u_memrchr(const UChar *s, UChar c, int32_t count);
/**
@ -863,13 +863,13 @@ u_memrchr(const UChar *s, UChar c, int32_t count);
* @param count The length of the string.
* @return A pointer to the last occurrence of <code>c</code> in <code>s</code>
* or <code>NULL</code> if <code>c</code> is not in <code>s</code>.
* @draft ICU 2.4
* @stable ICU 2.4
*
* @see u_strrchr32
* @see u_memrchr
* @see u_strFindLast
*/
U_CAPI UChar* U_EXPORT2
U_STABLE UChar* U_EXPORT2
u_memrchr32(const UChar *s, UChar32 c, int32_t count);
/**
@ -969,7 +969,7 @@ u_memrchr32(const UChar *s, UChar32 c, int32_t count);
* @see UnicodeString#unescapeAt()
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_unescape(const char *src,
UChar *dest, int32_t destCapacity);
@ -1017,7 +1017,7 @@ U_CDECL_END
* @see UnicodeString#unescapeAt()
* @stable ICU 2.0
*/
U_CAPI UChar32 U_EXPORT2
U_STABLE UChar32 U_EXPORT2
u_unescapeAt(UNESCAPE_CHAR_AT charAt,
int32_t *offset,
int32_t length,
@ -1043,7 +1043,7 @@ u_unescapeAt(UNESCAPE_CHAR_AT charAt,
* only some of the result was written to the destination buffer.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_strToUpper(UChar *dest, int32_t destCapacity,
const UChar *src, int32_t srcLength,
const char *locale,
@ -1069,7 +1069,7 @@ u_strToUpper(UChar *dest, int32_t destCapacity,
* only some of the result was written to the destination buffer.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_strToLower(UChar *dest, int32_t destCapacity,
const UChar *src, int32_t srcLength,
const char *locale,
@ -1115,7 +1115,7 @@ u_strToLower(UChar *dest, int32_t destCapacity,
* only some of the result was written to the destination buffer.
* @stable ICU 2.1
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_strToTitle(UChar *dest, int32_t destCapacity,
const UChar *src, int32_t srcLength,
UBreakIterator *titleIter,
@ -1146,7 +1146,7 @@ u_strToTitle(UChar *dest, int32_t destCapacity,
* only some of the result was written to the destination buffer.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_strFoldCase(UChar *dest, int32_t destCapacity,
const UChar *src, int32_t srcLength,
uint32_t options,
@ -1171,7 +1171,7 @@ u_strFoldCase(UChar *dest, int32_t destCapacity,
* @return The pointer to destination buffer.
* @stable ICU 2.0
*/
U_CAPI wchar_t* U_EXPORT2
U_STABLE wchar_t* U_EXPORT2
u_strToWCS(wchar_t *dest,
int32_t destCapacity,
int32_t *pDestLength,
@ -1197,7 +1197,7 @@ u_strToWCS(wchar_t *dest,
* @return The pointer to destination buffer.
* @stable ICU 2.0
*/
U_CAPI UChar* U_EXPORT2
U_STABLE UChar* U_EXPORT2
u_strFromWCS(UChar *dest,
int32_t destCapacity,
int32_t *pDestLength,
@ -1223,7 +1223,7 @@ u_strFromWCS(UChar *dest,
* @return The pointer to destination buffer.
* @stable ICU 2.0
*/
U_CAPI char* U_EXPORT2
U_STABLE char* U_EXPORT2
u_strToUTF8(char *dest,
int32_t destCapacity,
int32_t *pDestLength,
@ -1250,7 +1250,7 @@ u_strToUTF8(char *dest,
* @return The pointer to destination buffer.
* @stable ICU 2.0
*/
U_CAPI UChar* U_EXPORT2
U_STABLE UChar* U_EXPORT2
u_strFromUTF8(UChar *dest,
int32_t destCapacity,
int32_t *pDestLength,
@ -1277,7 +1277,7 @@ u_strFromUTF8(UChar *dest,
* @return The pointer to destination buffer.
* @stable ICU 2.0
*/
U_CAPI UChar32* U_EXPORT2
U_STABLE UChar32* U_EXPORT2
u_strToUTF32(UChar32 *dest,
int32_t destCapacity,
int32_t *pDestLength,
@ -1304,7 +1304,7 @@ u_strToUTF32(UChar32 *dest,
* @return The pointer to destination buffer.
* @stable ICU 2.0
*/
U_CAPI UChar* U_EXPORT2
U_STABLE UChar* U_EXPORT2
u_strFromUTF32(UChar *dest,
int32_t destCapacity,
int32_t *pDestLength,

View file

@ -90,7 +90,7 @@
* Compound statements (curly braces {}) must be used for if-else-while...
* bodies and all macro statements should be terminated with semicolon.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
#ifndef __UTF_H__
@ -102,7 +102,7 @@
* ANSI C headers:
* stddef.h defines wchar_t
*/
#include "unicode/umachine.h"
#include "unicode/utypes.h"
#include <stddef.h>
/* include the utfXX.h after the following definitions */
@ -197,7 +197,7 @@
* That is, the definition of UChar32 was platform-dependent.
*
* @see U_SENTINEL
* @draft ICU 2.4
* @stable ICU 2.4
*/
typedef int32_t UChar32;
@ -219,7 +219,7 @@ typedef int32_t UChar32;
*
* @return -1
* @see UChar32
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U_SENTINEL (-1)
@ -227,7 +227,7 @@ typedef int32_t UChar32;
* Is this code point a Unicode noncharacter?
* @param c 32-bit code point
* @return TRUE or FALSE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U_IS_UNICODE_NONCHAR(c) \
((c)>=0xfdd0 && \
@ -249,7 +249,7 @@ typedef int32_t UChar32;
*
* @param c 32-bit code point
* @return TRUE or FALSE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U_IS_UNICODE_CHAR(c) \
((uint32_t)(c)<0xd800 || \
@ -257,6 +257,8 @@ typedef int32_t UChar32;
(uint32_t)(c)<=0x10ffff && \
!U_IS_UNICODE_NONCHAR(c)))
#ifndef U_HIDE_DRAFT_API
/**
* Is this code point a BMP code point (U+0000..U+ffff)?
* @param c 32-bit code point
@ -273,11 +275,13 @@ typedef int32_t UChar32;
*/
#define U_IS_SUPPLEMENTARY(c) ((uint32_t)((c)-0x10000)<=0xfffff)
#endif /*U_HIDE_DRAFT_API*/
/**
* Is this code point a lead surrogate (U+d800..U+dbff)?
* @param c 32-bit code point
* @return TRUE or FALSE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
@ -285,7 +289,7 @@ typedef int32_t UChar32;
* Is this code point a trail surrogate (U+dc00..U+dfff)?
* @param c 32-bit code point
* @return TRUE or FALSE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
@ -293,7 +297,7 @@ typedef int32_t UChar32;
* Is this code point a surrogate (U+d800..U+dfff)?
* @param c 32-bit code point
* @return TRUE or FALSE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
@ -302,7 +306,7 @@ typedef int32_t UChar32;
* is it a lead surrogate?
* @param c 32-bit code point
* @return TRUE or FALSE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)

View file

@ -45,7 +45,7 @@
* Does this code unit alone encode a code point (BMP, not a surrogate)?
* @param c 16-bit code unit
* @return TRUE or FALSE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_IS_SINGLE(c) !U_IS_SURROGATE(c)
@ -53,7 +53,7 @@
* Is this code unit a lead surrogate (U+d800..U+dbff)?
* @param c 16-bit code unit
* @return TRUE or FALSE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
@ -61,7 +61,7 @@
* Is this code unit a trail surrogate (U+dc00..U+dfff)?
* @param c 16-bit code unit
* @return TRUE or FALSE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
@ -69,7 +69,7 @@
* Is this code unit a surrogate (U+d800..U+dfff)?
* @param c 16-bit code unit
* @return TRUE or FALSE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
@ -78,7 +78,7 @@
* is it a lead surrogate?
* @param c 16-bit code unit
* @return TRUE or FALSE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)
@ -97,7 +97,7 @@
* @param lead lead surrogate (U+d800..U+dbff)
* @param trail trail surrogate (U+dc00..U+dfff)
* @return supplementary code point (U+10000..U+10ffff)
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_GET_SUPPLEMENTARY(lead, trail) \
(((lead)<<10UL)+(trail)-U16_SURROGATE_OFFSET)
@ -108,7 +108,7 @@
* supplementary code point (0x10000..0x10ffff).
* @param supplementary 32-bit code point (U+10000..U+10ffff)
* @return lead surrogate (U+d800..U+dbff) for supplementary
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_LEAD(supplementary) (UChar)(((supplementary)>>10)+0xd7c0)
@ -117,7 +117,7 @@
* supplementary code point (0x10000..0x10ffff).
* @param supplementary 32-bit code point (U+10000..U+10ffff)
* @return trail surrogate (U+dc00..U+dfff) for supplementary
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
@ -126,14 +126,14 @@
* The result is not defined if c is not a Unicode code point (U+0000..U+10ffff).
* @param c 32-bit code point
* @return 1 or 2
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
/**
* The maximum number of 16-bit code units per Unicode code point (U+0000..U+10ffff).
* @return 2
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_MAX_LENGTH 2
@ -152,7 +152,7 @@
* @param i string offset
* @param c output UChar32 variable
* @see U16_GET
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_GET_UNSAFE(s, i, c) { \
(c)=(s)[i]; \
@ -183,7 +183,7 @@
* @param length string length
* @param c output UChar32 variable
* @see U16_GET_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_GET(s, start, i, length, c) { \
(c)=(s)[i]; \
@ -220,7 +220,7 @@
* @param i string offset
* @param c output UChar32 variable
* @see U16_NEXT
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_NEXT_UNSAFE(s, i, c) { \
(c)=(s)[(i)++]; \
@ -247,7 +247,7 @@
* @param length string length
* @param c output UChar32 variable
* @see U16_NEXT_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_NEXT(s, i, length, c) { \
(c)=(s)[(i)++]; \
@ -271,7 +271,7 @@
* @param i string offset
* @param c code point to append
* @see U16_APPEND
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_APPEND_UNSAFE(s, i, c) { \
if((uint32_t)(c)<=0xffff) { \
@ -297,7 +297,7 @@
* @param c code point to append
* @param isError output UBool set to TRUE if an error occurs, otherwise not modified
* @see U16_APPEND_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_APPEND(s, i, capacity, c, isError) { \
if((uint32_t)(c)<=0xffff) { \
@ -318,7 +318,7 @@
* @param s const UChar * string
* @param i string offset
* @see U16_FWD_1
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_FWD_1_UNSAFE(s, i) { \
if(U16_IS_LEAD((s)[(i)++])) { \
@ -335,7 +335,7 @@
* @param i string offset, i<length
* @param length string length
* @see U16_FWD_1_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_FWD_1(s, i, length) { \
if(U16_IS_LEAD((s)[(i)++]) && (i)<(length) && U16_IS_TRAIL((s)[i])) { \
@ -353,7 +353,7 @@
* @param i string offset
* @param n number of code points to skip
* @see U16_FWD_N
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_FWD_N_UNSAFE(s, i, n) { \
int32_t __N=(n); \
@ -374,7 +374,7 @@
* @param length string length
* @param n number of code points to skip
* @see U16_FWD_N_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_FWD_N(s, i, length, n) { \
int32_t __N=(n); \
@ -395,7 +395,7 @@
* @param s const UChar * string
* @param i string offset
* @see U16_SET_CP_START
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_SET_CP_START_UNSAFE(s, i) { \
if(U16_IS_TRAIL((s)[i])) { \
@ -415,7 +415,7 @@
* @param start starting string offset (usually 0)
* @param i string offset, start<=i
* @see U16_SET_CP_START_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_SET_CP_START(s, start, i) { \
if(U16_IS_TRAIL((s)[i]) && (i)>(start) && U16_IS_LEAD((s)[(i)-1])) { \
@ -443,7 +443,7 @@
* @param i string offset
* @param c output UChar32 variable
* @see U16_PREV
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_PREV_UNSAFE(s, i, c) { \
(c)=(s)[--(i)]; \
@ -471,7 +471,7 @@
* @param i string offset, start<=i
* @param c output UChar32 variable
* @see U16_PREV_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_PREV(s, start, i, c) { \
(c)=(s)[--(i)]; \
@ -493,7 +493,7 @@
* @param s const UChar * string
* @param i string offset
* @see U16_BACK_1
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_BACK_1_UNSAFE(s, i) { \
if(U16_IS_TRAIL((s)[--(i)])) { \
@ -511,7 +511,7 @@
* @param start starting string offset (usually 0)
* @param i string offset, start<=i
* @see U16_BACK_1_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_BACK_1(s, start, i) { \
if(U16_IS_TRAIL((s)[--(i)]) && (i)>(start) && U16_IS_LEAD((s)[(i)-1])) { \
@ -530,7 +530,7 @@
* @param i string offset
* @param n number of code points to skip
* @see U16_BACK_N
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_BACK_N_UNSAFE(s, i, n) { \
int32_t __N=(n); \
@ -552,7 +552,7 @@
* @param i string offset, i<length
* @param n number of code points to skip
* @see U16_BACK_N_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_BACK_N(s, start, i, n) { \
int32_t __N=(n); \
@ -573,7 +573,7 @@
* @param s const UChar * string
* @param i string offset
* @see U16_SET_CP_LIMIT
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_SET_CP_LIMIT_UNSAFE(s, i) { \
if(U16_IS_LEAD((s)[(i)-1])) { \
@ -594,7 +594,7 @@
* @param i string offset, start<=i<=length
* @param length string length
* @see U16_SET_CP_LIMIT_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U16_SET_CP_LIMIT(s, start, i, length) { \
if((start)<(i) && (i)<(length) && U16_IS_LEAD((s)[(i)-1]) && U16_IS_TRAIL((s)[i])) { \

View file

@ -36,6 +36,7 @@
# include "unicode/utf.h"
#endif
#ifndef __UTF8_H__
#define __UTF8_H__
@ -48,7 +49,7 @@
* @internal
*/
#ifdef U_UTF8_IMPL
U_CAPI const uint8_t
U_STABLE const uint8_t
utf8_countTrailBytes[256];
#else
U_CFUNC U_IMPORT const uint8_t /* U_IMPORT2? */ /*U_IMPORT*/
@ -71,28 +72,28 @@ utf8_countTrailBytes[256];
* Function for handling "next code point" with error-checking.
* @internal
*/
U_CAPI UChar32 U_EXPORT2
U_STABLE UChar32 U_EXPORT2
utf8_nextCharSafeBody(const uint8_t *s, int32_t *pi, int32_t length, UChar32 c, UBool strict);
/**
* Function for handling "append code point" with error-checking.
* @internal
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
utf8_appendCharSafeBody(uint8_t *s, int32_t i, int32_t length, UChar32 c, UBool *pIsError);
/**
* Function for handling "previous code point" with error-checking.
* @internal
*/
U_CAPI UChar32 U_EXPORT2
U_STABLE UChar32 U_EXPORT2
utf8_prevCharSafeBody(const uint8_t *s, int32_t start, int32_t *pi, UChar32 c, UBool strict);
/**
* Function for handling "skip backward one code point" with error-checking.
* @internal
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
/* single-code point definitions -------------------------------------------- */
@ -101,7 +102,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* Does this code unit (byte) encode a code point by itself (US-ASCII 0..0x7f)?
* @param c 8-bit code unit (byte)
* @return TRUE or FALSE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_IS_SINGLE(c) (((c)&0x80)==0)
@ -109,7 +110,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* Is this code unit (byte) a UTF-8 lead byte?
* @param c 8-bit code unit (byte)
* @return TRUE or FALSE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_IS_LEAD(c) ((uint8_t)((c)-0xc0)<0x3e)
@ -117,7 +118,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* Is this code unit (byte) a UTF-8 trail byte?
* @param c 8-bit code unit (byte)
* @return TRUE or FALSE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_IS_TRAIL(c) (((c)&0xc0)==0x80)
@ -126,7 +127,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* of this Unicode code point?
* @param c 32-bit code point
* @return 1..4, or 0 if c is a surrogate or not a Unicode code point
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_LENGTH(c) \
((uint32_t)(c)<=0x7f ? 1 : \
@ -142,7 +143,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
/**
* The maximum number of UTF-8 code units (bytes) per Unicode code point (U+0000..U+10ffff).
* @return 4
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_MAX_LENGTH 4
@ -160,7 +161,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param i string offset
* @param c output UChar32 variable
* @see U8_GET
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_GET_UNSAFE(s, i, c) { \
int32_t __I=(int32_t)(i); \
@ -184,7 +185,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param length string length
* @param c output UChar32 variable, set to <0 in case of an error
* @see U8_GET_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_GET(s, start, i, length, c) { \
int32_t __I=(int32_t)(i); \
@ -209,7 +210,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param i string offset
* @param c output UChar32 variable
* @see U8_NEXT
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_NEXT_UNSAFE(s, i, c) { \
(c)=(s)[(i)++]; \
@ -246,7 +247,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param length string length
* @param c output UChar32 variable, set to <0 in case of an error
* @see U8_NEXT_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_NEXT(s, i, length, c) { \
(c)=(s)[(i)++]; \
@ -270,7 +271,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param i string offset
* @param c code point to append
* @see U8_APPEND
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_APPEND_UNSAFE(s, i, c) { \
if((uint32_t)(c)<=0x7f) { \
@ -306,7 +307,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param c code point to append
* @param isError output UBool set to TRUE if an error occurs, otherwise not modified
* @see U8_APPEND_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_APPEND(s, i, length, c, isError) { \
if((uint32_t)(c)<=0x7f) { \
@ -324,7 +325,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param s const uint8_t * string
* @param i string offset
* @see U8_FWD_1
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_FWD_1_UNSAFE(s, i) { \
(i)+=1+U8_COUNT_TRAIL_BYTES((s)[i]); \
@ -339,7 +340,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param i string offset, i<length
* @param length string length
* @see U8_FWD_1_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_FWD_1(s, i, length) { \
uint8_t __b=(s)[(i)++]; \
@ -365,7 +366,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param i string offset
* @param n number of code points to skip
* @see U8_FWD_N
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_FWD_N_UNSAFE(s, i, n) { \
int32_t __N=(n); \
@ -386,7 +387,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param length string length
* @param n number of code points to skip
* @see U8_FWD_N_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_FWD_N(s, i, length, n) { \
int32_t __N=(n); \
@ -407,7 +408,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param s const uint8_t * string
* @param i string offset
* @see U8_SET_CP_START
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_SET_CP_START_UNSAFE(s, i) { \
while(U8_IS_TRAIL((s)[i])) { --(i); } \
@ -425,7 +426,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param start starting string offset (usually 0)
* @param i string offset, start<=i
* @see U8_SET_CP_START_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_SET_CP_START(s, start, i) { \
if(U8_IS_TRAIL((s)[(i)])) { \
@ -452,7 +453,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param i string offset
* @param c output UChar32 variable
* @see U8_PREV
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_PREV_UNSAFE(s, i, c) { \
(c)=(s)[--(i)]; \
@ -494,7 +495,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param i string offset, start<=i
* @param c output UChar32 variable, set to <0 in case of an error
* @see U8_PREV_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_PREV(s, start, i, c) { \
(c)=(s)[--(i)]; \
@ -516,7 +517,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param s const uint8_t * string
* @param i string offset
* @see U8_BACK_1
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_BACK_1_UNSAFE(s, i) { \
while(U8_IS_TRAIL((s)[--(i)])) {} \
@ -532,7 +533,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param start starting string offset (usually 0)
* @param i string offset, start<=i
* @see U8_BACK_1_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_BACK_1(s, start, i) { \
if(U8_IS_TRAIL((s)[--(i)])) { \
@ -551,7 +552,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param i string offset
* @param n number of code points to skip
* @see U8_BACK_N
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_BACK_N_UNSAFE(s, i, n) { \
int32_t __N=(n); \
@ -573,7 +574,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param i string offset, i<length
* @param n number of code points to skip
* @see U8_BACK_N_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_BACK_N(s, start, i, n) { \
int32_t __N=(n); \
@ -594,7 +595,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param s const uint8_t * string
* @param i string offset
* @see U8_SET_CP_LIMIT
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_SET_CP_LIMIT_UNSAFE(s, i) { \
U8_BACK_1_UNSAFE(s, i); \
@ -614,7 +615,7 @@ utf8_back1SafeBody(const uint8_t *s, int32_t start, int32_t i);
* @param i string offset, start<=i<=length
* @param length string length
* @see U8_SET_CP_LIMIT_UNSAFE
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U8_SET_CP_LIMIT(s, start, i, length) { \
if((start)<(i) && (i)<(length)) { \

View file

@ -137,6 +137,8 @@
* @deprecated ICU 2.4. Use the macros in utf.h, utf16.h, utf8.h instead.
*/
#ifndef U_HIDE_DEPRECATED_API
/* utf.h must be included first. */
#ifndef __UTF_H__
# include "unicode/utf.h"
@ -1157,4 +1159,7 @@ typedef int32_t UTextOffset;
*/
#define UTF_SET_CHAR_LIMIT(s, start, i, length) U16_SET_CP_LIMIT(s, start, i, length)
#endif /* U_HIDE_DEPRECATED_API */
#endif

View file

@ -25,12 +25,13 @@
U_CDECL_BEGIN
#ifndef U_HIDE_DRAFT_API
/**
* Trace severity levels. Higher levels increase the verbosity of the trace output.
* @see utrace_setLevel
* @draft ICU 2.8
*/
typedef enum UTraceLevel {
/** Disable all tracing @draft ICU 2.8*/
UTRACE_OFF=-1,
@ -46,13 +47,46 @@ typedef enum UTraceLevel {
UTRACE_VERBOSE=9
} UTraceLevel;
/**
* These are the ICU functions that will be traced when tracing is enabled.
* @draft ICU 2.8
*/
typedef enum UTraceFunctionNumber {
UTRACE_FUNCTION_START=0,
UTRACE_U_INIT=UTRACE_FUNCTION_START,
UTRACE_U_CLEANUP,
UTRACE_FUNCTION_LIMIT,
UTRACE_CONVERSION_START=0x1000,
UTRACE_UCNV_OPEN=UTRACE_CONVERSION_START,
UTRACE_UCNV_OPEN_PACKAGE,
UTRACE_UCNV_OPEN_ALGORITHMIC,
UTRACE_UCNV_CLONE,
UTRACE_UCNV_CLOSE,
UTRACE_UCNV_FLUSH_CACHE,
UTRACE_UCNV_LOAD,
UTRACE_UCNV_UNLOAD,
UTRACE_CONVERSION_LIMIT,
UTRACE_COLLATION_START=0x2000,
UTRACE_UCOL_OPEN=UTRACE_COLLATION_START,
UTRACE_UCOL_CLOSE,
UTRACE_UCOL_STRCOLL,
UTRACE_UCOL_GET_SORTKEY,
UTRACE_UCOL_GETLOCALE,
UTRACE_UCOL_NEXTSORTKEYPART,
UTRACE_UCOL_STRCOLLITER,
UTRACE_COLLATION_LIMIT
} UTraceFunctionNumber;
#endif /*U_HIDE_DRAFT_API*/
/**
* Setter for the trace level.
* @param traceLevel A UTraceLevel value.
* @draft ICU 2.8
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
utrace_setLevel(int32_t traceLevel);
/**
@ -60,7 +94,7 @@ utrace_setLevel(int32_t traceLevel);
* @param traceLevel A UTraceLevel value.
* @draft ICU 2.8
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
utrace_getLevel(void);
/* Trace function pointers types ----------------------------- */
@ -134,7 +168,7 @@ UTraceData(const void *context, int32_t fnNumber, int32_t level,
*
* @draft ICU 2.8
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
utrace_setFunctions(const void *context,
UTraceEntry *e, UTraceExit *x, UTraceData *d);
@ -148,7 +182,7 @@ utrace_setFunctions(const void *context,
* @param d The currently installed UTraceData function.
* @draft ICU 2.8
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
utrace_getFunctions(const void **context,
UTraceEntry **e, UTraceExit **x, UTraceData **d);
@ -270,7 +304,7 @@ utrace_getFunctions(const void **context,
* If buffer capacity is insufficient, the required capacity is returned.
* @draft ICU 2.8
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
utrace_vformat(char *outBuf, int32_t capacity,
int32_t indent, const char *fmt, va_list args);
@ -291,7 +325,7 @@ utrace_vformat(char *outBuf, int32_t capacity,
* If buffer capacity is insufficient, the required capacity is returned.
* @draft ICU 2.8
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
utrace_format(char *outBuf, int32_t capacity,
int32_t indent, const char *fmt, ...);
@ -308,41 +342,9 @@ utrace_format(char *outBuf, int32_t capacity,
* @see UTraceFunctionNumber
* @draft ICU 2.8
*/
U_CAPI const char * U_EXPORT2
U_DRAFT const char * U_EXPORT2
utrace_functionName(int32_t fnNumber);
/**
* These are the ICU functions that will be traced when tracing is enabled.
* @draft ICU 2.8
*/
typedef enum UTraceFunctionNumber {
UTRACE_FUNCTION_START=0,
UTRACE_U_INIT=UTRACE_FUNCTION_START,
UTRACE_U_CLEANUP,
UTRACE_FUNCTION_LIMIT,
UTRACE_CONVERSION_START=0x1000,
UTRACE_UCNV_OPEN=UTRACE_CONVERSION_START,
UTRACE_UCNV_OPEN_PACKAGE,
UTRACE_UCNV_OPEN_ALGORITHMIC,
UTRACE_UCNV_CLONE,
UTRACE_UCNV_CLOSE,
UTRACE_UCNV_FLUSH_CACHE,
UTRACE_UCNV_LOAD,
UTRACE_UCNV_UNLOAD,
UTRACE_CONVERSION_LIMIT,
UTRACE_COLLATION_START=0x2000,
UTRACE_UCOL_OPEN=UTRACE_COLLATION_START,
UTRACE_UCOL_CLOSE,
UTRACE_UCOL_STRCOLL,
UTRACE_UCOL_GET_SORTKEY,
UTRACE_UCOL_GETLOCALE,
UTRACE_UCOL_NEXTSORTKEYPART,
UTRACE_UCOL_STRCOLLITER,
UTRACE_COLLATION_LIMIT
} UTraceFunctionNumber;
U_CDECL_END
#endif

View file

@ -37,7 +37,19 @@
#include "unicode/utf.h"
#include "unicode/uversion.h"
#include "unicode/uconfig.h"
#ifdef U_HIDE_DRAFT_API
#include "unicode/udraft.h"
#endif
#ifdef U_HIDE_DEPRECATED_API
#include "unicode/udeprcted.h"
#endif
#ifdef U_HIDE_DEPRECATED_API
#include "unicode/uobslete.h"
#endif
/*!
* \file
@ -406,6 +418,7 @@ typedef void* UClassID;
#define U_STANDARD_CPP_NAMESPACE
#endif
/*===========================================================================*/
/* Global delete operator */
/*===========================================================================*/
@ -716,15 +729,12 @@ typedef enum UErrorCode {
* in the UErrorCode enum above.
* @stable ICU 2.0
*/
U_CAPI const char * U_EXPORT2
U_STABLE const char * U_EXPORT2
u_errorName(UErrorCode code);
#define U_DRAFT U_CAPI
#define U_STABLE U_CAPI
#define U_INTERNAL U_CAPI
#define U_SYSTEM U_CAPI
/*===========================================================================*/
/* Include header for platform utilies */

View file

@ -41,19 +41,19 @@
/** The standard copyright notice that gets compiled into each library.
* This value will change in the subsequent releases of ICU
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U_COPYRIGHT_STRING \
" Copyright (C) 2003, International Business Machines Corporation and others. All Rights Reserved. "
/** Maximum length of the copyright string.
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U_COPYRIGHT_STRING_LENGTH 128
/** The current ICU major version as an integer.
* This value will change in the subsequent releases of ICU
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U_ICU_VERSION_MAJOR_NUM 2
@ -65,7 +65,7 @@
/** The current ICU patchlevel version as an integer.
* This value will change in the subsequent releases of ICU
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U_ICU_VERSION_PATCHLEVEL_NUM 0
@ -78,7 +78,7 @@
/** The current ICU library version as a dotted-decimal string. The patchlevel
* only appears in this string if it non-zero.
* This value will change in the subsequent releases of ICU
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U_ICU_VERSION "2.8"
@ -89,22 +89,22 @@
#define U_ICU_VERSION_SHORT "28"
/** An ICU version consists of up to 4 numbers from 0..255.
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U_MAX_VERSION_LENGTH 4
/** In a string, ICU version fields are delimited by dots.
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U_VERSION_DELIMITER '.'
/** The maximum length of an ICU version string.
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define U_MAX_VERSION_STRING_LENGTH 20
/** The binary form of a version on ICU APIs is an array of 4 uint8_t.
* @draft ICU 2.4
* @stable ICU 2.4
*/
typedef uint8_t UVersionInfo[U_MAX_VERSION_LENGTH];
@ -129,9 +129,9 @@ U_NAMESPACE_USE
* @param versionString A string with dotted-decimal version information,
* with up to four non-negative number fields with
* values of up to 255 each.
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
u_versionFromString(UVersionInfo versionArray, const char *versionString);
/**
@ -144,9 +144,9 @@ u_versionFromString(UVersionInfo versionArray, const char *versionString);
* a string corresponding to the numeric version
* information in versionArray.
* The buffer size must be at least U_MAX_VERSION_STRING_LENGTH.
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
u_versionToString(UVersionInfo versionArray, char *versionString);
/**
@ -157,7 +157,7 @@ u_versionToString(UVersionInfo versionArray, char *versionString);
* @param versionArray the version # information, the result will be filled in
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
u_getVersion(UVersionInfo versionArray);
@ -176,7 +176,7 @@ u_getVersion(UVersionInfo versionArray);
* in contractions, ignore primary ignorables after shifted
* version 5 - ICU 2.8 - changed implicit generation code
* This value may change in the subsequent releases of ICU
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define UCOL_RUNTIME_VERSION 5
@ -188,7 +188,7 @@ u_getVersion(UVersionInfo versionArray);
* version 6 - ICU 2.8 - fixed bug in builder that allowed 0xFF in primary values
* Backward compatible with the old rules.
* This value may change in the subsequent releases of ICU
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define UCOL_BUILDER_VERSION 6
@ -198,13 +198,13 @@ u_getVersion(UVersionInfo versionArray);
* supplementary code points
* Version 4 in ICU 2.2, following UCA=3.1.1d6, UCD=3.2.0
* This value may change in the subsequent releases of ICU
* @draft ICU 2.4
* @stable ICU 2.4
*/
/*#define UCOL_FRACTIONAL_UCA_VERSION 4*/
/** This is the version of the tailorings
* This value may change in the subsequent releases of ICU
* @draft ICU 2.4
* @stable ICU 2.4
*/
#define UCOL_TAILORINGS_VERSION 1

View file

@ -413,7 +413,7 @@ public:
* be set to the same time.
*
* @param other the Calendar to be compared with this Calendar
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UBool isEquivalentTo(const Calendar& other) const;

View file

@ -291,7 +291,7 @@ public:
* then the limit belongs to the range below it.
* @param formats Array of formats
* @param count Size of 'limits', 'closures', and 'formats' arrays
* @draft ICU 2.4
* @stable ICU 2.4
*/
ChoiceFormat(const double* limits,
const UBool* closures,
@ -430,7 +430,7 @@ public:
* @param closures Array of limit booleans
* @param formats Array of format string
* @param count The size of the above arrays
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual void setChoices(const double* limits,
const UBool* closures,
@ -452,7 +452,7 @@ public:
*
* @param count The size of the arrays
* @return the closures
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual const UBool* getClosures(int32_t& count) const;

View file

@ -731,7 +731,7 @@ public:
* @return a pointer to a UnicodeSet object containing all the
* code points and sequences that may sort differently than
* in the UCA. The object must be disposed of by using delete
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UnicodeSet *getTailoredSet(UErrorCode &status) const;

View file

@ -133,7 +133,7 @@ public:
* the DateTimePatterns resource. There are 4 time patterns, 4 date patterns,
* and then the date-time pattern. Each block of 4 values in the resource occurs
* in the order full, long, medium, short.
* @draft ICU 2.4
* @stable ICU 2.4
*/
enum EStyle
{
@ -558,7 +558,7 @@ protected:
* The calendar that DateFormat uses to produce the time field values needed
* to implement date/time formatting. Subclasses should generally initialize
* this to the default calendar for the locale associated with this DateFormat.
* @draft ICU 2.4
* @stable ICU 2.4
*/
Calendar* fCalendar;
@ -566,7 +566,7 @@ protected:
* The number formatter that DateFormat uses to format numbers in dates and
* times. Subclasses should generally initialize this to the default number
* format for the locale associated with this DateFormat.
* @draft ICU 2.4
* @stable ICU 2.4
*/
NumberFormat* fNumberFormat;

View file

@ -555,7 +555,7 @@ class U_I18N_API DecimalFormat: public NumberFormat {
public:
/**
* Rounding mode.
* @draft ICU 2.4
* @stable ICU 2.4
*/
enum ERoundingMode {
kRoundCeiling, /**< Round towards positive infinity */
@ -573,7 +573,7 @@ public:
/**
* Pad position.
* @draft ICU 2.4
* @stable ICU 2.4
*/
enum EPadPosition {
kPadBeforePrefix,
@ -1268,7 +1268,7 @@ public:
* @see setSecondaryGroupingSize
* @see NumberFormat::isGroupingUsed
* @see DecimalFormatSymbols::getGroupingSeparator
* @draft ICU 2.4
* @stable ICU 2.4
*/
int32_t getSecondaryGroupingSize(void) const;
@ -1281,7 +1281,7 @@ public:
* @see getSecondaryGroupingSize
* @see NumberFormat#setGroupingUsed
* @see DecimalFormatSymbols::setGroupingSeparator
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual void setSecondaryGroupingSize(int32_t newValue);
@ -1748,11 +1748,11 @@ private:
protected:
/** number of integer digits
* @draft ICU 2.4
* @stable ICU 2.4
*/
static const int32_t kDoubleIntegerDigits;
/** number of fraction digits
* @draft ICU 2.4
* @stable ICU 2.4
*/
static const int32_t kDoubleFractionDigits;

View file

@ -49,13 +49,13 @@ public:
* since UDate is currently typedefed to be either double or long.
* If UDate is changed later to be a bonafide class
* or struct, then we no longer need this enum.
* @draft ICU 2.4
* @stable ICU 2.4
*/
enum ISDATE { kIsDate };
/**
* Default constructor
* @draft ICU 2.4
* @stable ICU 2.4
*/
Formattable(); // Type kLong, value 0
@ -169,18 +169,18 @@ public:
/**
* The list of possible data types of this Formattable object.
* @draft ICU 2.4
* @stable ICU 2.4
*/
enum Type {
/** @draft ICU 2.4 */
/** @stable ICU 2.4 */
kDate, // Date
/** @draft ICU 2.4 */
/** @stable ICU 2.4 */
kDouble, // double
/** @draft ICU 2.4 */
/** @stable ICU 2.4 */
kLong, // long
/** @draft ICU 2.4 */
/** @stable ICU 2.4 */
kString, // UnicodeString
/** @draft ICU 2.4 */
/** @stable ICU 2.4 */
kArray, // Formattable[]
/** @draft ICU 2.8 */
kInt64 // int64

View file

@ -95,7 +95,7 @@ class U_I18N_API Format : public UObject {
public:
/** Destructor
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual ~Format();
@ -280,7 +280,7 @@ protected:
* @param pattern The pattern to copy into the parseError
* @param pos The position in pattern where the error occured
* @param parseError The UParseError object to fill in
* @draft ICU 2.4
* @stable ICU 2.4
*/
static void syntaxError(const UnicodeString& pattern,
int32_t pos,

View file

@ -338,7 +338,7 @@ public:
* one. Calendar override.
*
* @param other the Calendar to be compared with this Calendar
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UBool isEquivalentTo(const Calendar& other) const;

View file

@ -70,7 +70,7 @@ class RegexCImpl;
* @internal
*/
#ifdef REGEX_DEBUG
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
RegexPatternDump(const RegexPattern *pat);
#else
#define RegexPatternDump(pat)
@ -87,7 +87,7 @@ U_CAPI void U_EXPORT2
*
* <p>Class RegexPattern is not intended to be subclassed.</p>
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
class U_I18N_API RegexPattern: public UObject {
public:
@ -97,21 +97,21 @@ public:
* pattern. Not normally needed; RegexPattern objects are usually
* created using the factory method <code>compile()</code>.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
RegexPattern();
/**
* Copy Constructor. Create a new RegexPattern object that is equivalent
* to the source object.
* @draft ICU 2.4
* @stable ICU 2.4
*/
RegexPattern(const RegexPattern &source);
/**
* Destructor. Note that a RegexPattern object must persist so long as any
* RegexMatcher objects that were created from the RegexPattern are active.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual ~RegexPattern();
@ -121,7 +121,7 @@ public:
* settings.
* @param that a RegexPattern object to compare with "this".
* @return TRUE if the objects are equivalent.
* @draft ICU 2.4
* @stable ICU 2.4
*/
UBool operator==(const RegexPattern& that) const;
@ -131,14 +131,14 @@ public:
* settings.
* @param that a RegexPattern object to compare with "this".
* @return TRUE if the objects are different.
* @draft ICU 2.4
* @stable ICU 2.4
*/
inline UBool operator!=(const RegexPattern& that) const {return ! operator ==(that);};
/**
* Assignment operator. After assignment, this RegexPattern will behave identically
* to the source object.
* @draft ICU 2.4
* @stable ICU 2.4
*/
RegexPattern &operator =(const RegexPattern &source);
@ -147,7 +147,7 @@ public:
* intended to be subclasses, <code>clone()</code> and the copy construction are
* equivalent operations.
* @return the copy of this RegexPattern
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual RegexPattern *clone() const;
@ -170,7 +170,7 @@ public:
* @param status A reference to a UErrorCode to receive any errors.
* @return A regexPattern object for the compiled pattern.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
static RegexPattern *compile( const UnicodeString &regex,
UParseError &pe,
@ -194,7 +194,7 @@ public:
* @param status A reference to a UErrorCode to receive any errors.
* @return A regexPattern object for the compiled pattern.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
static RegexPattern *compile( const UnicodeString &regex,
uint32_t flags,
@ -228,7 +228,7 @@ public:
/**
* Get the match mode flags that were used when compiling this pattern.
* @return the match mode flags
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual uint32_t flags() const;
@ -242,7 +242,7 @@ public:
* @param status A reference to a UErrorCode to receive any errors.
* @return A RegexMatcher object for this pattern and input.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual RegexMatcher *matcher(const UnicodeString &input,
UErrorCode &status) const;
@ -274,7 +274,7 @@ public:
* @param status A reference to a UErrorCode to receive any errors.
* @return True if the regular expression exactly matches the full input string.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
static UBool matches(const UnicodeString &regex,
const UnicodeString &input,
@ -284,7 +284,7 @@ public:
/**
* Returns the regular expression from which this pattern was compiled.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UnicodeString pattern() const;
@ -312,7 +312,7 @@ public:
* field delimiters, is placed in the last destination string.
* @param status A reference to a UErrorCode to receive any errors.
* @return The number of fields into which the input string was split.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual int32_t split(const UnicodeString &input,
UnicodeString dest[],
@ -323,14 +323,14 @@ public:
/**
* ICU "poor man's RTTI", returns a UClassID for the actual class.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UClassID getDynamicClassID() const;
/**
* ICU "poor man's RTTI", returns a UClassID for this class.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
static UClassID getStaticClassID();
@ -407,7 +407,7 @@ private:
*
* <p>Class RegexMatcher is not intended to be subclassed.</p>
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
class U_I18N_API RegexMatcher: public UObject {
public:
@ -450,7 +450,7 @@ public:
/**
* Destructor.
*
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual ~RegexMatcher();
@ -459,7 +459,7 @@ public:
* Attempts to match the entire input string against the pattern.
* @param status A reference to a UErrorCode to receive any errors.
* @return TRUE if there is a match
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UBool matches(UErrorCode &status);
@ -486,7 +486,7 @@ public:
*
* @param status A reference to a UErrorCode to receive any errors.
* @return TRUE if there is a match at the start of the input string.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UBool lookingAt(UErrorCode &status);
@ -516,7 +516,7 @@ public:
* use find(startPos, status) instead of find(), because the saved starting
* position may not be valid with the altered input string.</p>
* @return TRUE if a match is found.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UBool find();
@ -528,7 +528,7 @@ public:
* @param start the position in the input string to begin the search
* @param status A reference to a UErrorCode to receive any errors.
* @return TRUE if a match is found.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UBool find(int32_t start, UErrorCode &status);
@ -540,7 +540,7 @@ public:
* Possible errors are U_REGEX_INVALID_STATE if no match
* has been attempted or the last match failed.
* @return a string containing the matched input text.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UnicodeString group(UErrorCode &status) const;
@ -555,7 +555,7 @@ public:
* has been attempted or the last match failed and
* U_INDEX_OUTOFBOUNDS_ERROR for a bad capture group number.
* @return the captured text
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UnicodeString group(int32_t groupNum, UErrorCode &status) const;
@ -563,7 +563,7 @@ public:
/**
* Returns the number of capturing groups in this matcher's pattern.
* @return the number of capture groups
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual int32_t groupCount() const;
@ -573,7 +573,7 @@ public:
* during the previous match operation.
* @param status a reference to a UErrorCode to receive any errors.
* @return The position in the input string of the start of the last match.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual int32_t start(UErrorCode &status) const;
@ -589,7 +589,7 @@ public:
* attempted or the last match failed, and
* U_INDEX_OUTOFBOUNDS_ERROR for a bad capture group number
* @return the start position of substring matched by the specified group.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual int32_t start(int group, UErrorCode &status) const;
@ -601,7 +601,7 @@ public:
* errors are U_REGEX_INVALID_STATE if no match has been
* attempted or the last match failed.
* @return the index of the last character matched, plus one.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual int32_t end(UErrorCode &status) const;
@ -617,7 +617,7 @@ public:
* @return the index of the last character, plus one, of the text
* captured by the specifed group during the previous match operation.
* Return -1 if the capture group was not part of the match.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual int32_t end(int group, UErrorCode &status) const;
@ -628,7 +628,7 @@ public:
* the input string.
*
* @return this RegexMatcher.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual RegexMatcher &reset();
@ -650,7 +650,7 @@ public:
* to be reused, which is more efficient than creating a new RegexMatcher for
* each input string to be processed.
* @return this RegexMatcher.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual RegexMatcher &reset(const UnicodeString &input);
@ -659,7 +659,7 @@ public:
* Returns the input string being matched. The returned string is not a copy,
* but the live input string. It should not be altered or deleted.
* @return the input string
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual const UnicodeString &input() const;
@ -667,7 +667,7 @@ public:
/**
* Returns the pattern that is interpreted by this matcher.
* @return the RegexPattern for this RegexMatcher
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual const RegexPattern &pattern() const;
@ -686,7 +686,7 @@ public:
* @param replacement a string containing the replacement text.
* @param status a reference to a UErrorCode to receive any errors.
* @return a string containing the results of the find and replace.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UnicodeString replaceAll(const UnicodeString &replacement, UErrorCode &status);
@ -709,7 +709,7 @@ public:
* @param replacement a string containing the replacement text.
* @param status a reference to a UErrorCode to receive any errors.
* @return a string containing the results of the find and replace.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UnicodeString replaceFirst(const UnicodeString &replacement, UErrorCode &status);
@ -737,7 +737,7 @@ public:
* does not exist in the pattern.
*
* @return this RegexMatcher
* @draft ICU 2.4
* @stable ICU 2.4
*
*/
virtual RegexMatcher &appendReplacement(UnicodeString &dest,
@ -752,7 +752,7 @@ public:
*
* @param dest A UnicodeString to which the results of the find-and-replace are appended.
* @return the destination string.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UnicodeString &appendTail(UnicodeString &dest);

View file

@ -552,7 +552,7 @@ public:
* @return a pointer to a UnicodeSet object containing all the
* code points and sequences that may sort differently than
* in the UCA. The object must be disposed of by using delete
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UnicodeSet *getTailoredSet(UErrorCode &status) const;

View file

@ -143,7 +143,7 @@ public:
* all strings that createTimeZone() accepts)
*
* @return an enumeration object, owned by the caller.
* @draft ICU 2.4
* @stable ICU 2.4
*/
static StringEnumeration* createEnumeration();
@ -162,7 +162,7 @@ public:
* @param rawOffset an offset from GMT in milliseconds, ignoring
* the effect of daylight savings time, if any
* @return an enumeration object, owned by the caller
* @draft ICU 2.4
* @stable ICU 2.4
*/
static StringEnumeration* createEnumeration(int32_t rawOffset);
@ -174,7 +174,7 @@ public:
* @param country The ISO 3166 two-letter country code, or NULL to
* retrieve zones not affiliated with any country.
* @return an enumeration object, owned by the caller
* @draft ICU 2.4
* @stable ICU 2.4
*/
static StringEnumeration* createEnumeration(const char* country);
@ -459,17 +459,17 @@ public:
/**
* Enum for use with getDisplayName
* @draft ICU 2.4
* @stable ICU 2.4
*/
enum EDisplayType {
/**
* Selector for short display name
* @draft ICU 2.4
* @stable ICU 2.4
*/
SHORT = 1,
/**
* Selector for long display name
* @draft ICU 2.4
* @stable ICU 2.4
*/
LONG
};

View file

@ -256,17 +256,17 @@ private:
/**
* A context integer or pointer for a factory function, passed by
* value.
* @draft ICU 2.4
* @stable ICU 2.4
*/
union Token {
/**
* This token, interpreted as a 32-bit integer.
* @draft ICU 2.4
* @stable ICU 2.4
*/
int32_t integer;
/**
* This token, interpreted as a native pointer.
* @draft ICU 2.4
* @stable ICU 2.4
*/
void* pointer;
};
@ -298,7 +298,7 @@ private:
* @param context a context pointer that will be stored and
* later passed to the factory function when an ID matching
* the registration ID is being instantiated with this factory.
* @draft ICU 2.4
* @stable ICU 2.4
*/
typedef Transliterator* (*Factory)(const UnicodeString& ID, Token context);
@ -311,19 +311,19 @@ protected:
* <tt>filter.contains()</tt> returns <tt>false</tt> will not be
* altered by this transliterator. If <tt>filter</tt> is
* <tt>null</tt> then no filtering is applied.
* @draft ICU 2.4
* @stable ICU 2.4
*/
Transliterator(const UnicodeString& ID, UnicodeFilter* adoptedFilter);
/**
* Copy constructor.
* @draft ICU 2.4
* @stable ICU 2.4
*/
Transliterator(const Transliterator&);
/**
* Assignment operator.
* @draft ICU 2.4
* @stable ICU 2.4
*/
Transliterator& operator=(const Transliterator&);
@ -336,7 +336,7 @@ protected:
* NULL to leave the ID unchanged
* @return a newly created Transliterator or null if the ID is
* invalid.
* @draft ICU 2.4
* @stable ICU 2.4
*/
static Transliterator* createBasicInstance(const UnicodeString& id,
const UnicodeString* canon);
@ -613,7 +613,7 @@ protected:
* <code>pos.limit</code>.
*
* @see #transliterate
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual void handleTransliterate(Replaceable& text,
UTransPosition& pos,
@ -628,7 +628,7 @@ protected:
* @param incremental if TRUE, then assume more characters may be inserted
* at index.limit, and postpone processing to accomodate future incoming
* characters
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual void filteredTransliterate(Replaceable& text,
UTransPosition& index,
@ -694,7 +694,7 @@ protected:
* Method for subclasses to use to set the maximum context length.
* @param maxContextLength the new value to be set.
* @see #getMaximumContextLength
* @draft ICU 2.4
* @stable ICU 2.4
*/
void setMaximumContextLength(int32_t maxContextLength);
@ -765,7 +765,7 @@ public:
* <tt>NULL</tt>.
* @return the filter used by this transliterator, or <tt>NULL</tt> if this
* transliterator uses no filter.
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeFilter* orphanFilter(void);
@ -919,7 +919,7 @@ public:
* @return a reference to result
* @see #getTargetSet
* @see #handleGetSourceSet
* @draft ICU 2.4
* @stable ICU 2.4
*/
UnicodeSet& getSourceSet(UnicodeSet& result) const;
@ -935,7 +935,7 @@ public:
* @param result receives result set; previous contents lost
* @see #getSourceSet
* @see #getTargetSet
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual void handleGetSourceSet(UnicodeSet& result) const;
@ -950,7 +950,7 @@ public:
* @param result receives result set; previous contents lost
* @return a reference to result
* @see #getTargetSet
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UnicodeSet& getTargetSet(UnicodeSet& result) const;
@ -1200,7 +1200,7 @@ protected:
* Set the ID of this transliterators. Subclasses shouldn't do
* this, unless the underlying script behavior has changed.
* @param id the new id t to be set.
* @draft ICU 2.4
* @stable ICU 2.4
*/
void setID(const UnicodeString& id);

View file

@ -27,7 +27,7 @@
*
* <p>
* Types of <code>UCalendar</code> interpret a <code>UDate</code>
* according to the rules of a specific calendar system. The U_CAPI
* according to the rules of a specific calendar system. The U_STABLE
* provides the enum UCalendarType with UCAL_TRADITIONAL and
* UCAL_GREGORIAN.
* <p>
@ -254,6 +254,8 @@ enum UCalendarDateFields {
* Day of week, localized (1..7)
* @stable ICU 2.6
*/
#ifndef U_HIDE_DRAFT_API
UCAL_DOW_LOCAL,
/**
* Year of this calendar system, encompassing all supra-year fields. For example, in Gregorian/Julian calendars, positive Extended Year values indicate years AD, 1 BC = 0 extended, 2 BC = -1 extended, and so on.
@ -270,17 +272,24 @@ enum UCalendarDateFields {
* @draft ICU 2.8
*/
UCAL_MILLISECONDS_IN_DAY,
#endif /* U_HIDE_DRAFT_API */
/**
* Field count
* @stable ICU 2.6
*/
UCAL_FIELD_COUNT,
#ifndef U_HIDE_DRAFT_API
/**
* Synonym for UCAL_DATE
* @draft ICU 2.8
**/
UCAL_DAY_OF_MONTH=UCAL_DATE
#endif /*U_HIDE_DRAFT_API*/
};
/** @stable ICU 2.0 */
@ -372,7 +381,7 @@ typedef enum UCalendarAMPMs UCalendarAMPMs;
*
* @draft ICU 2.6
*/
U_CAPI UEnumeration* U_EXPORT2
U_DRAFT UEnumeration* U_EXPORT2
ucal_openTimeZones(UErrorCode* ec);
/**
@ -391,7 +400,7 @@ ucal_openTimeZones(UErrorCode* ec);
*
* @draft ICU 2.6
*/
U_CAPI UEnumeration* U_EXPORT2
U_DRAFT UEnumeration* U_EXPORT2
ucal_openCountryTimeZones(const char* country, UErrorCode* ec);
/**
@ -410,7 +419,7 @@ ucal_openCountryTimeZones(const char* country, UErrorCode* ec);
*
* @draft ICU 2.6
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
ucal_getDefaultTimeZone(UChar* result, int32_t resultCapacity, UErrorCode* ec);
/**
@ -422,7 +431,7 @@ ucal_getDefaultTimeZone(UChar* result, int32_t resultCapacity, UErrorCode* ec);
*
* @draft ICU 2.6
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
ucal_setDefaultTimeZone(const UChar* zoneID, UErrorCode* ec);
/**
@ -441,7 +450,7 @@ ucal_setDefaultTimeZone(const UChar* zoneID, UErrorCode* ec);
*
* @draft ICU 2.6
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
ucal_getDSTSavings(const UChar* zoneID, UErrorCode* ec);
/**
@ -450,7 +459,7 @@ ucal_getDSTSavings(const UChar* zoneID, UErrorCode* ec);
* @return The current date and time.
* @stable ICU 2.0
*/
U_CAPI UDate U_EXPORT2
U_STABLE UDate U_EXPORT2
ucal_getNow(void);
/**
@ -465,7 +474,7 @@ ucal_getNow(void);
* @return A pointer to a UCalendar, or 0 if an error occurred.
* @stable ICU 2.0
*/
U_CAPI UCalendar* U_EXPORT2
U_STABLE UCalendar* U_EXPORT2
ucal_open(const UChar* zoneID,
int32_t len,
const char* locale,
@ -478,7 +487,7 @@ ucal_open(const UChar* zoneID,
* @param cal The UCalendar to close.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucal_close(UCalendar *cal);
/**
@ -490,7 +499,7 @@ ucal_close(UCalendar *cal);
* @param status A pointer to an UErrorCode to receive any errors.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucal_setTimeZone(UCalendar* cal,
const UChar* zoneID,
int32_t len,
@ -527,7 +536,7 @@ typedef enum UCalendarDisplayNameType UCalendarDisplayNameType;
* @return The total buffer size needed; if greater than resultLength, the output was truncated.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucal_getTimeZoneDisplayName(const UCalendar* cal,
UCalendarDisplayNameType type,
const char* locale,
@ -543,7 +552,7 @@ ucal_getTimeZoneDisplayName(const UCalendar* cal,
* @return TRUE if cal is currently in daylight savings time, FALSE otherwise
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
ucal_inDaylightTime(const UCalendar* cal,
UErrorCode* status );
@ -574,7 +583,7 @@ typedef enum UCalendarAttribute UCalendarAttribute;
* @see ucal_setAttribute
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucal_getAttribute(const UCalendar* cal,
UCalendarAttribute attr);
@ -589,7 +598,7 @@ ucal_getAttribute(const UCalendar* cal,
* @see ucal_getAttribute
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucal_setAttribute(UCalendar* cal,
UCalendarAttribute attr,
int32_t newValue);
@ -603,7 +612,7 @@ ucal_setAttribute(UCalendar* cal,
* @see ucal_countAvailable
* @stable ICU 2.0
*/
U_CAPI const char* U_EXPORT2
U_STABLE const char* U_EXPORT2
ucal_getAvailable(int32_t index);
/**
@ -614,7 +623,7 @@ ucal_getAvailable(int32_t index);
* @see ucal_getAvailable
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucal_countAvailable(void);
/**
@ -628,7 +637,7 @@ ucal_countAvailable(void);
* @see ucal_setDateTime
* @stable ICU 2.0
*/
U_CAPI UDate U_EXPORT2
U_STABLE UDate U_EXPORT2
ucal_getMillis(const UCalendar* cal,
UErrorCode* status);
@ -643,7 +652,7 @@ ucal_getMillis(const UCalendar* cal,
* @see ucal_setDateTime
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucal_setMillis(UCalendar* cal,
UDate dateTime,
UErrorCode* status );
@ -662,7 +671,7 @@ ucal_setMillis(UCalendar* cal,
* @see ucal_setDateTime
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucal_setDate(UCalendar* cal,
int32_t year,
int32_t month,
@ -686,7 +695,7 @@ ucal_setDate(UCalendar* cal,
* @see ucal_setDate
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucal_setDateTime(UCalendar* cal,
int32_t year,
int32_t month,
@ -705,7 +714,7 @@ ucal_setDateTime(UCalendar* cal,
* @return TRUE if cal1 and cal2 are equivalent, FALSE otherwise.
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
ucal_equivalentTo(const UCalendar* cal1,
const UCalendar* cal2);
@ -724,7 +733,7 @@ ucal_equivalentTo(const UCalendar* cal1,
* @see ucal_roll
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucal_add(UCalendar* cal,
UCalendarDateFields field,
int32_t amount,
@ -745,7 +754,7 @@ ucal_add(UCalendar* cal,
* @see ucal_add
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucal_roll(UCalendar* cal,
UCalendarDateFields field,
int32_t amount,
@ -767,7 +776,7 @@ ucal_roll(UCalendar* cal,
* @see ucal_clear
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucal_get(const UCalendar* cal,
UCalendarDateFields field,
UErrorCode* status );
@ -787,7 +796,7 @@ ucal_get(const UCalendar* cal,
* @see ucal_clear
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucal_set(UCalendar* cal,
UCalendarDateFields field,
int32_t value);
@ -807,7 +816,7 @@ ucal_set(UCalendar* cal,
* @see ucal_clear
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
ucal_isSet(const UCalendar* cal,
UCalendarDateFields field);
@ -825,7 +834,7 @@ ucal_isSet(const UCalendar* cal,
* @see ucal_clear
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucal_clearField(UCalendar* cal,
UCalendarDateFields field);
@ -839,7 +848,7 @@ ucal_clearField(UCalendar* cal,
* @see ucal_clearField
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucal_clear(UCalendar* calendar);
/**
@ -878,7 +887,7 @@ typedef enum UCalendarLimitType UCalendarLimitType;
* @return The requested value.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucal_getLimit(const UCalendar* cal,
UCalendarDateFields field,
UCalendarLimitType type,
@ -895,7 +904,7 @@ ucal_getLimit(const UCalendar* cal,
* @see ucal_countAvailableTZIDs
* @obsolete ICU 2.8. Use ucal_openTimeZoneEnumeration instead since this API will be removed in that release.
*/
U_CAPI const UChar* U_EXPORT2
U_OBSOLETE const UChar* U_EXPORT2
ucal_getAvailableTZIDs(int32_t rawOffset,
int32_t index,
UErrorCode* status);
@ -909,7 +918,7 @@ ucal_getAvailableTZIDs(int32_t rawOffset,
* @see ucal_getAvailableTZIDs
* @obsolete ICU 2.8. Use ucal_openTimeZoneEnumeration instead since this API will be removed in that release.
*/
U_CAPI int32_t U_EXPORT2
U_OBSOLETE int32_t U_EXPORT2
ucal_countAvailableTZIDs(int32_t rawOffset);
#endif
@ -920,7 +929,7 @@ ucal_countAvailableTZIDs(int32_t rawOffset);
* @return the locale name
* @draft ICU 2.8 likely to change in ICU 3.0, based on feedback
*/
U_CAPI const char * U_EXPORT2
U_DRAFT const char * U_EXPORT2
ucal_getLocaleByType(const UCalendar *cal, ULocDataLocaleType type, UErrorCode* status);
#endif /* #if !UCONFIG_NO_FORMATTING */

View file

@ -265,7 +265,7 @@ typedef enum {
* @see ucol_close
* @stable ICU 2.0
*/
U_CAPI UCollator* U_EXPORT2
U_STABLE UCollator* U_EXPORT2
ucol_open(const char *loc, UErrorCode *status);
/**
@ -293,7 +293,7 @@ ucol_open(const char *loc, UErrorCode *status);
* @see ucol_close
* @stable ICU 2.0
*/
U_CAPI UCollator* U_EXPORT2
U_STABLE UCollator* U_EXPORT2
ucol_openRules( const UChar *rules,
int32_t rulesLength,
UColAttributeValue normalizationMode,
@ -311,7 +311,7 @@ ucol_openRules( const UChar *rules,
* @see ucol_safeClone
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucol_close(UCollator *coll);
/**
@ -329,7 +329,7 @@ ucol_close(UCollator *coll);
* @see ucol_equal
* @stable ICU 2.0
*/
U_CAPI UCollationResult U_EXPORT2
U_STABLE UCollationResult U_EXPORT2
ucol_strcoll( const UCollator *coll,
const UChar *source,
int32_t sourceLength,
@ -350,7 +350,7 @@ ucol_strcoll( const UCollator *coll,
* @see ucol_equal
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
ucol_greater(const UCollator *coll,
const UChar *source, int32_t sourceLength,
const UChar *target, int32_t targetLength);
@ -369,7 +369,7 @@ ucol_greater(const UCollator *coll,
* @see ucol_equal
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
ucol_greaterOrEqual(const UCollator *coll,
const UChar *source, int32_t sourceLength,
const UChar *target, int32_t targetLength);
@ -388,7 +388,7 @@ ucol_greaterOrEqual(const UCollator *coll,
* @see ucol_greaterOrEqual
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
ucol_equal(const UCollator *coll,
const UChar *source, int32_t sourceLength,
const UChar *target, int32_t targetLength);
@ -405,7 +405,7 @@ ucol_equal(const UCollator *coll,
* @see ucol_strcoll
* @draft ICU 2.6
*/
U_CAPI UCollationResult U_EXPORT2
U_DRAFT UCollationResult U_EXPORT2
ucol_strcollIter( const UCollator *coll,
UCharIterator *sIter,
UCharIterator *tIter,
@ -420,7 +420,7 @@ ucol_strcollIter( const UCollator *coll,
* @see ucol_setStrength
* @stable ICU 2.0
*/
U_CAPI UCollationStrength U_EXPORT2
U_STABLE UCollationStrength U_EXPORT2
ucol_getStrength(const UCollator *coll);
/**
@ -432,7 +432,7 @@ ucol_getStrength(const UCollator *coll);
* @see ucol_getStrength
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucol_setStrength(UCollator *coll,
UCollationStrength strength);
@ -448,7 +448,7 @@ ucol_setStrength(UCollator *coll,
* the output was truncated.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucol_getDisplayName( const char *objLoc,
const char *dispLoc,
UChar *result,
@ -464,7 +464,7 @@ ucol_getDisplayName( const char *objLoc,
* @see ucol_countAvailable
* @stable ICU 2.0
*/
U_CAPI const char* U_EXPORT2
U_STABLE const char* U_EXPORT2
ucol_getAvailable(int32_t index);
/**
@ -475,7 +475,7 @@ ucol_getAvailable(int32_t index);
* @see ucol_getAvailable
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucol_countAvailable(void);
/**
@ -486,7 +486,7 @@ ucol_countAvailable(void);
* @return The collation rules.
* @stable ICU 2.0
*/
U_CAPI const UChar* U_EXPORT2
U_STABLE const UChar* U_EXPORT2
ucol_getRules( const UCollator *coll,
int32_t *length);
@ -502,7 +502,7 @@ ucol_getRules( const UCollator *coll,
* @see ucol_keyHashCode
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucol_getSortKey(const UCollator *coll,
const UChar *source,
int32_t sourceLength,
@ -530,7 +530,7 @@ ucol_getSortKey(const UCollator *coll,
* the sort key.
* @draft ICU 2.6
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
ucol_nextSortKeyPart(const UCollator *coll,
UCharIterator *iter,
uint32_t state[2],
@ -591,7 +591,7 @@ typedef enum {
* @see ucol_keyHashCode
* @stable ICU 2.1
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucol_getBound(const uint8_t *source,
int32_t sourceLength,
UColBoundMode boundType,
@ -608,7 +608,7 @@ ucol_getBound(const uint8_t *source,
* @param info the version # information, the result will be filled in
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucol_getVersion(const UCollator* coll, UVersionInfo info);
/**
@ -618,7 +618,7 @@ ucol_getVersion(const UCollator* coll, UVersionInfo info);
* @param info the version # information, the result will be filled in
* @draft ICU 2.8
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
ucol_getUCAVersion(const UCollator* coll, UVersionInfo info);
/**
@ -643,7 +643,7 @@ ucol_getUCAVersion(const UCollator* coll, UVersionInfo info);
* src1Length+src2Length-1
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE 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);
@ -659,7 +659,7 @@ ucol_mergeSortkeys(const uint8_t *src1, int32_t src1Length,
* @see ucol_getAttribute
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucol_setAttribute(UCollator *coll, UColAttribute attr, UColAttributeValue value, UErrorCode *status);
/**
@ -673,7 +673,7 @@ ucol_setAttribute(UCollator *coll, UColAttribute attr, UColAttributeValue value,
* @see ucol_setAttribute
* @stable ICU 2.0
*/
U_CAPI UColAttributeValue U_EXPORT2
U_STABLE UColAttributeValue U_EXPORT2
ucol_getAttribute(const UCollator *coll, UColAttribute attr, UErrorCode *status);
/** Variable top
@ -695,7 +695,7 @@ ucol_getAttribute(const UCollator *coll, UColAttribute attr, UErrorCode *status)
* @see ucol_restoreVariableTop
* @stable ICU 2.0
*/
U_CAPI uint32_t U_EXPORT2
U_STABLE uint32_t U_EXPORT2
ucol_setVariableTop(UCollator *coll,
const UChar *varTop, int32_t len,
UErrorCode *status);
@ -711,7 +711,7 @@ ucol_setVariableTop(UCollator *coll,
* @see ucol_restoreVariableTop
* @stable ICU 2.0
*/
U_CAPI uint32_t U_EXPORT2 ucol_getVariableTop(const UCollator *coll, UErrorCode *status);
U_STABLE uint32_t U_EXPORT2 ucol_getVariableTop(const UCollator *coll, UErrorCode *status);
/**
* Sets the variable top to a collation element value supplied. Variable top is
@ -724,7 +724,7 @@ U_CAPI uint32_t U_EXPORT2 ucol_getVariableTop(const UCollator *coll, UErrorCode
* @see ucol_setVariableTop
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucol_restoreVariableTop(UCollator *coll, const uint32_t varTop, UErrorCode *status);
/**
@ -749,7 +749,7 @@ ucol_restoreVariableTop(UCollator *coll, const uint32_t varTop, UErrorCode *stat
* @see ucol_close
* @stable ICU 2.0
*/
U_CAPI UCollator* U_EXPORT2
U_STABLE UCollator* U_EXPORT2
ucol_safeClone(const UCollator *coll,
void *stackBuffer,
int32_t *pBufferSize,
@ -771,7 +771,7 @@ ucol_safeClone(const UCollator *coll,
* @return current rules
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, UChar *buffer, int32_t bufferLen);
/**
@ -788,7 +788,7 @@ ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, UChar *buffer, int3
* NULL.
* @deprecated ICU 2.8 Use ucol_getLocaleByType instead
*/
U_CAPI const char * U_EXPORT2
U_DEPRECATED const char * U_EXPORT2
ucol_getLocale(const UCollator *coll, ULocDataLocaleType type, UErrorCode *status);
@ -806,7 +806,7 @@ ucol_getLocale(const UCollator *coll, ULocDataLocaleType type, UErrorCode *statu
* NULL.
* @draft ICU 2.8 likely to change in ICU 3.0, based on feedback
*/
U_CAPI const char * U_EXPORT2
U_DRAFT const char * U_EXPORT2
ucol_getLocaleByType(const UCollator *coll, ULocDataLocaleType type, UErrorCode *status);
/**
@ -817,9 +817,9 @@ ucol_getLocaleByType(const UCollator *coll, ULocDataLocaleType type, UErrorCode
* @return a pointer to newly created USet. Must be be disposed by using uset_close
* @see ucol_openRules
* @see uset_close
* @draft ICU 2.4
* @stable ICU 2.4
*/
U_CAPI USet * U_EXPORT2
U_STABLE USet * U_EXPORT2
ucol_getTailoredSet(const UCollator *coll, UErrorCode *status);
#endif /* #if !UCONFIG_NO_COLLATION */

View file

@ -107,7 +107,7 @@ typedef struct UCollationElements UCollationElements;
* @return a struct containing collation element information
* @stable ICU 2.0
*/
U_CAPI UCollationElements* U_EXPORT2
U_STABLE UCollationElements* U_EXPORT2
ucol_openElements(const UCollator *coll,
const UChar *text,
int32_t textLength,
@ -120,7 +120,7 @@ ucol_openElements(const UCollator *coll,
* @return the hash code.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucol_keyHashCode(const uint8_t* key, int32_t length);
/**
@ -129,7 +129,7 @@ ucol_keyHashCode(const uint8_t* key, int32_t length);
* @param elems The UCollationElements to close.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucol_closeElements(UCollationElements *elems);
/**
@ -141,7 +141,7 @@ ucol_closeElements(UCollationElements *elems);
* @see ucol_previous
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucol_reset(UCollationElements *elems);
/**
@ -153,7 +153,7 @@ ucol_reset(UCollationElements *elems);
* if an error has occured or if the end of string has been reached
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucol_next(UCollationElements *elems, UErrorCode *status);
/**
@ -172,7 +172,7 @@ ucol_next(UCollationElements *elems, UErrorCode *status);
* been reached.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucol_previous(UCollationElements *elems, UErrorCode *status);
/**
@ -186,7 +186,7 @@ ucol_previous(UCollationElements *elems, UErrorCode *status);
* expansion sequence
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucol_getMaxExpansion(const UCollationElements *elems, int32_t order);
/**
@ -201,7 +201,7 @@ ucol_getMaxExpansion(const UCollationElements *elems, int32_t order);
* @see ucol_getText
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucol_setText( UCollationElements *elems,
const UChar *text,
int32_t textLength,
@ -216,7 +216,7 @@ ucol_setText( UCollationElements *elems,
* @see ucol_setOffset
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
ucol_getOffset(const UCollationElements *elems);
/**
@ -231,7 +231,7 @@ ucol_getOffset(const UCollationElements *elems);
* @see ucol_getOffset
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
ucol_setOffset(UCollationElements *elems,
int32_t offset,
UErrorCode *status);
@ -242,7 +242,7 @@ ucol_setOffset(UCollationElements *elems,
* @return the primary order of a collation order.
* @draft ICU 2.6
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
ucol_primaryOrder (int32_t order);
/**
@ -251,7 +251,7 @@ ucol_primaryOrder (int32_t order);
* @return the secondary order of a collation order.
* @draft ICU 2.6
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
ucol_secondaryOrder (int32_t order);
/**
@ -260,7 +260,7 @@ ucol_secondaryOrder (int32_t order);
* @return the tertiary order of a collation order.
* @draft ICU 2.6
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
ucol_tertiaryOrder (int32_t order);
#endif /* #if !UCONFIG_NO_COLLATION */

View file

@ -4,7 +4,7 @@
* Corporation and others. All Rights Reserved.
**********************************************************************
* $Source: /xsrl/Nsvn/icu/icu/source/i18n/unicode/ucurr.h,v $
* $Revision: 1.12 $
* $Revision: 1.13 $
**********************************************************************
*/
#ifndef _UCURR_H_
@ -48,7 +48,7 @@ typedef const void* UCurrRegistryKey;
* invalid.
* @draft ICU 2.8
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
ucurr_forLocale(const char* locale,
UChar* buff,
int32_t buffCapacity,
@ -87,7 +87,7 @@ typedef enum UCurrNameStyle {
* if there was an error.
* @draft ICU 2.6
*/
U_CAPI UCurrRegistryKey U_EXPORT2
U_DRAFT UCurrRegistryKey U_EXPORT2
ucurr_register(const UChar* isoCode,
const char* locale,
UErrorCode* status);
@ -101,7 +101,7 @@ U_CAPI UCurrRegistryKey U_EXPORT2
* @param status the in/out status code, no special meanings are assigned
* @return TRUE if the currency for this key was successfully unregistered
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
ucurr_unregister(UCurrRegistryKey key, UErrorCode* status);
/**
@ -121,7 +121,7 @@ U_CAPI UBool U_EXPORT2
* ChoiceFormat pattern. Otherwise it is a static string.
* @draft ICU 2.6
*/
U_CAPI const UChar* U_EXPORT2
U_DRAFT const UChar* U_EXPORT2
ucurr_getName(const UChar* currency,
const char* locale,
UCurrNameStyle nameStyle,
@ -138,7 +138,7 @@ ucurr_getName(const UChar* currency,
* displayed, or 0 if there is an error
* @draft ICU 3.0
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
ucurr_getDefaultFractionDigits(const UChar* currency,
UErrorCode* ec);
@ -151,7 +151,7 @@ ucurr_getDefaultFractionDigits(const UChar* currency,
* or 0.0 if there is an error
* @draft ICU 3.0
*/
U_CAPI double U_EXPORT2
U_DRAFT double U_EXPORT2
ucurr_getRoundingIncrement(const UChar* currency,
UErrorCode* ec);

View file

@ -372,7 +372,7 @@ typedef enum UDateFormatField {
* an error occurred.
* @stable ICU 2.0
*/
U_CAPI UDateFormat* U_EXPORT2
U_STABLE UDateFormat* U_EXPORT2
udat_open(UDateFormatStyle timeStyle,
UDateFormatStyle dateStyle,
const char *locale,
@ -389,7 +389,7 @@ udat_open(UDateFormatStyle timeStyle,
* @param format The formatter to close.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
udat_close(UDateFormat* format);
/**
@ -400,7 +400,7 @@ udat_close(UDateFormat* format);
* @return A pointer to a UDateFormat identical to fmt.
* @stable ICU 2.0
*/
U_CAPI UDateFormat* U_EXPORT2
U_STABLE UDateFormat* U_EXPORT2
udat_clone(const UDateFormat *fmt,
UErrorCode *status);
@ -422,7 +422,7 @@ udat_clone(const UDateFormat *fmt,
* @see UFieldPosition
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
udat_format( const UDateFormat* format,
UDate dateToFormat,
UChar* result,
@ -443,7 +443,7 @@ udat_format( const UDateFormat* format,
* @see udat_format
* @stable ICU 2.0
*/
U_CAPI UDate U_EXPORT2
U_STABLE UDate U_EXPORT2
udat_parse( const UDateFormat* format,
const UChar* text,
int32_t textLength,
@ -463,7 +463,7 @@ udat_parse( const UDateFormat* format,
* @see udat_format
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
udat_parseCalendar(const UDateFormat* format,
UCalendar* calendar,
const UChar* text,
@ -480,7 +480,7 @@ udat_parseCalendar(const UDateFormat* format,
* @see udat_setLenient
* @stable ICU 2.0
*/
U_CAPI UBool U_EXPORT2
U_STABLE UBool U_EXPORT2
udat_isLenient(const UDateFormat* fmt);
/**
@ -492,7 +492,7 @@ udat_isLenient(const UDateFormat* fmt);
* @see dat_isLenient
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
udat_setLenient( UDateFormat* fmt,
UBool isLenient);
@ -505,7 +505,7 @@ udat_setLenient( UDateFormat* fmt,
* @see udat_setCalendar
* @stable ICU 2.0
*/
U_CAPI const UCalendar* U_EXPORT2
U_STABLE const UCalendar* U_EXPORT2
udat_getCalendar(const UDateFormat* fmt);
/**
@ -517,7 +517,7 @@ udat_getCalendar(const UDateFormat* fmt);
* @see udat_setCalendar
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
udat_setCalendar( UDateFormat* fmt,
const UCalendar* calendarToSet);
@ -530,7 +530,7 @@ udat_setCalendar( UDateFormat* fmt,
* @see udat_setNumberFormat
* @stable ICU 2.0
*/
U_CAPI const UNumberFormat* U_EXPORT2
U_STABLE const UNumberFormat* U_EXPORT2
udat_getNumberFormat(const UDateFormat* fmt);
/**
@ -542,7 +542,7 @@ udat_getNumberFormat(const UDateFormat* fmt);
* @see udat_getNumberFormat
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
udat_setNumberFormat( UDateFormat* fmt,
const UNumberFormat* numberFormatToSet);
@ -555,7 +555,7 @@ udat_setNumberFormat( UDateFormat* fmt,
* @see udat_countAvailable
* @stable ICU 2.0
*/
U_CAPI const char* U_EXPORT2
U_STABLE const char* U_EXPORT2
udat_getAvailable(int32_t index);
/**
@ -566,7 +566,7 @@ udat_getAvailable(int32_t index);
* @see udat_getAvailable
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
udat_countAvailable(void);
/**
@ -579,7 +579,7 @@ udat_countAvailable(void);
* @see udat_Set2DigitYearStart
* @stable ICU 2.0
*/
U_CAPI UDate U_EXPORT2
U_STABLE UDate U_EXPORT2
udat_get2DigitYearStart( const UDateFormat *fmt,
UErrorCode *status);
@ -593,7 +593,7 @@ udat_get2DigitYearStart( const UDateFormat *fmt,
* @see udat_Set2DigitYearStart
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
udat_set2DigitYearStart( UDateFormat *fmt,
UDate d,
UErrorCode *status);
@ -610,7 +610,7 @@ udat_set2DigitYearStart( UDateFormat *fmt,
* @see udat_applyPattern
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
udat_toPattern( const UDateFormat *fmt,
UBool localized,
UChar *result,
@ -627,7 +627,7 @@ udat_toPattern( const UDateFormat *fmt,
* @see udat_toPattern
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
udat_applyPattern( UDateFormat *format,
UBool localized,
const UChar *pattern,
@ -677,7 +677,7 @@ typedef struct UDateFormatSymbols UDateFormatSymbols;
* @see udat_setSymbols
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
udat_getSymbols(const UDateFormat *fmt,
UDateFormatSymbolType type,
int32_t index,
@ -697,7 +697,7 @@ udat_getSymbols(const UDateFormat *fmt,
* @see udat_setSymbols
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
udat_countSymbols( const UDateFormat *fmt,
UDateFormatSymbolType type);
@ -716,7 +716,7 @@ udat_countSymbols( const UDateFormat *fmt,
* @see udat_countSymbols
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
udat_setSymbols( UDateFormat *format,
UDateFormatSymbolType type,
int32_t index,
@ -733,7 +733,7 @@ udat_setSymbols( UDateFormat *format,
* @return the locale name
* @draft ICU 2.8 likely to change in ICU 3.0, based on feedback
*/
U_CAPI const char* U_EXPORT2
U_DRAFT const char* U_EXPORT2
udat_getLocaleByType(const UDateFormat *fmt,
ULocDataLocaleType type,
UErrorCode* status);

View file

@ -38,10 +38,10 @@
* @return USet* The pointer to the fillIn USet object.
* @draft ICU 2.8
*/
U_CAPI USet* U_EXPORT2
U_DRAFT USet* U_EXPORT2
ulocdata_getExemplarSet(USet *fillIn, const char *localeID, UErrorCode *status);
#ifndef U_HIDE_DRAFT_API
/**
* Enumeration for representing the measurement systems.
* @draft ICU 2.8
@ -51,6 +51,7 @@ typedef enum UMeasurementSystem {
UMS_US, /** Measurement system followed in the United States of America. */
UMS_LIMIT
} UMeasurementSystem;
#endif /*U_HIDE_DRAFT_API */
/**
* Returns the measurement system used in the locale specified by the localeID.
@ -61,7 +62,7 @@ typedef enum UMeasurementSystem {
* @return UMeasurementSystem the measurement system used in the locale.
* @draft ICU 2.8
*/
U_CAPI UMeasurementSystem U_EXPORT2
U_DRAFT UMeasurementSystem U_EXPORT2
ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status);
/**
@ -79,7 +80,7 @@ ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status);
* which must not indicate a failure before the function call.
* @draft ICU 2.8
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
ulocdata_getPaperSize(const char *localeID, int32_t *height, int32_t *width, UErrorCode *status);
#endif

View file

@ -200,7 +200,7 @@
* @see u_parseMessage
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_formatMessage(const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -227,7 +227,7 @@ u_formatMessage(const char *locale,
* @see u_parseMessage
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_vformatMessage( const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -252,7 +252,7 @@ u_vformatMessage( const char *locale,
* @see u_formatMessage
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
u_parseMessage( const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -277,7 +277,7 @@ u_parseMessage( const char *locale,
* @see u_formatMessage
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
u_vparseMessage(const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -306,7 +306,7 @@ u_vparseMessage(const char *locale,
* @see u_parseMessage
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_formatMessageWithError( const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -335,7 +335,7 @@ u_formatMessageWithError( const char *locale,
* output was truncated.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
u_vformatMessageWithError( const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -363,7 +363,7 @@ u_vformatMessageWithError( const char *locale,
* @see u_formatMessage
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
u_parseMessageWithError(const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -391,7 +391,7 @@ u_parseMessageWithError(const char *locale,
* @see u_formatMessage
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
u_vparseMessageWithError(const char *locale,
const UChar *pattern,
int32_t patternLength,
@ -421,7 +421,7 @@ typedef void* UMessageFormat;
* messages, or 0 if an error occurred.
* @stable ICU 2.0
*/
U_CAPI UMessageFormat* U_EXPORT2
U_STABLE UMessageFormat* U_EXPORT2
umsg_open( const UChar *pattern,
int32_t patternLength,
const char *locale,
@ -434,7 +434,7 @@ umsg_open( const UChar *pattern,
* @param format The formatter to close.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
umsg_close(UMessageFormat* format);
/**
@ -445,7 +445,7 @@ umsg_close(UMessageFormat* format);
* @return A pointer to a UDateFormat identical to fmt.
* @stable ICU 2.0
*/
U_CAPI UMessageFormat U_EXPORT2
U_STABLE UMessageFormat U_EXPORT2
umsg_clone(const UMessageFormat *fmt,
UErrorCode *status);
@ -456,7 +456,7 @@ umsg_clone(const UMessageFormat *fmt,
* @param locale The locale the formatter should use.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
umsg_setLocale(UMessageFormat *fmt,
const char* locale);
@ -467,7 +467,7 @@ umsg_setLocale(UMessageFormat *fmt,
* @return the locale.
* @stable ICU 2.0
*/
U_CAPI const char* U_EXPORT2
U_STABLE const char* U_EXPORT2
umsg_getLocale(UMessageFormat *fmt);
/**
@ -482,7 +482,7 @@ umsg_getLocale(UMessageFormat *fmt);
* set to a failure result.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
umsg_applyPattern( UMessageFormat *fmt,
const UChar* pattern,
int32_t patternLength,
@ -500,7 +500,7 @@ umsg_applyPattern( UMessageFormat *fmt,
* @return the pattern of the format
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
umsg_toPattern(UMessageFormat *fmt,
UChar* result,
int32_t resultLength,
@ -521,7 +521,7 @@ umsg_toPattern(UMessageFormat *fmt,
* the output was truncated.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
umsg_format( UMessageFormat *fmt,
UChar *result,
int32_t resultLength,
@ -543,7 +543,7 @@ umsg_format( UMessageFormat *fmt,
* the output was truncated.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
umsg_vformat( UMessageFormat *fmt,
UChar *result,
int32_t resultLength,
@ -564,7 +564,7 @@ umsg_vformat( UMessageFormat *fmt,
* specified in pattern.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
umsg_parse( UMessageFormat *fmt,
const UChar *source,
int32_t sourceLength,
@ -587,7 +587,7 @@ umsg_parse( UMessageFormat *fmt,
* @see u_formatMessage
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
umsg_vparse(UMessageFormat *fmt,
const UChar *source,
int32_t sourceLength,
@ -605,7 +605,7 @@ umsg_vparse(UMessageFormat *fmt,
* @return the locale name
* @draft ICU 2.8 likely to change in ICU 3.0, based on feedback
*/
U_CAPI const char* U_EXPORT2
U_STABLE const char* U_EXPORT2
umsg_getLocaleByType(const UMessageFormat *fmt,
ULocDataLocaleType type,
UErrorCode* status);

View file

@ -26,7 +26,7 @@ class UnicodeSet;
*
* <p>This is a mixin class.
* @author Alan Liu
* @draft ICU 2.4
* @stable ICU 2.4
*/
class U_I18N_API UnicodeReplacer /* not : public UObject because this is an interface/mixin class */ {
@ -34,7 +34,7 @@ class U_I18N_API UnicodeReplacer /* not : public UObject because this is an inte
/**
* Destructor.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual ~UnicodeReplacer();
@ -54,7 +54,7 @@ class U_I18N_API UnicodeReplacer /* not : public UObject because this is an inte
* of a transliteration rule, at least one must update it.
* @return the number of 16-bit code units in the text replacing
* the characters at offsets start..(limit-1) in text
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual int32_t replace(Replaceable& text,
int32_t start,
@ -73,7 +73,7 @@ class U_I18N_API UnicodeReplacer /* not : public UObject because this is an inte
* \\Uxxxxxxxx. Unprintable characters are defined by
* Utility.isUnprintable().
* @return a reference to 'result'.
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual UnicodeString& toReplacerPattern(UnicodeString& result,
UBool escapeUnprintable) const = 0;
@ -82,7 +82,7 @@ class U_I18N_API UnicodeReplacer /* not : public UObject because this is an inte
* Union the set of all characters that may output by this object
* into the given set.
* @param toUnionTo the set into which to union the output characters
* @draft ICU 2.4
* @stable ICU 2.4
*/
virtual void addReplacementSetTo(UnicodeSet& toUnionTo) const = 0;
};

View file

@ -22,6 +22,7 @@
#include "unicode/parseerr.h"
#ifndef U_HIDE_DRAFT_API
struct URegularExpression;
/**
@ -31,30 +32,31 @@ struct URegularExpression;
*/
typedef struct URegularExpression URegularExpression;
#endif /* U_HIDE_DRAFT_API */
/**
* Constants for Regular Expression Match Modes.
* @draft ICU 2.4
* @stable ICU 2.4
*/
typedef enum URegexpFlag{
/** Forces normalization of pattern and strings. @draft ICU 2.4 */
/** Forces normalization of pattern and strings. @draft ICU 3.0 */
UREGEX_CANON_EQ = 128,
/** Enable case insensitive matching. @draft ICU 2.4 */
/** Enable case insensitive matching. @stable ICU 2.4 */
UREGEX_CASE_INSENSITIVE = 2,
/** Allow white space and comments within patterns @draft ICU 2.4 */
/** Allow white space and comments within patterns @stable ICU 2.4 */
UREGEX_COMMENTS = 4,
/** If set, '.' matches line terminators, otherwise '.' matching stops at line end.
* @draft ICU 2.4 */
* @stable ICU 2.4 */
UREGEX_DOTALL = 32,
/** Control behavior of "$" and "^"
* If set, recognize line terminators within string,
* otherwise, match only at start and end of input string.
* @draft ICU 2.4 */
* @stable ICU 2.4 */
UREGEX_MULTILINE = 8,
/** Unicode word boundaries.
@ -87,7 +89,7 @@ typedef enum URegexpFlag{
* @param status Receives error detected by this function.
*
*/
U_CAPI URegularExpression * U_EXPORT2
U_STABLE URegularExpression * U_EXPORT2
uregex_open( const UChar *pattern,
int32_t patternLength,
uint32_t flags,
@ -116,7 +118,7 @@ uregex_open( const UChar *pattern,
* pattern.
*
*/
U_CAPI URegularExpression * U_EXPORT2
U_STABLE URegularExpression * U_EXPORT2
uregex_openC( const char *pattern,
uint32_t flags,
UParseError *pe,
@ -131,7 +133,7 @@ uregex_openC( const char *pattern,
*
* @param regexp The regular expression to be closed.
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
uregex_close(URegularExpression *regexp);
/**
@ -151,7 +153,7 @@ uregex_close(URegularExpression *regexp);
* @param status Receives indication of any errors encountered
* @return the cloned copy of the compiled regular expression.
*/
U_CAPI URegularExpression * U_EXPORT2
U_STABLE URegularExpression * U_EXPORT2
uregex_clone(const URegularExpression *regexp, UErrorCode *status);
/**
@ -169,7 +171,7 @@ uregex_clone(const URegularExpression *regexp, UErrorCode *status);
* altered or deleted by the application. The returned string
* will remain valid until the regular expression is closed.
*/
U_CAPI const UChar * U_EXPORT2
U_STABLE const UChar * U_EXPORT2
uregex_pattern(const URegularExpression *regexp,
int32_t *patLength,
UErrorCode *status);
@ -182,7 +184,7 @@ uregex_pattern(const URegularExpression *regexp,
* @param return The match mode flags
* @see URegexpFlag
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
uregex_flags(const URegularExpression *regexp,
UErrorCode *status);
@ -206,7 +208,7 @@ uregex_flags(const URegularExpression *regexp,
* is NUL terminated.
* @param status Receives errors detected by this function.
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
uregex_setText(URegularExpression *regexp,
const UChar *text,
int32_t textLength,
@ -227,7 +229,7 @@ uregex_setText(URegularExpression *regexp,
* @return Poiner to the subject text string currently associated with
* this regular expression.
*/
U_CAPI const UChar * U_EXPORT2
U_DRAFT const UChar * U_EXPORT2
uregex_getText(URegularExpression *regexp,
int32_t *textLength,
UErrorCode *status);
@ -242,7 +244,7 @@ uregex_getText(URegularExpression *regexp,
* @return TRUE if there is a match
* @draft ICU 3.0
*/
U_CAPI UBool U_EXPORT2
U_DRAFT UBool U_EXPORT2
uregex_matches(URegularExpression *regexp,
int32_t startIndex,
UErrorCode *status);
@ -262,7 +264,7 @@ uregex_matches(URegularExpression *regexp,
* @return TRUE if there is a match.
* @draft ICU 3.0
*/
U_CAPI UBool U_EXPORT2
U_DRAFT UBool U_EXPORT2
uregex_lookingAt(URegularExpression *regexp,
int32_t startIndex,
UErrorCode *status);
@ -279,7 +281,7 @@ uregex_lookingAt(URegularExpression *regexp,
* @return TRUE if a match is found.
* @draft ICU 3.0
*/
U_CAPI UBool U_EXPORT2
U_DRAFT UBool U_EXPORT2
uregex_find(URegularExpression *regexp,
int32_t startIndex,
UErrorCode *status);
@ -297,7 +299,7 @@ uregex_find(URegularExpression *regexp,
* @see uregex_reset
* @draft ICU 3.0
*/
U_CAPI UBool U_EXPORT2
U_DRAFT UBool U_EXPORT2
uregex_findNext(URegularExpression *regexp,
UErrorCode *status);
@ -308,7 +310,7 @@ uregex_findNext(URegularExpression *regexp,
* @return the number of capture groups
* @draft ICU 3.0
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uregex_groupCount(URegularExpression *regexp,
UErrorCode *status);
@ -328,7 +330,7 @@ uregex_groupCount(URegularExpression *regexp,
* or -1 if no applicable match.
* @draft ICU 3.0
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uregex_group(URegularExpression *regexp,
int32_t groupNum,
UChar *dest,
@ -350,7 +352,7 @@ uregex_group(URegularExpression *regexp,
* by the specified group.
* @draft ICU 3.0
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uregex_start(URegularExpression *regexp,
int32_t groupNum,
UErrorCode *status);
@ -368,7 +370,7 @@ uregex_start(URegularExpression *regexp,
* @return the index of the position following the last matched character.
* @draft ICU 3.0
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uregex_end(URegularExpression *regexp,
int32_t groupNum,
UErrorCode *status);
@ -385,7 +387,7 @@ uregex_end(URegularExpression *regexp,
* @param status A reference to a UErrorCode to receive any errors.
* @draft ICU 3.0
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
uregex_reset(URegularExpression *regexp,
int32_t index,
UErrorCode *status);
@ -414,7 +416,7 @@ uregex_reset(URegularExpression *regexp,
* is still the full length of the untruncated string.
* @draft ICU 3.0
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uregex_replaceAll(URegularExpression *regexp,
UChar *replacementText,
int32_t replacementLength,
@ -447,7 +449,7 @@ uregex_replaceAll(URegularExpression *regexp,
* is still the full length of the untruncated string.
* @draft ICU 3.0
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uregex_replaceFirst(URegularExpression *regexp,
UChar *replacementText,
int32_t replacementLength,
@ -502,7 +504,7 @@ uregex_replaceFirst(URegularExpression *regexp,
* @draft ICU 3.0
*
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uregex_appendReplacement(URegularExpression *regexp,
UChar *replacementText,
int32_t replacementLength,
@ -535,7 +537,7 @@ uregex_appendReplacement(URegularExpression *regexp,
*
* @draft ICU 3.0
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uregex_appendTail(URegularExpression *regexp,
UChar **destBuf,
int32_t *destCapacity,
@ -598,7 +600,7 @@ uregex_appendTail(URegularExpression *regexp,
* could cause the fields to not correspond exactly to
* a range of the source text.
*/
U_CAPI int32_t U_EXPORT2
U_DRAFT int32_t U_EXPORT2
uregex_split( URegularExpression *regexp,
UChar *destBuf,
int32_t destCapacity,

View file

@ -197,7 +197,7 @@ typedef enum {
* @return search iterator data structure, or NULL if there is an error.
* @stable ICU 2.4
*/
U_CAPI UStringSearch * U_EXPORT2 usearch_open(const UChar *pattern,
U_STABLE UStringSearch * U_EXPORT2 usearch_open(const UChar *pattern,
int32_t patternlength,
const UChar *text,
int32_t textlength,
@ -229,7 +229,7 @@ U_CAPI UStringSearch * U_EXPORT2 usearch_open(const UChar *pattern,
* @return search iterator data structure, or NULL if there is an error.
* @stable ICU 2.4
*/
U_CAPI UStringSearch * U_EXPORT2 usearch_openFromCollator(
U_STABLE UStringSearch * U_EXPORT2 usearch_openFromCollator(
const UChar *pattern,
int32_t patternlength,
const UChar *text,
@ -244,7 +244,7 @@ U_CAPI UStringSearch * U_EXPORT2 usearch_openFromCollator(
* @param searchiter data struct to clean up
* @stable ICU 2.4
*/
U_CAPI void U_EXPORT2 usearch_close(UStringSearch *searchiter);
U_STABLE void U_EXPORT2 usearch_close(UStringSearch *searchiter);
/* get and set methods -------------------------------------------------- */
@ -263,7 +263,7 @@ U_CAPI void U_EXPORT2 usearch_close(UStringSearch *searchiter);
* @param status error status if any.
* @stable ICU 2.4
*/
U_CAPI void U_EXPORT2 usearch_setOffset(UStringSearch *strsrch,
U_STABLE void U_EXPORT2 usearch_setOffset(UStringSearch *strsrch,
int32_t position,
UErrorCode *status);
@ -275,7 +275,7 @@ U_CAPI void U_EXPORT2 usearch_setOffset(UStringSearch *strsrch,
* @see #USEARCH_DONE
* @stable ICU 2.4
*/
U_CAPI int32_t U_EXPORT2 usearch_getOffset(const UStringSearch *strsrch);
U_STABLE int32_t U_EXPORT2 usearch_getOffset(const UStringSearch *strsrch);
/**
* Sets the text searching attributes located in the enum USearchAttribute
@ -288,7 +288,7 @@ U_CAPI int32_t U_EXPORT2 usearch_getOffset(const UStringSearch *strsrch);
* @see #usearch_getAttribute
* @stable ICU 2.4
*/
U_CAPI void U_EXPORT2 usearch_setAttribute(UStringSearch *strsrch,
U_STABLE void U_EXPORT2 usearch_setAttribute(UStringSearch *strsrch,
USearchAttribute attribute,
USearchAttributeValue value,
UErrorCode *status);
@ -301,7 +301,7 @@ U_CAPI void U_EXPORT2 usearch_setAttribute(UStringSearch *strsrch,
* @see #usearch_setAttribute
* @stable ICU 2.4
*/
U_CAPI USearchAttributeValue U_EXPORT2 usearch_getAttribute(
U_STABLE USearchAttributeValue U_EXPORT2 usearch_getAttribute(
const UStringSearch *strsrch,
USearchAttribute attribute);
@ -324,7 +324,7 @@ U_CAPI USearchAttributeValue U_EXPORT2 usearch_getAttribute(
* @see #USEARCH_DONE
* @stable ICU 2.4
*/
U_CAPI int32_t U_EXPORT2 usearch_getMatchedStart(
U_STABLE int32_t U_EXPORT2 usearch_getMatchedStart(
const UStringSearch *strsrch);
/**
@ -344,7 +344,7 @@ U_CAPI int32_t U_EXPORT2 usearch_getMatchedStart(
* @see #USEARCH_DONE
* @stable ICU 2.4
*/
U_CAPI int32_t U_EXPORT2 usearch_getMatchedLength(
U_STABLE int32_t U_EXPORT2 usearch_getMatchedLength(
const UStringSearch *strsrch);
/**
@ -372,7 +372,7 @@ U_CAPI int32_t U_EXPORT2 usearch_getMatchedLength(
* @see #USEARCH_DONE
* @stable ICU 2.4
*/
U_CAPI int32_t U_EXPORT2 usearch_getMatchedText(const UStringSearch *strsrch,
U_STABLE int32_t U_EXPORT2 usearch_getMatchedText(const UStringSearch *strsrch,
UChar *result,
int32_t resultCapacity,
UErrorCode *status);
@ -394,7 +394,7 @@ U_CAPI int32_t U_EXPORT2 usearch_getMatchedText(const UStringSearch *strsrch,
* @see #usearch_getBreakIterator
* @stable ICU 2.4
*/
U_CAPI void U_EXPORT2 usearch_setBreakIterator(UStringSearch *strsrch,
U_STABLE void U_EXPORT2 usearch_setBreakIterator(UStringSearch *strsrch,
UBreakIterator *breakiter,
UErrorCode *status);
@ -409,7 +409,7 @@ U_CAPI void U_EXPORT2 usearch_setBreakIterator(UStringSearch *strsrch,
* @see #usearch_setBreakIterator
* @stable ICU 2.4
*/
U_CAPI const UBreakIterator * U_EXPORT2 usearch_getBreakIterator(
U_STABLE const UBreakIterator * U_EXPORT2 usearch_getBreakIterator(
const UStringSearch *strsrch);
#endif
@ -427,7 +427,7 @@ U_CAPI const UBreakIterator * U_EXPORT2 usearch_getBreakIterator(
* @see #usearch_getText
* @stable ICU 2.4
*/
U_CAPI void U_EXPORT2 usearch_setText( UStringSearch *strsrch,
U_STABLE void U_EXPORT2 usearch_setText( UStringSearch *strsrch,
const UChar *text,
int32_t textlength,
UErrorCode *status);
@ -440,7 +440,7 @@ U_CAPI void U_EXPORT2 usearch_setText( UStringSearch *strsrch,
* @see #usearch_setText
* @stable ICU 2.4
*/
U_CAPI const UChar * U_EXPORT2 usearch_getText(const UStringSearch *strsrch,
U_STABLE const UChar * U_EXPORT2 usearch_getText(const UStringSearch *strsrch,
int32_t *length);
/**
@ -453,7 +453,7 @@ U_CAPI const UChar * U_EXPORT2 usearch_getText(const UStringSearch *strsrch,
* @return collator
* @stable ICU 2.4
*/
U_CAPI UCollator * U_EXPORT2 usearch_getCollator(
U_STABLE UCollator * U_EXPORT2 usearch_getCollator(
const UStringSearch *strsrch);
/**
@ -466,7 +466,7 @@ U_CAPI UCollator * U_EXPORT2 usearch_getCollator(
* @param status for errors if it occurs
* @stable ICU 2.4
*/
U_CAPI void U_EXPORT2 usearch_setCollator( UStringSearch *strsrch,
U_STABLE void U_EXPORT2 usearch_setCollator( UStringSearch *strsrch,
const UCollator *collator,
UErrorCode *status);
@ -482,7 +482,7 @@ U_CAPI void U_EXPORT2 usearch_setCollator( UStringSearch *strsrch,
* done to strsrch.
* @stable ICU 2.4
*/
U_CAPI void U_EXPORT2 usearch_setPattern( UStringSearch *strsrch,
U_STABLE void U_EXPORT2 usearch_setPattern( UStringSearch *strsrch,
const UChar *pattern,
int32_t patternlength,
UErrorCode *status);
@ -495,7 +495,7 @@ U_CAPI void U_EXPORT2 usearch_setPattern( UStringSearch *strsrch,
* @return pattern string
* @stable ICU 2.4
*/
U_CAPI const UChar * U_EXPORT2 usearch_getPattern(
U_STABLE const UChar * U_EXPORT2 usearch_getPattern(
const UStringSearch *strsrch,
int32_t *length);
@ -516,7 +516,7 @@ U_CAPI const UChar * U_EXPORT2 usearch_getPattern(
* @see #USEARCH_DONE
* @stable ICU 2.4
*/
U_CAPI int32_t U_EXPORT2 usearch_first(UStringSearch *strsrch,
U_STABLE int32_t U_EXPORT2 usearch_first(UStringSearch *strsrch,
UErrorCode *status);
/**
@ -540,7 +540,7 @@ U_CAPI int32_t U_EXPORT2 usearch_first(UStringSearch *strsrch,
* @see #USEARCH_DONE
* @stable ICU 2.4
*/
U_CAPI int32_t U_EXPORT2 usearch_following(UStringSearch *strsrch,
U_STABLE int32_t U_EXPORT2 usearch_following(UStringSearch *strsrch,
int32_t position,
UErrorCode *status);
@ -559,7 +559,7 @@ U_CAPI int32_t U_EXPORT2 usearch_following(UStringSearch *strsrch,
* @see #USEARCH_DONE
* @stable ICU 2.4
*/
U_CAPI int32_t U_EXPORT2 usearch_last(UStringSearch *strsrch,
U_STABLE int32_t U_EXPORT2 usearch_last(UStringSearch *strsrch,
UErrorCode *status);
/**
@ -582,7 +582,7 @@ U_CAPI int32_t U_EXPORT2 usearch_last(UStringSearch *strsrch,
* @see #USEARCH_DONE
* @stable ICU 2.4
*/
U_CAPI int32_t U_EXPORT2 usearch_preceding(UStringSearch *strsrch,
U_STABLE int32_t U_EXPORT2 usearch_preceding(UStringSearch *strsrch,
int32_t position,
UErrorCode *status);
@ -603,7 +603,7 @@ U_CAPI int32_t U_EXPORT2 usearch_preceding(UStringSearch *strsrch,
* @see #USEARCH_DONE
* @stable ICU 2.4
*/
U_CAPI int32_t U_EXPORT2 usearch_next(UStringSearch *strsrch,
U_STABLE int32_t U_EXPORT2 usearch_next(UStringSearch *strsrch,
UErrorCode *status);
/**
@ -623,7 +623,7 @@ U_CAPI int32_t U_EXPORT2 usearch_next(UStringSearch *strsrch,
* @see #USEARCH_DONE
* @stable ICU 2.4
*/
U_CAPI int32_t U_EXPORT2 usearch_previous(UStringSearch *strsrch,
U_STABLE int32_t U_EXPORT2 usearch_previous(UStringSearch *strsrch,
UErrorCode *status);
/**
@ -636,7 +636,7 @@ U_CAPI int32_t U_EXPORT2 usearch_previous(UStringSearch *strsrch,
* @see #usearch_first
* @stable ICU 2.4
*/
U_CAPI void U_EXPORT2 usearch_reset(UStringSearch *strsrch);
U_STABLE void U_EXPORT2 usearch_reset(UStringSearch *strsrch);
#endif /* #if !UCONFIG_NO_COLLATION */

View file

@ -123,7 +123,7 @@ typedef struct UTransPosition {
* anything before this index. INPUT/OUTPUT parameter: This parameter
* is updated by a transliteration operation to reflect the maximum
* amount of antecontext needed by a transliterator.
* @draft ICU 2.4
* @stable ICU 2.4
*/
int32_t contextStart;
@ -133,7 +133,7 @@ typedef struct UTransPosition {
* anything at or after this index. INPUT/OUTPUT parameter: This
* parameter is updated to reflect changes in the length of the
* text, but points to the same logical position in the text.
* @draft ICU 2.4
* @stable ICU 2.4
*/
int32_t contextLimit;
@ -142,7 +142,7 @@ typedef struct UTransPosition {
* INPUT/OUTPUT parameter: This parameter is advanced past
* characters that have already been transliterated by a
* transliteration operation.
* @draft ICU 2.4
* @stable ICU 2.4
*/
int32_t start;
@ -151,7 +151,7 @@ typedef struct UTransPosition {
* INPUT/OUTPUT parameter: This parameter is updated to reflect
* changes in the length of the text, but points to the same
* logical position in the text.
* @draft ICU 2.4
* @stable ICU 2.4
*/
int32_t limit;
@ -184,7 +184,7 @@ typedef struct UTransPosition {
* utrans_xxx() functions, or NULL if the open call fails.
* @draft ICU 2.8
*/
U_CAPI UTransliterator* U_EXPORT2
U_DRAFT UTransliterator* U_EXPORT2
utrans_openU(const UChar *id,
int32_t idLength,
UTransDirection dir,
@ -208,7 +208,7 @@ utrans_openU(const UChar *id,
* inverse of trans, or NULL if the open call fails.
* @stable ICU 2.0
*/
U_CAPI UTransliterator* U_EXPORT2
U_STABLE UTransliterator* U_EXPORT2
utrans_openInverse(const UTransliterator* trans,
UErrorCode* status);
@ -222,7 +222,7 @@ utrans_openInverse(const UTransliterator* trans,
* utrans_xxx() functions, or NULL if the clone call fails.
* @stable ICU 2.0
*/
U_CAPI UTransliterator* U_EXPORT2
U_STABLE UTransliterator* U_EXPORT2
utrans_clone(const UTransliterator* trans,
UErrorCode* status);
@ -232,7 +232,7 @@ utrans_clone(const UTransliterator* trans,
* @param trans the transliterator to be closed.
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
utrans_close(UTransliterator* trans);
/**
@ -249,7 +249,7 @@ utrans_close(UTransliterator* trans);
*
* @draft ICU 2.8
*/
U_CAPI const UChar * U_EXPORT2
U_DRAFT const UChar * U_EXPORT2
utrans_getUnicodeID(const UTransliterator *trans,
int32_t *resultLength);
@ -267,7 +267,7 @@ utrans_getUnicodeID(const UTransliterator *trans,
* @param status a pointer to the UErrorCode
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
utrans_register(UTransliterator* adoptedTrans,
UErrorCode* status);
@ -280,7 +280,7 @@ utrans_register(UTransliterator* adoptedTrans,
* @param idLength the length of id, or -1 if id is zero-terminated
* @draft ICU 2.8
*/
U_CAPI void U_EXPORT2
U_DRAFT void U_EXPORT2
utrans_unregisterID(const UChar* id, int32_t idLength);
/**
@ -301,7 +301,7 @@ utrans_unregisterID(const UChar* id, int32_t idLength);
* @see UnicodeSet
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
utrans_setFilter(UTransliterator* trans,
const UChar* filterPattern,
int32_t filterPatternLen,
@ -314,7 +314,7 @@ utrans_setFilter(UTransliterator* trans,
* @return the number of system transliterators.
* @stable ICU 2.0
*/
U_CAPI int32_t U_EXPORT2
U_STABLE int32_t U_EXPORT2
utrans_countAvailableIDs(void);
/**
@ -326,7 +326,7 @@ utrans_countAvailableIDs(void);
*
* @draft ICU 2.8
*/
U_CAPI UEnumeration * U_EXPORT2
U_DRAFT UEnumeration * U_EXPORT2
utrans_openIDs(UErrorCode *pErrorCode);
/********************************************************************
@ -356,7 +356,7 @@ utrans_openIDs(UErrorCode *pErrorCode);
* @param status a pointer to the UErrorCode
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
utrans_trans(const UTransliterator* trans,
UReplaceable* rep,
UReplaceableCallbacks* repFunc,
@ -407,7 +407,7 @@ utrans_trans(const UTransliterator* trans,
* @param status a pointer to the UErrorCode
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
utrans_transIncremental(const UTransliterator* trans,
UReplaceable* rep,
UReplaceableCallbacks* repFunc,
@ -445,7 +445,7 @@ utrans_transIncremental(const UTransliterator* trans,
* @param status a pointer to the UErrorCode
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
utrans_transUChars(const UTransliterator* trans,
UChar* text,
int32_t* textLength,
@ -480,7 +480,7 @@ utrans_transUChars(const UTransliterator* trans,
* @see utrans_transIncremental
* @stable ICU 2.0
*/
U_CAPI void U_EXPORT2
U_STABLE void U_EXPORT2
utrans_transIncrementalUChars(const UTransliterator* trans,
UChar* text,
int32_t* textLength,
@ -515,7 +515,7 @@ utrans_transIncrementalUChars(const UTransliterator* trans,
* utrans_xxx() functions, or NULL if the open call fails.
* @deprecated ICU 2.8 Use utrans_openU() instead, see utrans.h
*/
U_CAPI UTransliterator* U_EXPORT2
U_DEPRECATED UTransliterator* U_EXPORT2
utrans_open(const char* id,
UTransDirection dir,
const UChar* rules, /* may be Null */
@ -538,7 +538,7 @@ utrans_open(const char* id,
* zero-termination. This may be greater than bufCapacity.
* @deprecated ICU 2.8 Use utrans_getUnicodeID() instead, see utrans.h
*/
U_CAPI int32_t U_EXPORT2
U_DEPRECATED int32_t U_EXPORT2
utrans_getID(const UTransliterator* trans,
char* buf,
int32_t bufCapacity);
@ -552,7 +552,7 @@ utrans_getID(const UTransliterator* trans,
* @param id a zero-terminated ID
* @deprecated ICU 2.8 Use utrans_unregisterID() instead, see utrans.h
*/
U_CAPI void U_EXPORT2
U_DEPRECATED void U_EXPORT2
utrans_unregister(const char* id);
/**
@ -573,7 +573,7 @@ utrans_unregister(const char* id);
* zero-termination. This may be greater than bufCapacity.
* @deprecated ICU 2.8 Use utrans_openIDs() instead, see utrans.h
*/
U_CAPI int32_t U_EXPORT2
U_DEPRECATED int32_t U_EXPORT2
utrans_getAvailableID(int32_t index,
char* buf,
int32_t bufCapacity);

View file

@ -0,0 +1,225 @@
ubrk.h UBRK_TITLE ICU 2.8 Use the word break iterator for titlecasing for Unicode 4 and later.
ucol.h ucol_getLocale ICU 2.8 Use ucol_getLocaleByType instead
uloc.h ULOC_REQUESTED_LOCALE ICU 2.8
ures.h RES_NONE ICU 2.6 Use the URES_ constant instead.
ures.h RES_STRING ICU 2.6 Use the URES_ constant instead.
ures.h RES_BINARY ICU 2.6 Use the URES_ constant instead.
ures.h RES_TABLE ICU 2.6 Use the URES_ constant instead.
ures.h RES_ALIAS ICU 2.6 Use the URES_ constant instead.
ures.h RES_INT ICU 2.6 Use the URES_ constant instead.
ures.h RES_ARRAY ICU 2.6 Use the URES_ constant instead.
ures.h RES_INT_VECTOR ICU 2.6 Use the URES_ constant instead.
ures.h RES_RESERVED ICU 2.6 Not used.
ures.h ures_countArrayItems ICU 2.8 User ures_getSize instead
ures.h ures_getLocale ICU 2.8 Use ures_getLocaleByType instead.
ures.h ures_getVersionNumber ICU 2.8 Use ures_getVersion instead.
utf_old.h (null) ICU 2.4. Use the macros in utf.h, utf16.h, utf8.h instead.
utf_old.h UTF16_APPEND_CHAR_SAFE ICU 2.4. Use U16_APPEND instead, see utf_old.h.
utf_old.h UTF16_APPEND_CHAR_UNSAFE ICU 2.4. Renamed to U16_APPEND_UNSAFE, see utf_old.h.
utf_old.h UTF16_ARRAY_SIZE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF16_BACK_1_SAFE ICU 2.4. Renamed to U16_BACK_1, see utf_old.h.
utf_old.h UTF16_BACK_1_UNSAFE ICU 2.4. Renamed to U16_BACK_1_UNSAFE, see utf_old.h.
utf_old.h UTF16_BACK_N_SAFE ICU 2.4. Renamed to U16_BACK_N, see utf_old.h.
utf_old.h UTF16_BACK_N_UNSAFE ICU 2.4. Renamed to U16_BACK_N_UNSAFE, see utf_old.h.
utf_old.h UTF16_CHAR_LENGTH ICU 2.4. Renamed to U16_LENGTH, see utf_old.h.
utf_old.h UTF16_FWD_1_SAFE ICU 2.4. Renamed to U16_FWD_1, see utf_old.h.
utf_old.h UTF16_FWD_1_UNSAFE ICU 2.4. Renamed to U16_FWD_1_UNSAFE, see utf_old.h.
utf_old.h UTF16_FWD_N_SAFE ICU 2.4. Renamed to U16_FWD_N, see utf_old.h.
utf_old.h UTF16_FWD_N_UNSAFE ICU 2.4. Renamed to U16_FWD_N_UNSAFE, see utf_old.h.
utf_old.h UTF16_GET_CHAR_SAFE ICU 2.4. Use U16_GET instead, see utf_old.h.
utf_old.h UTF16_GET_CHAR_UNSAFE ICU 2.4. Renamed to U16_GET_UNSAFE, see utf_old.h.
utf_old.h UTF16_GET_PAIR_VALUE ICU 2.4. Renamed to U16_GET_SUPPLEMENTARY, see utf_old.h.
utf_old.h UTF16_IS_LEAD ICU 2.4. Renamed to U16_IS_LEAD, see utf_old.h.
utf_old.h UTF16_IS_SINGLE ICU 2.4. Renamed to U16_IS_SINGLE, see utf_old.h.
utf_old.h UTF16_IS_TRAIL ICU 2.4. Renamed to U16_IS_TRAIL, see utf_old.h.
utf_old.h UTF16_LEAD ICU 2.4. Renamed to U16_LEAD, see utf_old.h.
utf_old.h UTF16_MAX_CHAR_LENGTH ICU 2.4. Renamed to U16_MAX_LENGTH, see utf_old.h.
utf_old.h UTF16_NEED_MULTIPLE_UCHAR ICU 2.4. Use U16_LENGTH or test ((uint32_t)(c)>0xffff) instead, see utf_old.h.
utf_old.h UTF16_NEXT_CHAR_SAFE ICU 2.4. Use U16_NEXT instead, see utf_old.h.
utf_old.h UTF16_NEXT_CHAR_UNSAFE ICU 2.4. Renamed to U16_NEXT_UNSAFE, see utf_old.h.
utf_old.h UTF16_PREV_CHAR_SAFE ICU 2.4. Use U16_PREV instead, see utf_old.h.
utf_old.h UTF16_PREV_CHAR_UNSAFE ICU 2.4. Renamed to U16_PREV_UNSAFE, see utf_old.h.
utf_old.h UTF16_SET_CHAR_LIMIT_SAFE ICU 2.4. Renamed to U16_SET_CP_LIMIT, see utf_old.h.
utf_old.h UTF16_SET_CHAR_LIMIT_UNSAFE ICU 2.4. Renamed to U16_SET_CP_LIMIT_UNSAFE, see utf_old.h.
utf_old.h UTF16_SET_CHAR_START_SAFE ICU 2.4. Renamed to U16_SET_CP_START, see utf_old.h.
utf_old.h UTF16_SET_CHAR_START_UNSAFE ICU 2.4. Renamed to U16_SET_CP_START_UNSAFE, see utf_old.h.
utf_old.h UTF16_TRAIL ICU 2.4. Renamed to U16_TRAIL, see utf_old.h.
utf_old.h UTF32_APPEND_CHAR_SAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_APPEND_CHAR_UNSAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_ARRAY_SIZE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_BACK_1_SAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_BACK_1_UNSAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_BACK_N_SAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_BACK_N_UNSAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_CHAR_LENGTH ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_FWD_1_SAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_FWD_1_UNSAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_FWD_N_SAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_FWD_N_UNSAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_GET_CHAR_SAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_GET_CHAR_UNSAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_IS_LEAD ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_IS_SAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_IS_SINGLE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_IS_TRAIL ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_MAX_CHAR_LENGTH ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_NEED_MULTIPLE_UCHAR ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_NEXT_CHAR_SAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_NEXT_CHAR_UNSAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_PREV_CHAR_SAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_PREV_CHAR_UNSAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_SET_CHAR_LIMIT_SAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_SET_CHAR_LIMIT_UNSAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_SET_CHAR_START_SAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF32_SET_CHAR_START_UNSAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF8_APPEND_CHAR_SAFE ICU 2.4. Use U8_APPEND instead, see utf_old.h.
utf_old.h UTF8_APPEND_CHAR_UNSAFE ICU 2.4. Renamed to U8_APPEND_UNSAFE, see utf_old.h.
utf_old.h UTF8_ARRAY_SIZE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF8_BACK_1_SAFE ICU 2.4. Renamed to U8_BACK_1, see utf_old.h.
utf_old.h UTF8_BACK_1_UNSAFE ICU 2.4. Renamed to U8_BACK_1_UNSAFE, see utf_old.h.
utf_old.h UTF8_BACK_N_SAFE ICU 2.4. Renamed to U8_BACK_N, see utf_old.h.
utf_old.h UTF8_BACK_N_UNSAFE ICU 2.4. Renamed to U8_BACK_N_UNSAFE, see utf_old.h.
utf_old.h UTF8_CHAR_LENGTH ICU 2.4. Use U8_LENGTH instead, see utf_old.h.
utf_old.h UTF8_COUNT_TRAIL_BYTES ICU 2.4. Renamed to U8_COUNT_TRAIL_BYTES, see utf_old.h.
utf_old.h UTF8_ERROR_VALUE_1 ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF8_ERROR_VALUE_2 ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF8_FWD_1_SAFE ICU 2.4. Renamed to U8_FWD_1, see utf_old.h.
utf_old.h UTF8_FWD_1_UNSAFE ICU 2.4. Renamed to U8_FWD_1_UNSAFE, see utf_old.h.
utf_old.h UTF8_FWD_N_SAFE ICU 2.4. Renamed to U8_FWD_N, see utf_old.h.
utf_old.h UTF8_FWD_N_UNSAFE ICU 2.4. Renamed to U8_FWD_N_UNSAFE, see utf_old.h.
utf_old.h UTF8_GET_CHAR_SAFE ICU 2.4. Use U8_GET instead, see utf_old.h.
utf_old.h UTF8_GET_CHAR_UNSAFE ICU 2.4. Renamed to U8_GET_UNSAFE, see utf_old.h.
utf_old.h UTF8_IS_LEAD ICU 2.4. Renamed to U8_IS_LEAD, see utf_old.h.
utf_old.h UTF8_IS_SINGLE ICU 2.4. Renamed to U8_IS_SINGLE, see utf_old.h.
utf_old.h UTF8_IS_TRAIL ICU 2.4. Renamed to U8_IS_TRAIL, see utf_old.h.
utf_old.h UTF8_MASK_LEAD_BYTE ICU 2.4. Renamed to U8_MASK_LEAD_BYTE, see utf_old.h.
utf_old.h UTF8_MAX_CHAR_LENGTH ICU 2.4. Renamed to U8_MAX_LENGTH, see utf_old.h.
utf_old.h UTF8_NEED_MULTIPLE_UCHAR ICU 2.4. Use U8_LENGTH or test ((uint32_t)(c)>0x7f) instead, see utf_old.h.
utf_old.h UTF8_NEXT_CHAR_SAFE ICU 2.4. Use U8_NEXT instead, see utf_old.h.
utf_old.h UTF8_NEXT_CHAR_UNSAFE ICU 2.4. Renamed to U8_NEXT_UNSAFE, see utf_old.h.
utf_old.h UTF8_PREV_CHAR_SAFE ICU 2.4. Use U8_PREV instead, see utf_old.h.
utf_old.h UTF8_PREV_CHAR_UNSAFE ICU 2.4. Renamed to U8_PREV_UNSAFE, see utf_old.h.
utf_old.h UTF8_SET_CHAR_LIMIT_SAFE ICU 2.4. Renamed to U8_SET_CP_LIMIT, see utf_old.h.
utf_old.h UTF8_SET_CHAR_LIMIT_UNSAFE ICU 2.4. Renamed to U8_SET_CP_LIMIT_UNSAFE, see utf_old.h.
utf_old.h UTF8_SET_CHAR_START_SAFE ICU 2.4. Renamed to U8_SET_CP_START, see utf_old.h.
utf_old.h UTF8_SET_CHAR_START_UNSAFE ICU 2.4. Renamed to U8_SET_CP_START_UNSAFE, see utf_old.h.
utf_old.h UTF_APPEND_CHAR ICU 2.4. Use U16_APPEND instead, see utf_old.h.
utf_old.h UTF_APPEND_CHAR_SAFE ICU 2.4. Use U16_APPEND instead, see utf_old.h.
utf_old.h UTF_APPEND_CHAR_UNSAFE ICU 2.4. Renamed to U16_APPEND_UNSAFE, see utf_old.h.
utf_old.h UTF_ARRAY_SIZE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF_BACK_1 ICU 2.4. Renamed to U16_BACK_1, see utf_old.h.
utf_old.h UTF_BACK_1_SAFE ICU 2.4. Renamed to U16_BACK_1, see utf_old.h.
utf_old.h UTF_BACK_1_UNSAFE ICU 2.4. Renamed to U16_BACK_1_UNSAFE, see utf_old.h.
utf_old.h UTF_BACK_N ICU 2.4. Renamed to U16_BACK_N, see utf_old.h.
utf_old.h UTF_BACK_N_SAFE ICU 2.4. Renamed to U16_BACK_N, see utf_old.h.
utf_old.h UTF_BACK_N_UNSAFE ICU 2.4. Renamed to U16_BACK_N_UNSAFE, see utf_old.h.
utf_old.h UTF_CHAR_LENGTH ICU 2.4. Renamed to U16_LENGTH, see utf_old.h.
utf_old.h UTF_ERROR_VALUE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF_FIRST_SURROGATE ICU 2.4. Renamed to U16_LEAD, see utf_old.h.
utf_old.h UTF_FWD_1 ICU 2.4. Renamed to U16_FWD_1, see utf_old.h.
utf_old.h UTF_FWD_1_SAFE ICU 2.4. Renamed to U16_FWD_1, see utf_old.h.
utf_old.h UTF_FWD_1_UNSAFE ICU 2.4. Renamed to U16_FWD_1_UNSAFE, see utf_old.h.
utf_old.h UTF_FWD_N ICU 2.4. Renamed to U16_FWD_N, see utf_old.h.
utf_old.h UTF_FWD_N_SAFE ICU 2.4. Renamed to U16_FWD_N, see utf_old.h.
utf_old.h UTF_FWD_N_UNSAFE ICU 2.4. Renamed to U16_FWD_N_UNSAFE, see utf_old.h.
utf_old.h UTF_GET_CHAR ICU 2.4. Renamed to U16_GET, see utf_old.h.
utf_old.h UTF_GET_CHAR_SAFE ICU 2.4. Use U16_GET instead, see utf_old.h.
utf_old.h UTF_GET_CHAR_UNSAFE ICU 2.4. Renamed to U16_GET_UNSAFE, see utf_old.h.
utf_old.h UTF_IS_ERROR ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF_IS_FIRST_SURROGATE ICU 2.4. Renamed to U_IS_LEAD and U16_IS_LEAD, see utf_old.h.
utf_old.h UTF_IS_LEAD ICU 2.4. Renamed to U_IS_LEAD and U16_IS_LEAD, see utf_old.h.
utf_old.h UTF_IS_SECOND_SURROGATE ICU 2.4. Renamed to U_IS_TRAIL and U16_IS_TRAIL, see utf_old.h.
utf_old.h UTF_IS_SINGLE ICU 2.4. Renamed to U_IS_SINGLE and U16_IS_SINGLE, see utf_old.h.
utf_old.h UTF_IS_SURROGATE ICU 2.4. Renamed to U_IS_SURROGATE and U16_IS_SURROGATE, see utf_old.h.
utf_old.h UTF_IS_SURROGATE_FIRST ICU 2.4. Renamed to U_IS_SURROGATE_LEAD and U16_IS_SURROGATE_LEAD, see utf_old.h.
utf_old.h UTF_IS_TRAIL ICU 2.4. Renamed to U_IS_TRAIL and U16_IS_TRAIL, see utf_old.h.
utf_old.h UTF_IS_UNICODE_CHAR ICU 2.4. Renamed to U_IS_UNICODE_CHAR, see utf_old.h.
utf_old.h UTF_IS_UNICODE_NONCHAR ICU 2.4. Renamed to U_IS_UNICODE_NONCHAR, see utf_old.h.
utf_old.h UTF_IS_VALID ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF_MAX_CHAR_LENGTH ICU 2.4. Renamed to U16_MAX_LENGTH, see utf_old.h.
utf_old.h UTF_NEED_MULTIPLE_UCHAR ICU 2.4. Use U16_LENGTH or test ((uint32_t)(c)>0xffff) instead.
utf_old.h UTF_NEXT_CHAR ICU 2.4. Renamed to U16_NEXT, see utf_old.h.
utf_old.h UTF_NEXT_CHAR_SAFE ICU 2.4. Use U16_NEXT instead, see utf_old.h.
utf_old.h UTF_NEXT_CHAR_UNSAFE ICU 2.4. Renamed to U16_NEXT_UNSAFE, see utf_old.h.
utf_old.h UTF_PREV_CHAR ICU 2.4. Renamed to U16_PREV, see utf_old.h.
utf_old.h UTF_PREV_CHAR_SAFE ICU 2.4. Use U16_PREV instead, see utf_old.h.
utf_old.h UTF_PREV_CHAR_UNSAFE ICU 2.4. Renamed to U16_PREV_UNSAFE, see utf_old.h.
utf_old.h UTF_SAFE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF_SECOND_SURROGATE ICU 2.4. Renamed to U16_TRAIL, see utf_old.h.
utf_old.h UTF_SET_CHAR_LIMIT ICU 2.4. Renamed to U16_SET_CP_LIMIT, see utf_old.h.
utf_old.h UTF_SET_CHAR_LIMIT_SAFE ICU 2.4. Renamed to U16_SET_CP_LIMIT, see utf_old.h.
utf_old.h UTF_SET_CHAR_LIMIT_UNSAFE ICU 2.4. Renamed to U16_SET_CP_LIMIT_UNSAFE, see utf_old.h.
utf_old.h UTF_SET_CHAR_START ICU 2.4. Renamed to U16_SET_CP_START, see utf_old.h.
utf_old.h UTF_SET_CHAR_START_SAFE ICU 2.4. Renamed to U16_SET_CP_START, see utf_old.h.
utf_old.h UTF_SET_CHAR_START_UNSAFE ICU 2.4. Renamed to U16_SET_CP_START_UNSAFE, see utf_old.h.
utf_old.h UTF_SIZE ICU 2.4. Obsolete, see utf_old.h.
utf_old.h UTF_SURROGATE_OFFSET ICU 2.4. Renamed to U16_SURROGATE_OFFSET, see utf_old.h.
utrans.h utrans_getAvailableID ICU 2.8 Use utrans_openIDs() instead, see utrans.h
utrans.h utrans_getID ICU 2.8 Use utrans_getUnicodeID() instead, see utrans.h
utrans.h utrans_open ICU 2.8 Use utrans_openU() instead, see utrans.h
utrans.h utrans_unregister ICU 2.8 Use utrans_unregisterID() instead, see utrans.h
Calendar EAmpm ICU 2.6. Use C enum UCalendarAMPMs defined in ucal.h
Calendar EDateFields ICU 2.6. Use C enum UCalendarDateFields defined in ucal.h
Calendar EDaysOfWeek ICU 2.6. Use C enum UCalendarDaysOfWeek defined in ucal.h
Calendar EMonths ICU 2.6. Use C enum UCalendarMonths defined in ucal.h
Calendar add ICU 2.6. use add(UCalendarDateFields field, int32_t amount, UErrorCode& status) instead.
Calendar clear ICU 2.6. Use clear(UCalendarDateFields field) instead.
Calendar fieldDifference ICU 2.6. Use fieldDifference(UDate when, UCalendarDateFields field, UErrorCode& status).
Calendar get ICU 2.6. Use get(UCalendarDateFields field, UErrorCode& status) instead.
Calendar getActualMaximum ICU 2.6. Use getActualMaximum(UCalendarDateFields field, UErrorCode& status) instead.
Calendar getActualMinimum ICU 2.6. Use getActualMinimum(UCalendarDateFields field, UErrorCode& status) instead.
Calendar getFirstDayOfWeek ICU 2.6 use the overload with error code
Calendar getGreatestMinimum ICU 2.6. Use getGreatestMinimum(UCalendarDateFields field) instead.
Calendar getLeastMaximum ICU 2.6. Use getLeastMaximum(UCalendarDateFields field) instead.
Calendar getMaximum ICU 2.6. Use getMaximum(UCalendarDateFields field) instead.
Calendar getMinimum ICU 2.6. Use getMinimum(UCalendarDateFields field) instead.
Calendar internalGet ICU 2.6. Use internalGet(UCalendarDateFields field) instead.
Calendar internalSet ICU 2.6. Use internalSet(UCalendarDateFields field, int32_t value) instead.
Calendar isSet ICU 2.6. Use isSet(UCalendarDateFields field) instead.
Calendar roll ICU 2.6. Use roll(UCalendarDateFields field, int32_t amount, UErrorCode& status) instead.
Calendar roll ICU 2.6. Use roll(UCalendarDateFields field, UBool up, UErrorCode& status) instead.
Calendar set ICU 2.6. Use set(UCalendarDateFields field, int32_t value) instead.
Calendar setFirstDayOfWeek ICU 2.6. Use setFirstDayOfWeek(UCalendarDaysOfWeek value) instead.
Calendar fIsSet ICU 2.8 use (fStamp[n]!=kUnset)
CollationKey (null) ICU 2.8 Use Collator::getSortKey(...) instead
CollationKey CollationKey ICU 2.8 Use Collator::getSortKey(...) instead
CollationKey CollationKey ICU 2.8 Use Collator::getSortKey(...) instead
CollationKey CollationKey ICU 2.8 Use Collator::getSortKey(...) instead
CollationKey ~CollationKey ICU 2.8 Use Collator::getSortKey(...) instead
CollationKey compareTo ICU 2.8 Use Collator::getSortKey(...) instead
CollationKey compareTo ICU 2.6 use the overload with error code
CollationKey getByteArray ICU 2.8 Use Collator::getSortKey(...) instead
CollationKey getDynamicClassID ICU 2.8 Use Collator::getSortKey(...) instead
CollationKey getStaticClassID ICU 2.8 Use Collator::getSortKey(...) instead
CollationKey hashCode ICU 2.8 Use Collator::getSortKey(...) instead
CollationKey isBogus ICU 2.8 Use Collator::getSortKey(...) instead
CollationKey operator!= ICU 2.8 Use Collator::getSortKey(...) instead
CollationKey operator= ICU 2.8 Use Collator::getSortKey(...) instead
CollationKey operator== ICU 2.8 Use Collator::getSortKey(...) instead
Collator EComparisonResult ICU 2.6. Use C enum UCollationResult defined in ucol.h
Collator Collator ICU 2.4. Subclasses should use the default constructor
Collator compare ICU 2.6 use the overload with UErrorCode &
Collator compare ICU 2.6 use the overload with UErrorCode &
Collator compare ICU 2.6 use the overload with UErrorCode &
Collator getCollationKey ICU 2.8 Use getSortKey(...) instead
Collator getCollationKey ICU 2.8 Use getSortKey(...) instead
Collator getLocale ICU 2.8 This API is under consideration for revision
Collator getStrength ICU 2.6 Use getAttribute(UCOL_STRENGTH...) instead
Collator setStrength ICU 2.6 Use setAttribute(UCOL_STRENGTH...) instead
GregorianCalendar getActualMaximum ICU 2.6. Use getActualMaximum(UCalendarDateFields field) instead.
GregorianCalendar getActualMinimum ICU 2.6. Use getActualMinimum(UCalendarDateFields field) instead. (Added to ICU 3.0 for signature consistency)
GregorianCalendar getActualMinimum ICU 2.6. Use getActualMinimum(UCalendarDateFields field) instead.
GregorianCalendar roll ICU 2.6. Use roll(UCalendarDateFields field, int32_t amount, UErrorCode& status) instead.
ResourceBundle getLocale ICU 2.8 Use getLocale(ULocDataLocaleType type, UErrorCode &status) overload instead.
ResourceBundle getVersionNumber ICU 2.8 Use getVersion instead.
RuleBasedCollator compare ICU 2.6 Use overload with UErrorCode&
RuleBasedCollator compare ICU 2.6 Use overload with UErrorCode&
RuleBasedCollator compare ICU 2.6 Use overload with UErrorCode&
RuleBasedCollator getCollationKey ICU 2.8 Use getSortKey(...) instead
RuleBasedCollator getCollationKey ICU 2.8 Use getSortKey(...) instead
RuleBasedCollator getEComparisonResult ICU 2.6. We will not need it.
RuleBasedCollator getLocale ICU 2.8 likely to change in ICU 3.0, based on feedback
RuleBasedCollator getStrength ICU 2.6 Use getAttribute(UCOL_STRENGTH...) instead
RuleBasedCollator setStrength ICU 2.6 Use setAttribute(UCOL_STRENGTH...) instead
SimpleTimeZone inDaylightTime ICU 2.4. Use Calendar::inDaylightTime() instead.
TimeZone inDaylightTime ICU 2.4. Use Calendar::inDaylightTime() instead.

View file

@ -0,0 +1,363 @@
coll.h URegistryKey ICU 2.6
ucal.h ucal_getDSTSavings ICU 2.6
ucal.h ucal_getDefaultTimeZone ICU 2.6
ucal.h ucal_openCountryTimeZones ICU 2.6
ucal.h ucal_openTimeZones ICU 2.6
ucal.h ucal_setDefaultTimeZone ICU 2.6
ucat.h u_catclose ICU 2.6
ucat.h u_catgets ICU 2.6
ucat.h u_catopen ICU 2.6
ucat.h u_nl_catd ICU 2.6
uchar.h UHangulSyllableType ICU 2.6
uchar.h UBLOCK_NO_BLOCK ICU 2.6
uchar.h UBLOCK_LIMBU ICU 2.6
uchar.h UBLOCK_TAI_LE ICU 2.6
uchar.h UBLOCK_KHMER_SYMBOLS ICU 2.6
uchar.h UBLOCK_PHONETIC_EXTENSIONS ICU 2.6
uchar.h UBLOCK_MISCELLANEOUS_SYMBOLS_AND_ARROWS ICU 2.6
uchar.h UBLOCK_YIJING_HEXAGRAM_SYMBOLS ICU 2.6
uchar.h UBLOCK_LINEAR_B_SYLLABARY ICU 2.6
uchar.h UBLOCK_LINEAR_B_IDEOGRAMS ICU 2.6
uchar.h UBLOCK_AEGEAN_NUMBERS ICU 2.6
uchar.h UBLOCK_UGARITIC ICU 2.6
uchar.h UBLOCK_SHAVIAN ICU 2.6
uchar.h UBLOCK_OSMANYA ICU 2.6
uchar.h UBLOCK_CYPRIOT_SYLLABARY ICU 2.6
uchar.h UBLOCK_TAI_XUAN_JING_SYMBOLS ICU 2.6
uchar.h UBLOCK_VARIATION_SELECTORS_SUPPLEMENT ICU 2.6
uchar.h UHangulSyllableType ICU 2.6
uchar.h U_JG_FE ICU 2.6
uchar.h U_JG_KHAPH ICU 2.6
uchar.h U_JG_ZHAIN ICU 2.6
uchar.h UCHAR_CASE_SENSITIVE ICU 2.6
uchar.h UCHAR_HANGUL_SYLLABLE_TYPE ICU 2.6
uchar.h u_isISOControl ICU 2.6
uchar.h u_isJavaSpaceChar ICU 2.6
uchar.h u_isblank ICU 2.6
uchar.h u_isgraph ICU 2.6
uchar.h u_ispunct ICU 2.6
uchar.h u_isxdigit ICU 2.6
uclean.h u_init ICU 2.6
ucnv.h UConverterUnicodeSet ICU 2.6
ucnv.h UConverterUnicodeSet ICU 2.6
ucnv.h UCNV_ROUNDTRIP_SET ICU 2.6
ucnv.h UCNV_SET_COUNT ICU 2.6
ucnv.h ucnv_convertEx ICU 2.6
ucnv.h ucnv_fromAlgorithmic ICU 2.6
ucnv.h ucnv_getUnicodeSet ICU 2.6
ucnv.h ucnv_toAlgorithmic ICU 2.6
ucol.h ucol_nextSortKeyPart ICU 2.6
ucol.h ucol_strcollIter ICU 2.6
ucoleitr.h ucol_primaryOrder ICU 2.6
ucoleitr.h ucol_secondaryOrder ICU 2.6
ucoleitr.h ucol_tertiaryOrder ICU 2.6
uconfig.h UCONFIG_NO_IDNA ICU 2.6
uconfig.h UCONFIG_NO_NORMALIZATION ICU 2.6
ucurr.h UCurrNameStyle ICU 2.6
ucurr.h UCurrNameStyle ICU 2.6
ucurr.h UCURR_SYMBOL_NAME ICU 2.6
ucurr.h UCURR_LONG_NAME ICU 2.6
ucurr.h ucurr_getName ICU 2.6
ucurr.h ucurr_register ICU 2.6
uidna.h UIDNA_ALLOW_UNASSIGNED ICU 2.6
uidna.h UIDNA_DEFAULT ICU 2.6
uidna.h UIDNA_USE_STD3_RULES ICU 2.6
uidna.h uidna_IDNToASCII ICU 2.6
uidna.h uidna_IDNToUnicode ICU 2.6
uidna.h uidna_compare ICU 2.6
uidna.h uidna_toASCII ICU 2.6
uidna.h uidna_toUnicode ICU 2.6
uiter.h UITER_NO_STATE ICU 2.6
uiter.h UCharIteratorGetState ICU 2.6
uiter.h UCharIteratorSetState ICU 2.6
uiter.h @1 ICU 2.6
uiter.h UITER_UNKNOWN_INDEX ICU 2.6
uiter.h uiter_getState ICU 2.6
uiter.h uiter_setState ICU 2.6
uiter.h uiter_setUTF16BE ICU 2.6
uiter.h uiter_setUTF8 ICU 2.6
unorm.h UNORM_COMPARE_NORM_OPTIONS_SHIFT ICU 2.6
unorm.h @2 ICU 2.6
unorm.h UNORM_UNICODE_3_2 ICU 2.6
unorm.h unorm_isNormalizedWithOptions ICU 2.6
unorm.h unorm_quickCheckWithOptions ICU 2.6
uobject.h U_HAVE_PLACEMENT_NEW ICU 2.6
ures.h URES_NONE ICU 2.6
ures.h URES_STRING ICU 2.6
ures.h URES_BINARY ICU 2.6
ures.h URES_TABLE ICU 2.6
ures.h URES_ALIAS ICU 2.6
ures.h URES_INT ICU 2.6
ures.h URES_ARRAY ICU 2.6
ures.h URES_INT_VECTOR ICU 2.6
uscript.h USCRIPT_CANADIAN_ABORIGINAL ICU 2.6
uset.h uset_addAll ICU 2.6
ustring.h u_strCompareIter ICU 2.6
utypes.h U_LAYOUTEX_API ICU 2.6
uversion.h U_ICU_VERSION_MINOR_NUM ICU 2.6
uversion.h U_ICU_VERSION_SHORT ICU 2.6
uversion.h U_ICU_VERSION_SUFFIX ICU 2.6
Calendar getFirstDayOfWeek ICU 2.6
Collator compare ICU 2.6
Collator compare ICU 2.6
Collator compare ICU 2.6
Collator getAvailableLocales ICU 2.6
Collator registerFactory ICU 2.6
Collator registerInstance ICU 2.6
Collator unregister ICU 2.6
CollatorFactory (null) ICU 2.6
CollatorFactory createCollator ICU 2.6
CollatorFactory getDisplayName ICU 2.6
CollatorFactory getSupportedIDs ICU 2.6
CollatorFactory visible ICU 2.6
GregorianCalendar getActualMaximum ICU 2.6
Normalizer isNormalized ICU 2.6
Normalizer quickCheck ICU 2.6
NumberFormat getAvailableLocales ICU 2.6
NumberFormat getCurrency ICU 2.6
NumberFormat registerFactory ICU 2.6
NumberFormat unregister ICU 2.6
NumberFormatFactory createFormat ICU 2.6
NumberFormatFactory getSupportedIDs ICU 2.6
NumberFormatFactory visible ICU 2.6
RegexMatcher RegexMatcher ICU 2.6
RegexMatcher RegexMatcher ICU 2.6
RegexMatcher split ICU 2.6
RegexPattern compile ICU 2.6
RegexPattern matcher ICU 2.6
Replaceable clone ICU 2.6
RuleBasedCollator compare ICU 2.6
RuleBasedCollator compare ICU 2.6
RuleBasedCollator compare ICU 2.6
RuleBasedNumberFormat setDefaultRuleSet ICU 2.6
SimpleNumberFormatFactory SimpleNumberFormatFactory ICU 2.6
SimpleNumberFormatFactory getSupportedIDs ICU 2.6
SimpleNumberFormatFactory visible ICU 2.6
SimpleNumberFormatFactory _id ICU 2.6
SimpleNumberFormatFactory _visible ICU 2.6
UCharIterator getState ICU 2.6
UCharIterator setState ICU 2.6
UMemory operator delete ICU 2.6
UMemory operator new ICU 2.6
UnicodeString clone ICU 2.6
Calendar add ICU 2.6.
Calendar clear ICU 2.6.
Calendar fieldDifference ICU 2.6.
Calendar get ICU 2.6.
Calendar getActualMaximum ICU 2.6.
Calendar getActualMinimum ICU 2.6.
Calendar getGreatestMinimum ICU 2.6.
Calendar getLeastMaximum ICU 2.6.
Calendar getMaximum ICU 2.6.
Calendar getMinimum ICU 2.6.
Calendar internalSet ICU 2.6.
Calendar isSet ICU 2.6.
Calendar roll ICU 2.6.
Calendar roll ICU 2.6.
Calendar set ICU 2.6.
Calendar setFirstDayOfWeek ICU 2.6.
GregorianCalendar roll ICU 2.6.
ubrk.h ULineBreakTag ICU 2.8
ubrk.h USentenceBreakTag ICU 2.8
ubrk.h ULineBreakTag ICU 2.8
ubrk.h USentenceBreakTag ICU 2.8
ucal.h UCAL_EXTENDED_YEAR ICU 2.8
ucal.h UCAL_JULIAN_DAY ICU 2.8
ucal.h UCAL_MILLISECONDS_IN_DAY ICU 2.8
ucal.h UCAL_DAY_OF_MONTH ICU 2.8
uclean.h UMTX ICU 2.8
uclean.h UMemAllocFn ICU 2.8
uclean.h UMemFreeFn ICU 2.8
uclean.h UMemReallocFn ICU 2.8
uclean.h UMtxAtomicFn ICU 2.8
uclean.h UMtxFn ICU 2.8
uclean.h UMtxInitFn ICU 2.8
uclean.h u_setAtomicIncDecFunctions ICU 2.8
uclean.h u_setMemoryFunctions ICU 2.8
uclean.h u_setMutexFunctions ICU 2.8
ucnv.h UCNV_GET_MAX_BYTES_FOR_STRING ICU 2.8
ucol.h ucol_getUCAVersion ICU 2.8
uconfig.h UCONFIG_NO_SERVICE ICU 2.8
ucurr.h ucurr_forLocale ICU 2.8
uloc.h ULOC_KEYWORDS_CAPACITY ICU 2.8
uloc.h ULOC_KEYWORD_AND_VALUES_CAPACITY ICU 2.8
uloc.h ULOC_KEYWORD_ASSIGN ICU 2.8
uloc.h ULOC_KEYWORD_ITEM_SEPARATOR ICU 2.8
uloc.h ULOC_KEYWORD_SEPARATOR ICU 2.8
uloc.h ULOC_SCRIPT_CAPACITY ICU 2.8
uloc.h uloc_getBaseName ICU 2.8
uloc.h uloc_getDisplayKeyword ICU 2.8
uloc.h uloc_getDisplayKeywordValue ICU 2.8
uloc.h uloc_getDisplayScript ICU 2.8
uloc.h uloc_getKeywordValue ICU 2.8
uloc.h uloc_getScript ICU 2.8
uloc.h uloc_openKeywords ICU 2.8
ulocdata.h UMeasurementSystem ICU 2.8
ulocdata.h UMeasurementSystem ICU 2.8
ulocdata.h ulocdata_getExemplarSet ICU 2.8
ulocdata.h ulocdata_getMeasurementSystem ICU 2.8
ulocdata.h ulocdata_getPaperSize ICU 2.8
umachine.h INT64_C ICU 2.8
umachine.h UINT64_C ICU 2.8
unistr.h operator+ ICU 2.8
unum.h unum_parseInt64 ICU 2.8
uregex.h UREGEX_UWORD ICU 2.8
ures.h ures_getLocaleByType ICU 2.8
uset.h uset_applyPattern ICU 2.8
usprep.h USPREP_ALLOW_UNASSIGNED ICU 2.8
usprep.h USPREP_DEFAULT ICU 2.8
usprep.h UStringPrepProfile ICU 2.8
usprep.h usprep_close ICU 2.8
usprep.h usprep_open ICU 2.8
usprep.h usprep_prepare ICU 2.8
utf.h U_IS_BMP ICU 2.8
utf.h U_IS_SUPPLEMENTARY ICU 2.8
utrace.h UTraceData ICU 2.8
utrace.h UTraceEntry ICU 2.8
utrace.h UTraceExit ICU 2.8
utrace.h UTraceFunctionNumber ICU 2.8
utrace.h UTraceLevel ICU 2.8
utrace.h UTraceFunctionNumber ICU 2.8
utrace.h UTraceLevel ICU 2.8
utrace.h UTRACE_OFF ICU 2.8
utrace.h UTRACE_ERROR ICU 2.8
utrace.h UTRACE_WARNING ICU 2.8
utrace.h UTRACE_OPEN_CLOSE ICU 2.8
utrace.h UTRACE_INFO ICU 2.8
utrace.h UTRACE_VERBOSE ICU 2.8
utrace.h utrace_format ICU 2.8
utrace.h utrace_functionName ICU 2.8
utrace.h utrace_getFunctions ICU 2.8
utrace.h utrace_getLevel ICU 2.8
utrace.h utrace_setFunctions ICU 2.8
utrace.h utrace_setLevel ICU 2.8
utrace.h utrace_vformat ICU 2.8
utrans.h utrans_getUnicodeID ICU 2.8
utrans.h utrans_openIDs ICU 2.8
utrans.h utrans_openU ICU 2.8
utrans.h utrans_unregisterID ICU 2.8
ChoiceFormat format ICU 2.8
DecimalFormat format ICU 2.8
DecimalFormat format ICU 2.8
FieldPosition clone ICU 2.8
Formattable kInt64 ICU 2.8
Formattable Formattable ICU 2.8
Formattable clone ICU 2.8
Formattable getArray ICU 2.8
Formattable getDate ICU 2.8
Formattable getDouble ICU 2.8
Formattable getInt64 ICU 2.8
Formattable getInt64 ICU 2.8
Formattable getString ICU 2.8
Formattable getString ICU 2.8
Formattable getString ICU 2.8
Formattable setInt64 ICU 2.8
Locale clone ICU 2.8
Locale createKeywords ICU 2.8
Locale getBaseName ICU 2.8
Locale getDisplayScript ICU 2.8
Locale getDisplayScript ICU 2.8
Locale getKeywordValue ICU 2.8
Locale getScript ICU 2.8
NumberFormat format ICU 2.8
NumberFormat format ICU 2.8
ParsePosition clone ICU 2.8
RegexMatcher lookingAt ICU 2.8
RegexMatcher matches ICU 2.8
RegexMatcher reset ICU 2.8
ResourceBundle clone ICU 2.8
ResourceBundle getLocale ICU 2.8
RuleBasedBreakIterator RuleBasedBreakIterator ICU 2.8
SimpleTimeZone getOffset ICU 2.8
StringEnumeration StringEnumeration ICU 2.8
StringEnumeration clone ICU 2.8
StringEnumeration ensureCharsCapacity ICU 2.8
StringEnumeration setChars ICU 2.8
StringEnumeration chars ICU 2.8
StringEnumeration charsBuffer ICU 2.8
StringEnumeration charsCapacity ICU 2.8
StringEnumeration unistr ICU 2.8
StringSearch clone ICU 2.8
SymbolTable (null) ICU 2.8
TimeZone getOffset ICU 2.8
UnicodeSet UnicodeSet ICU 2.8
UnicodeSet applyPattern ICU 2.8
ubrk.h ubrk_getLocaleByType "ICU 2.8 likely to change in ICU 3.0, based on feedback"
ucal.h ucal_getLocaleByType "ICU 2.8 likely to change in ICU 3.0, based on feedback"
ucol.h ucol_getLocaleByType "ICU 2.8 likely to change in ICU 3.0, based on feedback"
udat.h udat_getLocaleByType "ICU 2.8 likely to change in ICU 3.0, based on feedback"
umsg.h umsg_getLocaleByType "ICU 2.8 likely to change in ICU 3.0, based on feedback"
unum.h unum_getLocaleByType "ICU 2.8 likely to change in ICU 3.0, based on feedback"
BreakIterator getLocale "ICU 2.8 likely to change in ICU 3.0, based on feedback"
Calendar getLocale "ICU 2.8 likely to change in ICU 3.0, based on feedback"
DateFormatSymbols getLocale "ICU 2.8 likely to change in ICU 3.0, based on feedback"
DecimalFormatSymbols getLocale "ICU 2.8 likely to change in ICU 3.0, based on feedback"
Format getLocale "ICU 2.8 likely to change in ICU 3.0, based on feedback"
ubrk.h ubrk_getRuleStatusVec ICU 3.0
ucurr.h ucurr_getDefaultFractionDigits ICU 3.0
ucurr.h ucurr_getRoundingIncrement ICU 3.0
udat.h UDateFormatField ICU 3.0
udat.h UDateFormatField ICU 3.0
udat.h UDAT_ERA_FIELD ICU 3.0
udat.h UDAT_YEAR_FIELD ICU 3.0
udat.h UDAT_MONTH_FIELD ICU 3.0
udat.h UDAT_DATE_FIELD ICU 3.0
udat.h UDAT_HOUR_OF_DAY1_FIELD ICU 3.0
udat.h UDAT_HOUR_OF_DAY0_FIELD ICU 3.0
udat.h UDAT_MINUTE_FIELD ICU 3.0
udat.h UDAT_SECOND_FIELD ICU 3.0
udat.h UDAT_FRACTIONAL_SECOND_FIELD ICU 3.0
udat.h UDAT_DAY_OF_WEEK_FIELD ICU 3.0
udat.h UDAT_DAY_OF_YEAR_FIELD ICU 3.0
udat.h UDAT_DAY_OF_WEEK_IN_MONTH_FIELD ICU 3.0
udat.h UDAT_WEEK_OF_YEAR_FIELD ICU 3.0
udat.h UDAT_WEEK_OF_MONTH_FIELD ICU 3.0
udat.h UDAT_AM_PM_FIELD ICU 3.0
udat.h UDAT_HOUR1_FIELD ICU 3.0
udat.h UDAT_HOUR0_FIELD ICU 3.0
udat.h UDAT_TIMEZONE_FIELD ICU 3.0
udat.h UDAT_YEAR_WOY_FIELD ICU 3.0
udat.h UDAT_DOW_LOCAL_FIELD ICU 3.0
udat.h UDAT_EXTENDED_YEAR_FIELD ICU 3.0
udat.h UDAT_JULIAN_DAY_FIELD ICU 3.0
udat.h UDAT_MILLISECONDS_IN_DAY_FIELD ICU 3.0
udat.h UDAT_TIMEZONE_RFC_FIELD ICU 3.0
udat.h UDAT_FIELD_COUNT ICU 3.0
unum.h UNUM_MIN_SIGNIFICANT_DIGITS ICU 3.0
unum.h UNUM_MAX_SIGNIFICANT_DIGITS ICU 3.0
unum.h UNUM_LENIENT_PARSE ICU 3.0
unum.h UNUM_PATTERN_DECIMAL ICU 3.0
unum.h UNUM_ORDINAL ICU 3.0
unum.h UNUM_DURATION ICU 3.0
unum.h UNUM_PATTERN_RULEBASED ICU 3.0
unum.h UNUM_SIGNIFICANT_DIGIT_SYMBOL ICU 3.0
unum.h UNUM_DEFAULT_RULESET ICU 3.0
unum.h UNUM_PUBLIC_RULESETS ICU 3.0
uregex.h URegularExpression ICU 3.0
uregex.h uregex_appendReplacement ICU 3.0
uregex.h uregex_appendTail ICU 3.0
uregex.h uregex_end ICU 3.0
uregex.h uregex_find ICU 3.0
uregex.h uregex_findNext ICU 3.0
uregex.h uregex_group ICU 3.0
uregex.h uregex_groupCount ICU 3.0
uregex.h uregex_lookingAt ICU 3.0
uregex.h uregex_matches ICU 3.0
uregex.h uregex_replaceAll ICU 3.0
uregex.h uregex_replaceFirst ICU 3.0
uregex.h uregex_reset ICU 3.0
uregex.h uregex_split ICU 3.0
uregex.h uregex_start ICU 3.0
DecimalFormat getMaximumSignificantDigits ICU 3.0
DecimalFormat getMinimumSignificantDigits ICU 3.0
DecimalFormat setCurrency ICU 3.0
DecimalFormat setMaximumSignificantDigits ICU 3.0
DecimalFormat setMinimumSignificantDigits ICU 3.0
DecimalFormatSymbols kSignificantDigitSymbol ICU 3.0
GregorianCalendar getActualMinimum ICU 3.0
NumberFormat setCurrency ICU 3.0
RuleBasedBreakIterator getRuleStatusVec ICU 3.0
RuleBasedNumberFormat getDefaultRuleSetName ICU 3.0
Transliterator countElements ICU 3.0
Transliterator getAvailableIDs ICU 3.0
Transliterator getElement ICU 3.0

View file

@ -0,0 +1,18 @@
DateFormat EField ICU 3.4 use UDateFormatField instead, since this API will be
ICULayoutEngine (null) ICU 3.0. Use LayoutEngine.h instead since this API will be removed in that release.
ICULayoutEngine ~ICULayoutEngine ICU 3.0. Use LayoutEngine.h instead since this API will be removed in that release.
ICULayoutEngine countGlyphs ICU 3.0. Use LayoutEngine.h instead since this API will be removed in that release.
ICULayoutEngine createInstance ICU 3.0. Use LayoutEngine.h instead since this API will be removed in that release.
ICULayoutEngine getCharIndices ICU 3.0. Use LayoutEngine.h instead since this API will be removed in that release.
ICULayoutEngine getCharIndices ICU 3.0. Use LayoutEngine.h instead since this API will be removed in that release.
ICULayoutEngine getDynamicClassID ICU 3.0. Use LayoutEngine.h instead since this API will be removed in that release.
ICULayoutEngine getGlyphPosition ICU 3.0. Use LayoutEngine.h instead since this API will be removed in that release.
ICULayoutEngine getGlyphPositions ICU 3.0. Use LayoutEngine.h instead since this API will be removed in that release.
ICULayoutEngine getGlyphs ICU 3.0. Use LayoutEngine.h instead since this API will be removed in that release.
ICULayoutEngine getStaticClassID ICU 3.0. Use LayoutEngine.h instead since this API will be removed in that release.
ICULayoutEngine layoutChars ICU 3.0. Use LayoutEngine.h instead since this API will be removed in that release.
ICULayoutEngine layoutString ICU 3.0. Use LayoutEngine.h instead since this API will be removed in that release.
MessageFormat EFormatNumber ICU 3.0. The 10-argument limit was removed as of ICU 2.6,
MessageFormat kMaxFormat ICU 3.0. The 10-argument limit was removed as of ICU 2.6,
Transliterator countAvailableIDs ICU 3.4 use getAvailableIDs() instead
Transliterator getAvailableID ICU 3.4 use getAvailableIDs() instead

View file

@ -0,0 +1,172 @@
#!/usr/bin/perl
#*
#*******************************************************************************
#* Copyright (C) 2004, International Business Machines
#* Corporation and others. All Rights Reserved.
#*******************************************************************************
#*
#* file name: gendraft.pl
#* encoding: US-ASCII
#* tab size: 8 (not used)
#* indentation:4
#*
#* Created by: Ram Viswanadha
#*
#* This tool filters the DraftAPI txt file generated by Doxygen and generates udarft.h
#* udeprctd.h and uobslete.h
#*
use File::Find;
use File::Basename;
use IO::File;
use Cwd;
use File::Copy;
use Getopt::Long;
use File::Path;
use File::Copy;
$draftHeaderName = "udraft.h";
$draftAppend = "DRAFT_API_DO_NOT_USE";
$draftDefine = "U_HIDE_DRAFT_API";
$deprecatedHeaderName = "udeprctd.h";
$deprecatedAppend = "DEPRECATED_API_DO_NOT_USE";
$deprecatedDefine = "U_HIDE_DEPRECATED_API";
$obsoleteHeaderName = "uobslete.h";
$obsoleteAppend = "OBSOLETE_API_DO_NOT_USE";
$obsoleteDefine = "U_HIDE_OBSOLETE_API";
$versionAppend="";
#run the program
main();
#---------------------------------------------------------------------
# The main program
sub main(){
GetOptions(
"--draft-file=s" => \$draftFile,
"--deprecated-file=s" => \$deprecatedFile,
"--obsolete-file=s" => \$obsoleteFile,
"--destdir=s" => \$destDir,
"--version=s" => \$version,
);
usage() unless defined $draftFile;
usage() unless defined $deprecatedFile;
usage() unless defined $obsoleteFile;
usage() unless defined $destDir;
usage() unless defined $version;
$versionAppend = $version;
$versionAppend=~ s/\./_/;
writeFile($draftFile, $draftHeaderName, $destDir, $draftAppend, $draftDefine);
writeFile($deprecatedFile, $deprecatedHeaderName, $destDir, $deprecatedAppend, $deprecatedDefine);
writeFile($obsoleteFile, $obsoleteHeaderName, $destDir, $obsoleteAppend, $obsoleteDefine);
}
#-----------------------------------------------------------------------
sub getHeaderDef{
($headerName) = @_;
$headerDef = uc($headerName); # this is building the constant for #define
$headerDef =~ s/\./_/;
return $headerDef;
}
#-----------------------------------------------------------------------
sub writeFile{
($inFileName,$outFileName,$destDir, $symbolAppend, $symbolDef) = @_;
$outFN = $destDir."/".$outFileName;
$inFH = IO::File->new($inFileName,"r")
or die "could not open the file $infile for reading: $! \n";
$outFH = IO::File->new($outFN,"w")
or die "could not open the file $outfile for writing: $! \n";
$headerDef = getHeaderDef($outFileName);
printHeader($outFH, $outFileName, $headerDef, $symbolDef);
parseWriteFile($inFH, $outFH, $symbolAppend);
printFooter($outFH, $headerDef, $symbolDef);
close($inFH);
close($outFH);
}
#-----------------------------------------------------------------------
sub printHeader{
($outFH, $headername, $HEADERDEF, $symbolDef) = @_;
#We will print our copyright here + warnings
print $outFH <<END_HEADER_COMMENT;
/*
*******************************************************************************
* Copyright (C) 2004, International Business Machines
* Corporation and others. All Rights Reserved.
*******************************************************************************
*
* file name: $headername
* encoding: US-ASCII
* tab size: 8 (not used)
* indentation:4
*
* Created by: gendraft.pl, a perl script written by Ram Viswanadha
*
* Contains data for commenting out APIs.
* Gets included by umachine.h
*
* THIS FILE IS MACHINE-GENERATED, DON'T PLAY WITH IT IF YOU DON'T KNOW WHAT
* YOU ARE DOING, OTHERWISE VERY BAD THINGS WILL HAPPEN!
*/
#ifndef $HEADERDEF
#define $HEADERDEF
#ifdef $symbolDef
END_HEADER_COMMENT
}
#-----------------------------------------------------------------------
sub parseWriteFile{
($inFH, $outFH, $symbolAppend) = @_;
while (defined ($line = <$inFH>)){
($a,$b,$c) = split( /\t/, $line);
#just process C APIs for now
if($b =~ /^[uU]/){
$realSymbol = $b."_".$versionAppend;
$nonExSymbol = $b."_".$symbolAppend;
print $outFH "#define ".$realSymbol." ".$nonExSymbol."\n";
}
}
}
#-----------------------------------------------------------------------
sub printFooter{
($outFH, $headerDef, $symbolDef ) = @_;
#print the footer
print $outFH <<END_FOOTER;
#endif /* $symbolDef */
#endif /* $headerDef */
END_FOOTER
}
#-----------------------------------------------------------------------
sub usage {
print << "END";
Usage:
gendraft.pl
Options:
--draft-file=<path and name of output file of Doxygen containing draft API symbols>
--deprecated-file=<path and name of output file of Doxygen containing deprecated API symbols>
--obsolete-file=<path and name of output file of Doxygen containing obsolete API symbols>
--destdir=<directory>
--version=<current version of ICU>
e.g.: gendraft.pl --draft-file=c:\blah\DraftAPI.txt --deprecated-file=c:\blah\DeprecatedAPI.txt --obsolete-file=c:\blah\ObsoleteFile.txt --destdir=<icu>/source/common/unicode --version=2.8
END
exit(0);
}