ICU-2661 @draft ICU 2.[01] -> @stable ICU 2.[01] + some comment typo fixing
X-SVN-Rev: 12264
This commit is contained in:
parent
c1ce9b779d
commit
939df78585
@ -457,7 +457,7 @@ public:
|
||||
* used; neither the requested locale nor any of its fall back locales
|
||||
* could be found.
|
||||
* The caller owns the returned object and is responsible for deleting it.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
static BreakIterator* createTitleInstance(const Locale& where,
|
||||
UErrorCode& status);
|
||||
|
@ -516,14 +516,14 @@ public:
|
||||
* with services that can be instantiated from non-locale data
|
||||
* in addition to locale (for example, collation can be
|
||||
* instantiated from a locale and from a rule set).
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
void setToBogus();
|
||||
|
||||
/**
|
||||
* Gets the bogus state. Locale object can be bogus if it doesn't exist
|
||||
* @return FALSE if it is a real locale, TRUE if it is a bogus locale
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
UBool isBogus(void) const;
|
||||
|
||||
|
@ -38,13 +38,13 @@
|
||||
U_CDECL_BEGIN
|
||||
|
||||
struct UCharIterator;
|
||||
typedef struct UCharIterator UCharIterator; /**< C typedef for struct UCharIterator. @draft ICU 2.1 */
|
||||
typedef struct UCharIterator UCharIterator; /**< C typedef for struct UCharIterator. @stable ICU 2.1 */
|
||||
|
||||
/**
|
||||
* Origin constants for UCharIterator.getIndex() and UCharIterator.move().
|
||||
* @see UCharIteratorMove
|
||||
* @see UCharIterator
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
typedef enum UCharIteratorOrigin {
|
||||
UITER_START, UITER_CURRENT, UITER_LIMIT, UITER_ZERO, UITER_LENGTH
|
||||
@ -98,7 +98,7 @@ enum {
|
||||
*
|
||||
* @see UCharIteratorOrigin
|
||||
* @see UCharIterator
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
typedef int32_t U_CALLCONV
|
||||
UCharIteratorGetIndex(UCharIterator *iter, UCharIteratorOrigin origin);
|
||||
@ -135,7 +135,7 @@ UCharIteratorGetIndex(UCharIterator *iter, UCharIteratorOrigin origin);
|
||||
* @see UCharIteratorOrigin
|
||||
* @see UCharIterator
|
||||
* @see UITER_UNKNOWN_INDEX
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
typedef int32_t U_CALLCONV
|
||||
UCharIteratorMove(UCharIterator *iter, int32_t delta, UCharIteratorOrigin origin);
|
||||
@ -150,7 +150,7 @@ UCharIteratorMove(UCharIterator *iter, int32_t delta, UCharIteratorOrigin origin
|
||||
* @return boolean value for whether current() and next() can still return another code unit
|
||||
*
|
||||
* @see UCharIterator
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
typedef UBool U_CALLCONV
|
||||
UCharIteratorHasNext(UCharIterator *iter);
|
||||
@ -164,7 +164,7 @@ UCharIteratorHasNext(UCharIterator *iter);
|
||||
* @return boolean value for whether previous() can still return another code unit
|
||||
*
|
||||
* @see UCharIterator
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
typedef UBool U_CALLCONV
|
||||
UCharIteratorHasPrevious(UCharIterator *iter);
|
||||
@ -179,7 +179,7 @@ UCharIteratorHasPrevious(UCharIterator *iter);
|
||||
* @return the current code unit
|
||||
*
|
||||
* @see UCharIterator
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
typedef UChar32 U_CALLCONV
|
||||
UCharIteratorCurrent(UCharIterator *iter);
|
||||
@ -195,7 +195,7 @@ UCharIteratorCurrent(UCharIterator *iter);
|
||||
* @return the current code unit (and post-increment the current index)
|
||||
*
|
||||
* @see UCharIterator
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
typedef UChar32 U_CALLCONV
|
||||
UCharIteratorNext(UCharIterator *iter);
|
||||
@ -211,7 +211,7 @@ UCharIteratorNext(UCharIterator *iter);
|
||||
* @return the previous code unit (after pre-decrementing the current index)
|
||||
*
|
||||
* @see UCharIterator
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
typedef UChar32 U_CALLCONV
|
||||
UCharIteratorPrevious(UCharIterator *iter);
|
||||
@ -225,7 +225,7 @@ UCharIteratorPrevious(UCharIterator *iter);
|
||||
* @return some integer
|
||||
*
|
||||
* @see UCharIterator
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
typedef int32_t U_CALLCONV
|
||||
UCharIteratorReserved(UCharIterator *iter, int32_t something);
|
||||
@ -320,47 +320,47 @@ UCharIteratorSetState(UCharIterator *iter, uint32_t state, UErrorCode *pErrorCod
|
||||
* UCharIterator functions return code unit values 0..0xffff,
|
||||
* or U_SENTINEL if the iteration bounds are reached.
|
||||
*
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
struct UCharIterator {
|
||||
/**
|
||||
* (protected) Pointer to string or wrapped object or similar.
|
||||
* Not used by caller.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
const void *context;
|
||||
|
||||
/**
|
||||
* (protected) Length of string or similar.
|
||||
* Not used by caller.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
int32_t length;
|
||||
|
||||
/**
|
||||
* (protected) Start index or similar.
|
||||
* Not used by caller.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
int32_t start;
|
||||
|
||||
/**
|
||||
* (protected) Current index or similar.
|
||||
* Not used by caller.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
int32_t index;
|
||||
|
||||
/**
|
||||
* (protected) Limit index or similar.
|
||||
* Not used by caller.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
int32_t limit;
|
||||
|
||||
/**
|
||||
* (protected) Used by UTF-8 iterators and possibly others.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
int32_t reservedField;
|
||||
|
||||
@ -369,7 +369,7 @@ struct UCharIterator {
|
||||
* start or limit index of the iteration range.
|
||||
*
|
||||
* @see UCharIteratorGetIndex
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
UCharIteratorGetIndex *getIndex;
|
||||
|
||||
@ -380,7 +380,7 @@ struct UCharIterator {
|
||||
* or backward by specifying a positive or negative delta.
|
||||
*
|
||||
* @see UCharIteratorMove
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
UCharIteratorMove *move;
|
||||
|
||||
@ -389,7 +389,7 @@ struct UCharIterator {
|
||||
* return another code unit.
|
||||
*
|
||||
* @see UCharIteratorHasNext
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
UCharIteratorHasNext *hasNext;
|
||||
|
||||
@ -397,7 +397,7 @@ struct UCharIterator {
|
||||
* (public) Check if previous() can still return another code unit.
|
||||
*
|
||||
* @see UCharIteratorHasPrevious
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
UCharIteratorHasPrevious *hasPrevious;
|
||||
|
||||
@ -406,7 +406,7 @@ struct UCharIterator {
|
||||
* or U_SENTINEL if there is none (index is at the limit).
|
||||
*
|
||||
* @see UCharIteratorCurrent
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
UCharIteratorCurrent *current;
|
||||
|
||||
@ -416,7 +416,7 @@ struct UCharIterator {
|
||||
* or return U_SENTINEL if there is none (index is at the limit).
|
||||
*
|
||||
* @see UCharIteratorNext
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
UCharIteratorNext *next;
|
||||
|
||||
@ -426,7 +426,7 @@ struct UCharIterator {
|
||||
* or return U_SENTINEL if there is none (index is at the start).
|
||||
*
|
||||
* @see UCharIteratorPrevious
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
UCharIteratorPrevious *previous;
|
||||
|
||||
@ -434,7 +434,7 @@ struct UCharIterator {
|
||||
* (public) Reserved for future use. Currently NULL.
|
||||
*
|
||||
* @see UCharIteratorReserved
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
UCharIteratorReserved *reservedFn;
|
||||
|
||||
@ -474,7 +474,7 @@ struct UCharIterator {
|
||||
* @see UCharIterator
|
||||
* @see U16_GET
|
||||
* @see UnicodeString::char32At()
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
U_CAPI UChar32 U_EXPORT2
|
||||
uiter_current32(UCharIterator *iter);
|
||||
@ -491,7 +491,7 @@ uiter_current32(UCharIterator *iter);
|
||||
*
|
||||
* @see UCharIterator
|
||||
* @see U16_NEXT
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
U_CAPI UChar32 U_EXPORT2
|
||||
uiter_next32(UCharIterator *iter);
|
||||
@ -508,7 +508,7 @@ uiter_next32(UCharIterator *iter);
|
||||
*
|
||||
* @see UCharIterator
|
||||
* @see U16_PREV
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
U_CAPI UChar32 U_EXPORT2
|
||||
uiter_previous32(UCharIterator *iter);
|
||||
@ -572,7 +572,7 @@ uiter_setState(UCharIterator *iter, uint32_t state, UErrorCode *pErrorCode);
|
||||
* @param length Length of s, or -1 if NUL-terminated
|
||||
*
|
||||
* @see UCharIterator
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
uiter_setString(UCharIterator *iter, const UChar *s, int32_t length);
|
||||
@ -656,7 +656,7 @@ uiter_setUTF8(UCharIterator *iter, const char *s, int32_t length);
|
||||
* @param charIter CharacterIterator to wrap
|
||||
*
|
||||
* @see UCharIterator
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
uiter_setCharacterIterator(UCharIterator *iter, CharacterIterator *charIter);
|
||||
@ -681,7 +681,7 @@ uiter_setCharacterIterator(UCharIterator *iter, CharacterIterator *charIter);
|
||||
* @param rep Replaceable to iterate over
|
||||
*
|
||||
* @see UCharIterator
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
uiter_setReplaceable(UCharIterator *iter, const Replaceable *rep);
|
||||
|
@ -272,7 +272,7 @@
|
||||
* from the UCA)
|
||||
* The locale is considered supported by ICU if there is a core ICU bundle
|
||||
* for that locale (although it may be empty).
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
typedef enum {
|
||||
/** This is locale the data actually comes from */
|
||||
|
@ -68,13 +68,13 @@ public:
|
||||
/**
|
||||
* UnicodeFunctor API. Cast 'this' to a UnicodeMatcher* pointer
|
||||
* and return the pointer.
|
||||
* @draft ICu 2.4
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
virtual UnicodeMatcher* toMatcher() const;
|
||||
|
||||
/**
|
||||
* Implement UnicodeMatcher API.
|
||||
* @draft ICu 2.4
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
virtual UMatchDegree matches(const Replaceable& text,
|
||||
int32_t& offset,
|
||||
@ -83,7 +83,7 @@ public:
|
||||
|
||||
/**
|
||||
* UnicodeFunctor API. Nothing to do.
|
||||
* @draft ICu 2.4
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
virtual void setData(const TransliterationRuleData*) {}
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
**********************************************************************
|
||||
* Copyright (c) 2002, International Business Machines Corporation
|
||||
* Copyright (c) 2002-2003, International Business Machines Corporation
|
||||
* and others. All Rights Reserved.
|
||||
**********************************************************************
|
||||
* Date Name Description
|
||||
@ -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
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
class U_COMMON_API UnicodeFunctor : public UObject {
|
||||
|
||||
@ -31,7 +31,7 @@ class U_COMMON_API UnicodeFunctor : public UObject {
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
* @draft ICu 2.4
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
virtual ~UnicodeFunctor();
|
||||
|
||||
@ -39,7 +39,7 @@ class U_COMMON_API UnicodeFunctor : public UObject {
|
||||
* 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
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
virtual UnicodeFunctor* clone() const = 0;
|
||||
|
||||
@ -51,7 +51,7 @@ class U_COMMON_API UnicodeFunctor : public UObject {
|
||||
* cannot be cast to a pointer to a UnicodeMatcher, since
|
||||
* UnicodeMatcher is a mixin that does not derive from
|
||||
* UnicodeFunctor.
|
||||
* @draft ICu 2.4
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
virtual UnicodeMatcher* toMatcher() const;
|
||||
|
||||
@ -63,7 +63,7 @@ class U_COMMON_API UnicodeFunctor : public UObject {
|
||||
* cannot be cast to a pointer to a UnicodeReplacer, since
|
||||
* UnicodeReplacer is a mixin that does not derive from
|
||||
* UnicodeFunctor.
|
||||
* @draft ICu 2.4
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
virtual UnicodeReplacer* toReplacer() const;
|
||||
|
||||
@ -101,7 +101,7 @@ class U_COMMON_API UnicodeFunctor : public UObject {
|
||||
* @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
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
virtual UClassID getDynamicClassID(void) const = 0;
|
||||
|
||||
@ -111,7 +111,7 @@ class U_COMMON_API UnicodeFunctor : public UObject {
|
||||
* method is required when assigning a functor to a different data
|
||||
* object. This function MAY GO AWAY later if the architecture is
|
||||
* changed to pass data object pointers through the API.
|
||||
* @draft ICU 2.1
|
||||
* @internal ICU 2.1
|
||||
*/
|
||||
virtual void setData(const TransliterationRuleData*) = 0;
|
||||
|
||||
|
@ -19,7 +19,7 @@ class UnicodeSet;
|
||||
/**
|
||||
* Constants returned by <code>UnicodeMatcher::matches()</code>
|
||||
* indicating the degree of match.
|
||||
* @draft ICu 2.4
|
||||
* @draft 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
|
||||
* @draft 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
|
||||
* @draft 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
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
U_MATCH
|
||||
};
|
||||
@ -57,7 +57,7 @@ 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
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
class U_COMMON_API UnicodeMatcher /* not : public UObject because this is an interface/mixin class */ {
|
||||
|
||||
@ -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
|
||||
* @draft 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
|
||||
* @draft 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
|
||||
* @draft 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
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
virtual void addMatchSetTo(UnicodeSet& toUnionTo) const = 0;
|
||||
};
|
||||
|
@ -2364,7 +2364,7 @@ public:
|
||||
* If none is provided (0), then a standard titlecase
|
||||
* break iterator is opened.
|
||||
* @return A reference to this.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
UnicodeString &toTitle(BreakIterator *titleIter);
|
||||
|
||||
@ -2392,7 +2392,7 @@ public:
|
||||
* break iterator is opened.
|
||||
* @param locale The locale to consider.
|
||||
* @return A reference to this.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
UnicodeString &toTitle(BreakIterator *titleIter, const Locale &locale);
|
||||
|
||||
|
@ -117,7 +117,7 @@ typedef struct UReplaceableCallbacks {
|
||||
* be copied
|
||||
* @param dst array in which to copy characters. The length of
|
||||
* <tt>dst</tt> must be at least <tt>(limit - start)</tt>.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
void (*extract)(UReplaceable* rep,
|
||||
int32_t start,
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include "unicode/utypes.h"
|
||||
#include "unicode/uiter.h"
|
||||
|
||||
/** Simple declaration for u_strToTitle() to avoid including unicode/ubrk.h. @draft ICU 2.1*/
|
||||
/** Simple declaration for u_strToTitle() to avoid including unicode/ubrk.h. @stable ICU 2.1*/
|
||||
#ifndef UBRK_TYPEDEF_UBREAK_ITERATOR
|
||||
# define UBRK_TYPEDEF_UBREAK_ITERATOR
|
||||
typedef void *UBreakIterator;
|
||||
@ -1113,7 +1113,7 @@ u_strToLower(UChar *dest, int32_t destCapacity,
|
||||
* which must not indicate a failure before the function call.
|
||||
* @return The length of the result string. It may be greater than destCapacity. In that case,
|
||||
* only some of the result was written to the destination buffer.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
U_CAPI int32_t U_EXPORT2
|
||||
u_strToTitle(UChar *dest, int32_t destCapacity,
|
||||
|
@ -358,7 +358,7 @@ public:
|
||||
* @param status Output param set to success/failure code on
|
||||
* exit. If the pattern is invalid, this will be
|
||||
* set to a failure result.
|
||||
* @draft ICU 2.0
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
virtual void applyPattern(const UnicodeString& pattern,
|
||||
UParseError& parseError,
|
||||
|
@ -487,7 +487,7 @@ public:
|
||||
* uloc.h
|
||||
* @return locale where the collation data lives. If the collator
|
||||
* was instantiated from rules, locale is empty.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
virtual const Locale getLocale(ULocDataLocaleType type, UErrorCode& status) const = 0;
|
||||
|
||||
@ -812,7 +812,7 @@ public:
|
||||
* issued.
|
||||
* @return The size needed to fully store the bound.
|
||||
* @see ucol_keyHashCode
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
static int32_t getBound(const uint8_t *source,
|
||||
int32_t sourceLength,
|
||||
|
@ -295,7 +295,7 @@ public:
|
||||
* @param fieldPosition On input: an alignment field, if desired (see examples above)
|
||||
* On output: the offsets of the alignment field (see examples above)
|
||||
* @return Reference to 'appendTo' parameter.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
virtual UnicodeString& format( Calendar& cal,
|
||||
UnicodeString& appendTo,
|
||||
@ -391,7 +391,7 @@ public:
|
||||
* output, the position at which parsing terminated, or the
|
||||
* start position if the parse failed.
|
||||
* @return A valid UDate if the input could be parsed.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
virtual void parse( const UnicodeString& text,
|
||||
Calendar& cal,
|
||||
|
@ -278,7 +278,7 @@ public:
|
||||
* @param parseError Output param to receive errors occured during parsing
|
||||
* @param status Output param set to success/failure code. If the
|
||||
* pattern is invalid this will be set to a failure code.
|
||||
* @draft ICU 2.0
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
DecimalFormat( const UnicodeString& pattern,
|
||||
DecimalFormatSymbols* symbolsToAdopt,
|
||||
@ -993,7 +993,7 @@ public:
|
||||
* @param status Output param set to success/failure code on
|
||||
* exit. If the pattern is invalid, this will be
|
||||
* set to a failure result.
|
||||
* @draft ICU 2.0
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
virtual void applyLocalizedPattern(const UnicodeString& pattern,
|
||||
UParseError& parseError,
|
||||
|
@ -360,7 +360,7 @@ public:
|
||||
* of error within pattern.
|
||||
* @param status Input/output error code. If the
|
||||
* pattern cannot be parsed, set to failure code.
|
||||
* @draft ICU 2.0
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
virtual void applyPattern(const UnicodeString& pattern,
|
||||
UParseError& parseError,
|
||||
|
@ -588,7 +588,7 @@ public:
|
||||
* @param toAppendTo the string that will hold the (appended) result
|
||||
* @param pos the fieldposition
|
||||
* @return A textual representation of the number.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
virtual UnicodeString& format(int64_t number,
|
||||
UnicodeString& toAppendTo,
|
||||
@ -630,7 +630,7 @@ public:
|
||||
* @param pos the fieldposition
|
||||
* @param status the status
|
||||
* @return A textual representation of the number.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
virtual UnicodeString& format(int64_t number,
|
||||
const UnicodeString& ruleSetName,
|
||||
|
@ -305,7 +305,7 @@ public:
|
||||
* @param pos The formatting position. On input: an alignment field,
|
||||
* if desired. On output: the offsets of the alignment field.
|
||||
* @return Reference to 'appendTo' parameter.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
virtual UnicodeString& format( Calendar& cal,
|
||||
UnicodeString& appendTo,
|
||||
@ -343,7 +343,7 @@ public:
|
||||
* @param fieldPosition The formatting position. On input: an alignment field,
|
||||
* if desired. On output: the offsets of the alignment field.
|
||||
* @return Reference to 'appendTo' parameter.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
UnicodeString& format(UDate date,
|
||||
UnicodeString& appendTo,
|
||||
@ -389,7 +389,7 @@ public:
|
||||
* output, the position at which parsing terminated, or the
|
||||
* start position if the parse failed.
|
||||
* @return A valid UDate if the input could be parsed.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
virtual void parse( const UnicodeString& text,
|
||||
Calendar& cal,
|
||||
|
@ -408,7 +408,7 @@ public:
|
||||
* @param status the error code status.
|
||||
* @return locale where the collation data lives. If the collator
|
||||
* was instantiated from rules, locale is empty.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
virtual const Locale getLocale(ULocDataLocaleType type, UErrorCode& status) const;
|
||||
|
||||
|
@ -582,7 +582,7 @@ typedef enum {
|
||||
* issued.
|
||||
* @return The size needed to fully store the bound.
|
||||
* @see ucol_keyHashCode
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
U_CAPI int32_t U_EXPORT2
|
||||
ucol_getBound(const uint8_t *source,
|
||||
@ -770,7 +770,7 @@ ucol_getRulesEx(const UCollator *coll, UColRuleOption delta, UChar *buffer, int3
|
||||
* @return real locale name from which the collation data comes.
|
||||
* If the collator was instantiated from rules, returns
|
||||
* NULL.
|
||||
* @draft ICU 2.1
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
U_CAPI const char * U_EXPORT2
|
||||
ucol_getLocale(const UCollator *coll, ULocDataLocaleType type, UErrorCode *status);
|
||||
|
@ -303,7 +303,7 @@ u_vparseMessage(const char *locale,
|
||||
* @return The total buffer size needed; if greater than resultLength, the
|
||||
* output was truncated.
|
||||
* @see u_parseMessage
|
||||
* @draft ICU 2.0
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
U_CAPI int32_t U_EXPORT2
|
||||
u_formatMessageWithError( const char *locale,
|
||||
@ -332,7 +332,7 @@ u_formatMessageWithError( const char *locale,
|
||||
* in pattern.
|
||||
* @return The total buffer size needed; if greater than resultLength, the
|
||||
* output was truncated.
|
||||
* @draft ICU 2.0
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
U_CAPI int32_t U_EXPORT2
|
||||
u_vformatMessageWithError( const char *locale,
|
||||
@ -360,7 +360,7 @@ u_vformatMessageWithError( const char *locale,
|
||||
* @param ... A variable-length argument list containing the arguments
|
||||
* specified in pattern.
|
||||
* @see u_formatMessage
|
||||
* @draft ICU 2.0
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
u_parseMessageWithError(const char *locale,
|
||||
@ -388,7 +388,7 @@ u_parseMessageWithError(const char *locale,
|
||||
* @param status A pointer to an UErrorCode to receive any errors
|
||||
* specified in pattern.
|
||||
* @see u_formatMessage
|
||||
* @draft ICU 2.0
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
u_vparseMessageWithError(const char *locale,
|
||||
@ -403,7 +403,7 @@ u_vparseMessageWithError(const char *locale,
|
||||
/*----------------------- New experimental API --------------------------- */
|
||||
/**
|
||||
* The message format object
|
||||
* @draft ICU 2.0
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
typedef void* UMessageFormat;
|
||||
|
||||
@ -418,7 +418,7 @@ typedef void* UMessageFormat;
|
||||
* @param status A pointer to an UErrorCode to receive any errors.
|
||||
* @return A pointer to a UMessageFormat to use for formatting
|
||||
* messages, or 0 if an error occurred.
|
||||
* @draft ICU 2.0
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
U_CAPI UMessageFormat* U_EXPORT2
|
||||
umsg_open( const UChar *pattern,
|
||||
@ -431,7 +431,7 @@ umsg_open( const UChar *pattern,
|
||||
* Close a UMessageFormat.
|
||||
* Once closed, a UMessageFormat may no longer be used.
|
||||
* @param format The formatter to close.
|
||||
* @draft ICU 2.0
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
umsg_close(UMessageFormat* format);
|
||||
@ -442,7 +442,7 @@ umsg_close(UMessageFormat* format);
|
||||
* @param fmt The formatter to copy
|
||||
* @param status A pointer to an UErrorCode to receive any errors.
|
||||
* @return A pointer to a UDateFormat identical to fmt.
|
||||
* @draft ICU 2.0
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
U_CAPI UMessageFormat U_EXPORT2
|
||||
umsg_clone(const UMessageFormat *fmt,
|
||||
@ -453,7 +453,7 @@ umsg_clone(const UMessageFormat *fmt,
|
||||
* format information.
|
||||
* @param fmt The formatter to set
|
||||
* @param locale The locale the formatter should use.
|
||||
* @draft ICU 2.0
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
umsg_setLocale(UMessageFormat *fmt,
|
||||
@ -464,7 +464,7 @@ umsg_setLocale(UMessageFormat *fmt,
|
||||
* format information.
|
||||
* @param fmt The formatter to querry
|
||||
* @return the locale.
|
||||
* @draft ICU 2.0
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
U_CAPI const char* U_EXPORT2
|
||||
umsg_getLocale(UMessageFormat *fmt);
|
||||
@ -479,7 +479,7 @@ umsg_getLocale(UMessageFormat *fmt);
|
||||
* @param status Output param set to success/failure code on
|
||||
* exit. If the pattern is invalid, this will be
|
||||
* set to a failure result.
|
||||
* @draft ICU 2.0
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
umsg_applyPattern( UMessageFormat *fmt,
|
||||
@ -497,7 +497,7 @@ umsg_applyPattern( UMessageFormat *fmt,
|
||||
* exit. If the pattern is invalid, this will be
|
||||
* set to a failure result.
|
||||
* @return the pattern of the format
|
||||
* @draft ICU 2.0
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
U_CAPI int32_t U_EXPORT2
|
||||
umsg_toPattern(UMessageFormat *fmt,
|
||||
|
@ -26,7 +26,7 @@ class UnicodeSet;
|
||||
*
|
||||
* <p>This is a mixin class.
|
||||
* @author Alan Liu
|
||||
* @draft ICu 2.4
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
class U_I18N_API UnicodeReplacer /* not : public UObject because this is an interface/mixin class */ {
|
||||
|
||||
@ -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
|
||||
* @draft 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
|
||||
* @draft 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
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
virtual void addReplacementSetTo(UnicodeSet& toUnionTo) const = 0;
|
||||
};
|
||||
|
@ -323,7 +323,7 @@ unum_parseDouble( const UNumberFormat* fmt,
|
||||
* @param patternLength The length of pattern, or -1 if null-terminated.
|
||||
* @param status A pointer to an UErrorCode to receive any errors
|
||||
* @see unum_toPattern
|
||||
* @draft ICU 2.0
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
unum_applyPattern( UNumberFormat *format,
|
||||
@ -357,7 +357,7 @@ unum_getAvailable(int32_t index);
|
||||
U_CAPI int32_t U_EXPORT2
|
||||
unum_countAvailable(void);
|
||||
|
||||
/** The possible UNumberFormat numeric attributes @draft ICU 2.0 */
|
||||
/** The possible UNumberFormat numeric attributes @stable ICU 2.0 */
|
||||
typedef enum UNumberFormatAttribute {
|
||||
/** Parse integers only */
|
||||
UNUM_PARSE_INT_ONLY,
|
||||
|
Loading…
Reference in New Issue
Block a user