mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-20 20:19:32 +00:00
ICU-7304 draft 4.2 to stable 4.4 ( also cleaned up some ICU-7290 issues )
X-SVN-Rev: 27396
This commit is contained in:
parent
50b0f19377
commit
b361793726
28 changed files with 270 additions and 270 deletions
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2009, International Business Machines
|
||||
// Copyright (C) 2009-2010, International Business Machines
|
||||
// Corporation and others. All Rights Reserved.
|
||||
//
|
||||
// Copyright 2007 Google Inc. All Rights Reserved.
|
||||
|
@ -43,18 +43,18 @@ U_NAMESPACE_BEGIN
|
|||
|
||||
/**
|
||||
* A ByteSink can be filled with bytes.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
class U_COMMON_API ByteSink : public UMemory {
|
||||
public:
|
||||
/**
|
||||
* Default constructor.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
ByteSink() { }
|
||||
/**
|
||||
* Virtual destructor.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual ~ByteSink() { }
|
||||
|
||||
|
@ -62,7 +62,7 @@ public:
|
|||
* Append "bytes[0,n-1]" to this.
|
||||
* @param bytes the pointer to the bytes
|
||||
* @param n the number of bytes; must be non-negative
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual void Append(const char* bytes, int32_t n) = 0;
|
||||
|
||||
|
@ -106,7 +106,7 @@ public:
|
|||
* @param result_capacity pointer to an integer which will be set to the
|
||||
* capacity of the returned buffer
|
||||
* @return a buffer with *result_capacity>=min_capacity
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual char* GetAppendBuffer(int32_t min_capacity,
|
||||
int32_t desired_capacity_hint,
|
||||
|
@ -118,7 +118,7 @@ public:
|
|||
* Some byte sinks use internal buffers or provide buffering
|
||||
* and require calling Flush() at the end of the stream.
|
||||
* The default implementation of Flush() does nothing.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual void Flush();
|
||||
|
||||
|
@ -137,7 +137,7 @@ private:
|
|||
* If more than capacity bytes are Append()ed, then excess bytes are ignored,
|
||||
* and Overflowed() will return true.
|
||||
* Overflow does not cause a runtime error.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
class U_COMMON_API CheckedArrayByteSink : public ByteSink {
|
||||
public:
|
||||
|
@ -145,14 +145,14 @@ public:
|
|||
* Constructs a ByteSink that will write to outbuf[0..capacity-1].
|
||||
* @param outbuf buffer to write to
|
||||
* @param capacity size of the buffer
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
CheckedArrayByteSink(char* outbuf, int32_t capacity);
|
||||
/**
|
||||
* Append "bytes[0,n-1]" to this.
|
||||
* @param bytes the pointer to the bytes
|
||||
* @param n the number of bytes; must be non-negative
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual void Append(const char* bytes, int32_t n);
|
||||
/**
|
||||
|
@ -167,7 +167,7 @@ public:
|
|||
* @param result_capacity pointer to an integer which will be set to the
|
||||
* capacity of the returned buffer
|
||||
* @return a buffer with *result_capacity>=min_capacity
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual char* GetAppendBuffer(int32_t min_capacity,
|
||||
int32_t desired_capacity_hint,
|
||||
|
@ -176,14 +176,14 @@ public:
|
|||
/**
|
||||
* Returns the number of bytes actually written to the sink.
|
||||
* @return number of bytes written to the buffer
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
int32_t NumberOfBytesWritten() const { return size_; }
|
||||
/**
|
||||
* Returns true if any bytes were discarded, i.e., if there was an
|
||||
* attempt to write more than 'capacity' bytes.
|
||||
* @return TRUE if more than 'capacity' bytes were Append()ed
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
UBool Overflowed() const { return overflowed_; }
|
||||
private:
|
||||
|
@ -201,7 +201,7 @@ private:
|
|||
/**
|
||||
* Implementation of ByteSink that writes to a "string".
|
||||
* The StringClass is usually instantiated with a std::string.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
template<typename StringClass>
|
||||
class StringByteSink : public ByteSink {
|
||||
|
@ -209,14 +209,14 @@ class StringByteSink : public ByteSink {
|
|||
/**
|
||||
* Constructs a ByteSink that will append bytes to the dest string.
|
||||
* @param dest pointer to string object to append to
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
StringByteSink(StringClass* dest) : dest_(dest) { }
|
||||
/**
|
||||
* Append "bytes[0,n-1]" to this.
|
||||
* @param bytes the pointer to the bytes
|
||||
* @param n the number of bytes; must be non-negative
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual void Append(const char* data, int32_t n) { dest_->append(data, n); }
|
||||
private:
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 2009, International Business Machines
|
||||
* Copyright (C) 2009-2010, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
|
@ -74,30 +74,30 @@ U_NAMESPACE_BEGIN
|
|||
* // IcuErrorCode destructor checks for success.
|
||||
* \endcode
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
class U_COMMON_API ErrorCode: public UMemory {
|
||||
public:
|
||||
/**
|
||||
* Default constructor. Initializes its UErrorCode to U_ZERO_ERROR.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
ErrorCode() : errorCode(U_ZERO_ERROR) {}
|
||||
/** Destructor, does nothing. See class documentation for details. @draft ICU 4.2 */
|
||||
/** Destructor, does nothing. See class documentation for details. @stable ICU 4.4 */
|
||||
virtual ~ErrorCode() {}
|
||||
/** Conversion operator, returns a reference. @draft ICU 4.2 */
|
||||
/** Conversion operator, returns a reference. @stable ICU 4.4 */
|
||||
operator UErrorCode & () { return errorCode; }
|
||||
/** Conversion operator, returns a pointer. @draft ICU 4.2 */
|
||||
/** Conversion operator, returns a pointer. @stable ICU 4.4 */
|
||||
operator UErrorCode * () { return &errorCode; }
|
||||
/** Tests for U_SUCCESS(). @draft ICU 4.2 */
|
||||
/** Tests for U_SUCCESS(). @stable ICU 4.4 */
|
||||
UBool isSuccess() const { return U_SUCCESS(errorCode); }
|
||||
/** Tests for U_FAILURE(). @draft ICU 4.2 */
|
||||
/** Tests for U_FAILURE(). @stable ICU 4.4 */
|
||||
UBool isFailure() const { return U_FAILURE(errorCode); }
|
||||
/** Returns the UErrorCode value. @draft ICU 4.2 */
|
||||
/** Returns the UErrorCode value. @stable ICU 4.4 */
|
||||
UErrorCode get() const { return errorCode; }
|
||||
/** Sets the UErrorCode value. @draft ICU 4.2 */
|
||||
/** Sets the UErrorCode value. @stable ICU 4.4 */
|
||||
void set(UErrorCode value) { errorCode=value; }
|
||||
/** Returns the UErrorCode value and resets it to U_ZERO_ERROR. @draft ICU 4.2 */
|
||||
/** Returns the UErrorCode value and resets it to U_ZERO_ERROR. @stable ICU 4.4 */
|
||||
UErrorCode reset();
|
||||
/**
|
||||
* Asserts isSuccess().
|
||||
|
@ -120,14 +120,14 @@ public:
|
|||
protected:
|
||||
/**
|
||||
* Internal UErrorCode, accessible to subclasses.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
UErrorCode errorCode;
|
||||
/**
|
||||
* Called by assertSuccess() if isFailure() is true.
|
||||
* A subclass should override this function to deal with a failure code:
|
||||
* Throw an exception, log an error, terminate the program, or similar.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual void handleFailure() const {}
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Copyright (C) 2009, International Business Machines
|
||||
// Copyright (C) 2010, International Business Machines
|
||||
// Corporation and others. All Rights Reserved.
|
||||
//
|
||||
// Copyright 2001 and onwards Google Inc.
|
||||
|
@ -47,7 +47,7 @@ U_NAMESPACE_BEGIN
|
|||
* Systematic usage of StringPiece is encouraged as it will reduce unnecessary
|
||||
* conversions from "const char*" to "string" and back again.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
class U_COMMON_API StringPiece : public UMemory {
|
||||
private:
|
||||
|
@ -57,19 +57,19 @@ class U_COMMON_API StringPiece : public UMemory {
|
|||
public:
|
||||
/**
|
||||
* Default constructor, creates an empty StringPiece.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
StringPiece() : ptr_(NULL), length_(0) { }
|
||||
/**
|
||||
* Constructs from a NUL-terminated const char * pointer.
|
||||
* @param str a NUL-terminated const char * pointer
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
StringPiece(const char* str);
|
||||
#if U_HAVE_STD_STRING
|
||||
/**
|
||||
* Constructs from a std::string.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
StringPiece(const U_STD_NSQ string& str)
|
||||
: ptr_(str.data()), length_(static_cast<int32_t>(str.size())) { }
|
||||
|
@ -78,14 +78,14 @@ class U_COMMON_API StringPiece : public UMemory {
|
|||
* Constructs from a const char * pointer and a specified length.
|
||||
* @param offset a const char * pointer (need not be terminated)
|
||||
* @param len the length of the string; must be non-negative
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { }
|
||||
/**
|
||||
* Substring of another StringPiece.
|
||||
* @param x the other StringPiece
|
||||
* @param pos start position in x; must be non-negative and <= x.length().
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
StringPiece(const StringPiece& x, int32_t pos);
|
||||
/**
|
||||
|
@ -94,7 +94,7 @@ class U_COMMON_API StringPiece : public UMemory {
|
|||
* @param pos start position in x; must be non-negative and <= x.length().
|
||||
* @param len length of the substring;
|
||||
* must be non-negative and will be pinned to at most x.length() - pos.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
StringPiece(const StringPiece& x, int32_t pos, int32_t len);
|
||||
|
||||
|
@ -106,38 +106,38 @@ class U_COMMON_API StringPiece : public UMemory {
|
|||
* typically a mistake to pass data() to a routine that expects a NUL
|
||||
* terminated string.
|
||||
* @return the string pointer
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
const char* data() const { return ptr_; }
|
||||
/**
|
||||
* Returns the string length. Same as length().
|
||||
* @return the string length
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
int32_t size() const { return length_; }
|
||||
/**
|
||||
* Returns the string length. Same as size().
|
||||
* @return the string length
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
int32_t length() const { return length_; }
|
||||
/**
|
||||
* Returns whether the string is empty.
|
||||
* @return TRUE if the string is empty
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
UBool empty() const { return length_ == 0; }
|
||||
|
||||
/**
|
||||
* Sets to an empty string.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
void clear() { ptr_ = NULL; length_ = 0; }
|
||||
|
||||
/**
|
||||
* Removes the first n string units.
|
||||
* @param n prefix length, must be non-negative and <=length()
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
void remove_prefix(int32_t n) {
|
||||
if (n >= 0) {
|
||||
|
@ -152,7 +152,7 @@ class U_COMMON_API StringPiece : public UMemory {
|
|||
/**
|
||||
* Removes the last n string units.
|
||||
* @param n suffix length, must be non-negative and <=length()
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
void remove_suffix(int32_t n) {
|
||||
if (n >= 0) {
|
||||
|
@ -166,7 +166,7 @@ class U_COMMON_API StringPiece : public UMemory {
|
|||
|
||||
/**
|
||||
* Maximum integer, used as a default value for substring methods.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
static const int32_t npos = 0x7fffffff;
|
||||
|
||||
|
@ -176,7 +176,7 @@ class U_COMMON_API StringPiece : public UMemory {
|
|||
* @param len length of the substring;
|
||||
* must be non-negative and will be pinned to at most length() - pos.
|
||||
* @return the substring StringPiece
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
StringPiece substr(int32_t pos, int32_t len = npos) const {
|
||||
return StringPiece(*this, pos, len);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 2008-2009, International Business Machines
|
||||
* Copyright (C) 2008-2010, International Business Machines
|
||||
* Corporation, Google and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
|
@ -65,9 +65,9 @@ typedef struct UConverterSelector UConverterSelector;
|
|||
* @param status an in/out ICU UErrorCode
|
||||
* @return the new selector
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_CAPI UConverterSelector* U_EXPORT2
|
||||
U_STABLE UConverterSelector* U_EXPORT2
|
||||
ucnvsel_open(const char* const* converterList, int32_t converterListSize,
|
||||
const USet* excludedCodePoints,
|
||||
const UConverterUnicodeSet whichSet, UErrorCode* status);
|
||||
|
@ -83,9 +83,9 @@ ucnvsel_open(const char* const* converterList, int32_t converterListSize,
|
|||
*
|
||||
* @param sel selector to close
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_CAPI void U_EXPORT2
|
||||
U_STABLE void U_EXPORT2
|
||||
ucnvsel_close(UConverterSelector *sel);
|
||||
|
||||
#if U_SHOW_CPLUSPLUS_API
|
||||
|
@ -120,9 +120,9 @@ U_NAMESPACE_END
|
|||
* @param status an in/out ICU UErrorCode
|
||||
* @return the new selector
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_CAPI UConverterSelector* U_EXPORT2
|
||||
U_STABLE UConverterSelector* U_EXPORT2
|
||||
ucnvsel_openFromSerialized(const void* buffer, int32_t length, UErrorCode* status);
|
||||
|
||||
/**
|
||||
|
@ -137,9 +137,9 @@ ucnvsel_openFromSerialized(const void* buffer, int32_t length, UErrorCode* statu
|
|||
* @return the required buffer capacity to hold serialize data (even if the call fails
|
||||
* with a U_BUFFER_OVERFLOW_ERROR, it will return the required capacity)
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_CAPI int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
ucnvsel_serialize(const UConverterSelector* sel,
|
||||
void* buffer, int32_t bufferCapacity, UErrorCode* status);
|
||||
|
||||
|
@ -155,9 +155,9 @@ ucnvsel_serialize(const UConverterSelector* sel,
|
|||
* The returned encoding names and their order will be the same as
|
||||
* supplied when building the selector.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_CAPI UEnumeration * U_EXPORT2
|
||||
U_STABLE UEnumeration * U_EXPORT2
|
||||
ucnvsel_selectForString(const UConverterSelector* sel,
|
||||
const UChar *s, int32_t length, UErrorCode *status);
|
||||
|
||||
|
@ -173,9 +173,9 @@ ucnvsel_selectForString(const UConverterSelector* sel,
|
|||
* The returned encoding names and their order will be the same as
|
||||
* supplied when building the selector.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_CAPI UEnumeration * U_EXPORT2
|
||||
U_STABLE UEnumeration * U_EXPORT2
|
||||
ucnvsel_selectForUTF8(const UConverterSelector* sel,
|
||||
const char *s, int32_t length, UErrorCode *status);
|
||||
|
||||
|
|
|
@ -476,7 +476,7 @@ public:
|
|||
* @param uset a USet (the ICU plain C type for UnicodeSet)
|
||||
* @return the corresponding UnicodeSet pointer.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
inline static UnicodeSet *fromUSet(USet *uset);
|
||||
|
||||
|
@ -486,7 +486,7 @@ public:
|
|||
* @param uset a const USet (the ICU plain C type for UnicodeSet)
|
||||
* @return the corresponding UnicodeSet pointer.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
inline static const UnicodeSet *fromUSet(const USet *uset);
|
||||
|
||||
|
@ -495,7 +495,7 @@ public:
|
|||
* USet is the plain C type for UnicodeSet
|
||||
*
|
||||
* @return a USet pointer for this UnicodeSet
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
inline USet *toUSet();
|
||||
|
||||
|
@ -505,7 +505,7 @@ public:
|
|||
* USet is the plain C type for UnicodeSet
|
||||
*
|
||||
* @return a const USet pointer for this UnicodeSet
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
inline const USet * toUSet() const;
|
||||
|
||||
|
@ -1322,7 +1322,7 @@ public:
|
|||
* Currently only the USET_CASE bit is supported. Any undefined bits
|
||||
* are ignored.
|
||||
* @return a reference to this set.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
UnicodeSet& closeOver(int32_t attribute);
|
||||
|
||||
|
@ -1330,7 +1330,7 @@ public:
|
|||
* Remove all strings from this set.
|
||||
*
|
||||
* @return a reference to this set.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual UnicodeSet &removeAllStrings();
|
||||
|
||||
|
|
|
@ -1600,7 +1600,7 @@ public:
|
|||
* Calls u_strToUTF8WithSub().
|
||||
*
|
||||
* @param sink A ByteSink to which the UTF-8 version of the string is written.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
* @see toUTF8String
|
||||
*/
|
||||
void toUTF8(ByteSink &sink) const;
|
||||
|
@ -1616,7 +1616,7 @@ public:
|
|||
* @param result A standard string (or a compatible object)
|
||||
* to which the UTF-8 version of the string is appended.
|
||||
* @return The string object.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
* @see toUTF8
|
||||
*/
|
||||
template<typename StringClass>
|
||||
|
@ -1641,7 +1641,7 @@ public:
|
|||
* function chaining. (See User Guide for details.)
|
||||
* @return The length of the UTF-32 string.
|
||||
* @see fromUTF32
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
int32_t toUTF32(UChar32 *utf32, int32_t capacity, UErrorCode &errorCode) const;
|
||||
|
||||
|
@ -3049,7 +3049,7 @@ public:
|
|||
* @return A UnicodeString with equivalent UTF-16 contents.
|
||||
* @see toUTF8
|
||||
* @see toUTF8String
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
static UnicodeString fromUTF8(const StringPiece &utf8);
|
||||
|
||||
|
@ -3062,7 +3062,7 @@ public:
|
|||
* @param length Length of the input string, or -1 if NUL-terminated.
|
||||
* @return A UnicodeString with equivalent UTF-16 contents.
|
||||
* @see toUTF32
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
static UnicodeString fromUTF32(const UChar32 *utf32, int32_t length);
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 2002-2009, International Business Machines
|
||||
* Copyright (C) 2002-2010, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
|
@ -244,9 +244,9 @@ typedef struct USerializedSet {
|
|||
* Equivalent to uset_open(1, 0).
|
||||
* @return a newly created USet. The caller must call uset_close() on
|
||||
* it when done.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT USet* U_EXPORT2
|
||||
U_STABLE USet* U_EXPORT2
|
||||
uset_openEmpty();
|
||||
|
||||
/**
|
||||
|
@ -328,7 +328,7 @@ U_NAMESPACE_END
|
|||
* @see uset_cloneAsThawed
|
||||
* @stable ICU 3.8
|
||||
*/
|
||||
U_DRAFT USet * U_EXPORT2
|
||||
U_STABLE USet * U_EXPORT2
|
||||
uset_clone(const USet *set);
|
||||
|
||||
/**
|
||||
|
@ -340,7 +340,7 @@ uset_clone(const USet *set);
|
|||
* @see uset_cloneAsThawed
|
||||
* @stable ICU 3.8
|
||||
*/
|
||||
U_DRAFT UBool U_EXPORT2
|
||||
U_STABLE UBool U_EXPORT2
|
||||
uset_isFrozen(const USet *set);
|
||||
|
||||
/**
|
||||
|
@ -357,7 +357,7 @@ uset_isFrozen(const USet *set);
|
|||
* @see uset_cloneAsThawed
|
||||
* @stable ICU 3.8
|
||||
*/
|
||||
U_DRAFT void U_EXPORT2
|
||||
U_STABLE void U_EXPORT2
|
||||
uset_freeze(USet *set);
|
||||
|
||||
/**
|
||||
|
@ -370,7 +370,7 @@ uset_freeze(USet *set);
|
|||
* @see uset_clone
|
||||
* @stable ICU 3.8
|
||||
*/
|
||||
U_DRAFT USet * U_EXPORT2
|
||||
U_STABLE USet * U_EXPORT2
|
||||
uset_cloneAsThawed(const USet *set);
|
||||
|
||||
/**
|
||||
|
@ -727,18 +727,18 @@ uset_clear(USet* set);
|
|||
* @param attributes bitmask for attributes to close over.
|
||||
* Currently only the USET_CASE bit is supported. Any undefined bits
|
||||
* are ignored.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT void U_EXPORT2
|
||||
U_STABLE void U_EXPORT2
|
||||
uset_closeOver(USet* set, int32_t attributes);
|
||||
|
||||
/**
|
||||
* Remove all strings from this set.
|
||||
*
|
||||
* @param set the set
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT void U_EXPORT2
|
||||
U_STABLE void U_EXPORT2
|
||||
uset_removeAllStrings(USet* set);
|
||||
|
||||
/**
|
||||
|
@ -922,7 +922,7 @@ uset_containsSome(const USet* set1, const USet* set2);
|
|||
* @stable ICU 3.8
|
||||
* @see USetSpanCondition
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
uset_span(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition);
|
||||
|
||||
/**
|
||||
|
@ -943,7 +943,7 @@ uset_span(const USet *set, const UChar *s, int32_t length, USetSpanCondition spa
|
|||
* @stable ICU 3.8
|
||||
* @see USetSpanCondition
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
uset_spanBack(const USet *set, const UChar *s, int32_t length, USetSpanCondition spanCondition);
|
||||
|
||||
/**
|
||||
|
@ -965,7 +965,7 @@ uset_spanBack(const USet *set, const UChar *s, int32_t length, USetSpanCondition
|
|||
* @stable ICU 3.8
|
||||
* @see USetSpanCondition
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
uset_spanUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition);
|
||||
|
||||
/**
|
||||
|
@ -986,7 +986,7 @@ uset_spanUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition
|
|||
* @stable ICU 3.8
|
||||
* @see USetSpanCondition
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
uset_spanBackUTF8(const USet *set, const char *s, int32_t length, USetSpanCondition spanCondition);
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
*
|
||||
* Copyright (C) 2003-2009, International Business Machines
|
||||
* Copyright (C) 2003-2010, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*
|
||||
*******************************************************************************
|
||||
|
@ -88,78 +88,78 @@ typedef struct UStringPrepProfile UStringPrepProfile;
|
|||
* enums for the standard stringprep profile types
|
||||
* supported by usprep_openByType.
|
||||
* @see usprep_openByType
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
typedef enum UStringPrepProfileType {
|
||||
/**
|
||||
* RFC3491 Nameprep
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
USPREP_RFC3491_NAMEPREP,
|
||||
/**
|
||||
* RFC3530 nfs4_cs_prep
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
USPREP_RFC3530_NFS4_CS_PREP,
|
||||
/**
|
||||
* RFC3530 nfs4_cs_prep with case insensitive option
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
USPREP_RFC3530_NFS4_CS_PREP_CI,
|
||||
/**
|
||||
* RFC3530 nfs4_cis_prep
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
USPREP_RFC3530_NFS4_CIS_PREP,
|
||||
/**
|
||||
* RFC3530 nfs4_mixed_prep for prefix
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
USPREP_RFC3530_NFS4_MIXED_PREP_PREFIX,
|
||||
/**
|
||||
* RFC3530 nfs4_mixed_prep for suffix
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
USPREP_RFC3530_NFS4_MIXED_PREP_SUFFIX,
|
||||
/**
|
||||
* RFC3722 iSCSI
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
USPREP_RFC3722_ISCSI,
|
||||
/**
|
||||
* RFC3920 XMPP Nodeprep
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
USPREP_RFC3920_NODEPREP,
|
||||
/**
|
||||
* RFC3920 XMPP Resourceprep
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
USPREP_RFC3920_RESOURCEPREP,
|
||||
/**
|
||||
* RFC4011 Policy MIB Stringprep
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
USPREP_RFC4011_MIB,
|
||||
/**
|
||||
* RFC4013 SASLprep
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
USPREP_RFC4013_SASLPREP,
|
||||
/**
|
||||
* RFC4505 trace
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
USPREP_RFC4505_TRACE,
|
||||
/**
|
||||
* RFC4518 LDAP
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
USPREP_RFC4518_LDAP,
|
||||
/**
|
||||
* RFC4518 LDAP for case ignore, numeric and stored prefix
|
||||
* matching rules
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
USPREP_RFC4518_LDAP_CI
|
||||
} UStringPrepProfileType;
|
||||
|
@ -193,9 +193,9 @@ usprep_open(const char* path,
|
|||
* @return Pointer to UStringPrepProfile that is opened. Should be closed by
|
||||
* calling usprep_close()
|
||||
* @see usprep_close()
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT UStringPrepProfile* U_EXPORT2
|
||||
U_STABLE UStringPrepProfile* U_EXPORT2
|
||||
usprep_openByType(UStringPrepProfileType type,
|
||||
UErrorCode* status);
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
|
||||
/** The current ICU build level version as an integer.
|
||||
* This value is for use by ICU clients. It defaults to 0.
|
||||
* @draft ICU 4.0
|
||||
* @stable ICU 4.0
|
||||
*/
|
||||
#ifndef U_ICU_VERSION_BUILDLEVEL_NUM
|
||||
#define U_ICU_VERSION_BUILDLEVEL_NUM 0
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2000-2009, International Business Machines
|
||||
* Copyright (C) 2000-2010, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
*******************************************************************************
|
||||
*
|
||||
|
@ -179,7 +179,7 @@ u_versionFromString(UVersionInfo versionArray, const char *versionString);
|
|||
* @param versionString A Unicode string with dotted-decimal version
|
||||
* information, with up to four non-negative number
|
||||
* fields with values of up to 255 each.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_STABLE void U_EXPORT2
|
||||
u_versionFromUString(UVersionInfo versionArray, const UChar *versionString);
|
||||
|
|
|
@ -380,7 +380,7 @@ public:
|
|||
* it will return all the available values for the locale.
|
||||
* @param status ICU Error Code
|
||||
* @return a string enumeration over keyword values for the given key and the locale.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
static StringEnumeration* U_EXPORT2 getKeywordValuesForLocale(const char* key,
|
||||
const Locale& locale, UBool commonlyUsed, UErrorCode& status);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
******************************************************************************
|
||||
* Copyright (C) 1996-2009, International Business Machines *
|
||||
* Copyright (C) 1996-2010, International Business Machines *
|
||||
* Corporation and others. All Rights Reserved. *
|
||||
******************************************************************************
|
||||
*/
|
||||
|
@ -448,7 +448,7 @@ public:
|
|||
* @param tIter the second ("target") string iterator
|
||||
* @param status ICU status
|
||||
* @return UCOL_LESS, UCOL_EQUAL or UCOL_GREATER
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual UCollationResult compare(UCharIterator &sIter,
|
||||
UCharIterator &tIter,
|
||||
|
@ -465,7 +465,7 @@ public:
|
|||
* @param target the second UTF-8 string
|
||||
* @param status ICU status
|
||||
* @return UCOL_LESS, UCOL_EQUAL or UCOL_GREATER
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual UCollationResult compareUTF8(const StringPiece &source,
|
||||
const StringPiece &target,
|
||||
|
@ -682,7 +682,7 @@ public:
|
|||
* it will return all the available values for the locale.
|
||||
* @param status ICU status
|
||||
* @return a string enumeration over keyword values for the given key and the locale.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
static StringEnumeration* U_EXPORT2 getKeywordValuesForLocale(const char* keyword, const Locale& locale,
|
||||
UBool commonlyUsed, UErrorCode& status);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -41,7 +41,7 @@ class Hashtable;
|
|||
* plural rule of the locale,
|
||||
* currency plural pattern of the locale.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
class U_I18N_API CurrencyPluralInfo : public UObject {
|
||||
public:
|
||||
|
@ -49,7 +49,7 @@ public:
|
|||
/**
|
||||
* Create a CurrencyPluralInfo object for the default locale.
|
||||
* @param status output param set to success/failure code on exit
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
CurrencyPluralInfo(UErrorCode& status);
|
||||
|
||||
|
@ -57,14 +57,14 @@ public:
|
|||
* Create a CurrencyPluralInfo object for the given locale.
|
||||
* @param locale the locale
|
||||
* @param status output param set to success/failure code on exit
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
CurrencyPluralInfo(const Locale& locale, UErrorCode& status);
|
||||
|
||||
/**
|
||||
* Copy constructor
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
CurrencyPluralInfo(const CurrencyPluralInfo& info);
|
||||
|
||||
|
@ -72,7 +72,7 @@ public:
|
|||
/**
|
||||
* Assignment operator
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
CurrencyPluralInfo& operator=(const CurrencyPluralInfo& info);
|
||||
|
||||
|
@ -80,7 +80,7 @@ public:
|
|||
/**
|
||||
* Destructor
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual ~CurrencyPluralInfo();
|
||||
|
||||
|
@ -88,7 +88,7 @@ public:
|
|||
/**
|
||||
* Equal operator.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
UBool operator==(const CurrencyPluralInfo& info) const;
|
||||
|
||||
|
@ -96,7 +96,7 @@ public:
|
|||
/**
|
||||
* Not equal operator
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
UBool operator!=(const CurrencyPluralInfo& info) const;
|
||||
|
||||
|
@ -104,7 +104,7 @@ public:
|
|||
/**
|
||||
* Clone
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
CurrencyPluralInfo* clone() const;
|
||||
|
||||
|
@ -113,7 +113,7 @@ public:
|
|||
* Gets plural rules of this locale, used for currency plural format
|
||||
*
|
||||
* @return plural rule
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
const PluralRules* getPluralRules() const;
|
||||
|
||||
|
@ -124,7 +124,7 @@ public:
|
|||
* @param pluralCount currency plural count
|
||||
* @param result output param to receive the pattern
|
||||
* @return a currency plural pattern based on plural count
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
UnicodeString& getCurrencyPluralPattern(const UnicodeString& pluralCount,
|
||||
UnicodeString& result) const;
|
||||
|
@ -133,7 +133,7 @@ public:
|
|||
* Get locale
|
||||
*
|
||||
* @return locale
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
const Locale& getLocale() const;
|
||||
|
||||
|
@ -146,7 +146,7 @@ public:
|
|||
*
|
||||
* @param ruleDescription new plural rule description
|
||||
* @param status output param set to success/failure code on exit
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
void setPluralRules(const UnicodeString& ruleDescription,
|
||||
UErrorCode& status);
|
||||
|
@ -162,7 +162,7 @@ public:
|
|||
* be overridden.
|
||||
* @param pattern the new currency plural pattern
|
||||
* @param status output param set to success/failure code on exit
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
void setCurrencyPluralPattern(const UnicodeString& pluralCount,
|
||||
const UnicodeString& pattern,
|
||||
|
@ -173,21 +173,21 @@ public:
|
|||
*
|
||||
* @param loc the new locale to set
|
||||
* @param status output param set to success/failure code on exit
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
void setLocale(const Locale& loc, UErrorCode& status);
|
||||
|
||||
/**
|
||||
* ICU "poor man's RTTI", returns a UClassID for the actual class.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual UClassID getDynamicClassID() const;
|
||||
|
||||
/**
|
||||
* ICU "poor man's RTTI", returns a UClassID for this class.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
static UClassID U_EXPORT2 getStaticClassID();
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
********************************************************************************
|
||||
* Copyright (C) 1997-2009, International Business Machines
|
||||
* Copyright (C) 1997-2010, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
********************************************************************************
|
||||
*
|
||||
|
|
|
@ -1100,7 +1100,7 @@ public:
|
|||
* Returns the currency plural format information,
|
||||
* which is generally not changed by the programmer or user.
|
||||
* @return desired CurrencyPluralInfo
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual const CurrencyPluralInfo* getCurrencyPluralInfo(void) const;
|
||||
|
||||
|
@ -1108,7 +1108,7 @@ public:
|
|||
* Sets the currency plural format information,
|
||||
* which is generally not changed by the programmer or user.
|
||||
* @param toAdopt CurrencyPluralInfo to be adopted.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual void adoptCurrencyPluralInfo(CurrencyPluralInfo* toAdopt);
|
||||
|
||||
|
@ -1116,7 +1116,7 @@ public:
|
|||
* Sets the currency plural format information,
|
||||
* which is generally not changed by the programmer or user.
|
||||
* @param info Currency Plural Info.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual void setCurrencyPluralInfo(const CurrencyPluralInfo& info);
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
********************************************************************************
|
||||
* Copyright (C) 1997-2008, International Business Machines
|
||||
* Copyright (C) 1997-2010, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
********************************************************************************
|
||||
*
|
||||
|
@ -218,7 +218,7 @@ public:
|
|||
*
|
||||
* @param count Filled in with length of the array.
|
||||
* @return the narrow era strings.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
const UnicodeString* getNarrowEras(int32_t& count) const;
|
||||
|
||||
|
@ -226,7 +226,7 @@ public:
|
|||
* Sets narrow era strings. For example: "A" and "B".
|
||||
* @param narrowEras Array of narrow era strings (DateFormatSymbols retains ownership.)
|
||||
* @param count Filled in with length of the array.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
void setNarrowEras(const UnicodeString* narrowEras, int32_t count);
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, International Business Machines Corporation and
|
||||
* Copyright (C) 2010, International Business Machines Corporation and
|
||||
* others. All Rights Reserved.
|
||||
*******************************************************************************
|
||||
*
|
||||
|
@ -52,19 +52,19 @@ public:
|
|||
/**
|
||||
* Default Constructor.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
NumberingSystem();
|
||||
|
||||
/**
|
||||
* Copy constructor.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
NumberingSystem(const NumberingSystem& other);
|
||||
|
||||
/**
|
||||
* Destructor.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual ~NumberingSystem();
|
||||
|
||||
|
@ -72,13 +72,13 @@ public:
|
|||
* Create the default numbering system associated with the specified locale.
|
||||
* @param inLocale The given locale.
|
||||
* @param status ICU status
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
static NumberingSystem* U_EXPORT2 createInstance(const Locale & inLocale, UErrorCode& status);
|
||||
|
||||
/**
|
||||
* Create the default numbering system associated with the default locale.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
static NumberingSystem* U_EXPORT2 createInstance(UErrorCode& status);
|
||||
|
||||
|
@ -89,13 +89,13 @@ public:
|
|||
* @param description The string representing the set of digits used in a numeric system, or the name of the RBNF
|
||||
* ruleset to be used in an algorithmic system.
|
||||
* @param status ICU status
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
static NumberingSystem* U_EXPORT2 createInstance(int32_t radix, UBool isAlgorithmic, const UnicodeString& description, UErrorCode& status );
|
||||
|
||||
/**
|
||||
* Return a StringEnumeration over all the names of numbering systems known to ICU.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
|
||||
static StringEnumeration * U_EXPORT2 getAvailableNames(UErrorCode& status);
|
||||
|
@ -104,14 +104,14 @@ public:
|
|||
* Create a numbering system from one of the predefined numbering systems known to ICU.
|
||||
* @param name The name of the numbering system.
|
||||
* @param status ICU status
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
static NumberingSystem* U_EXPORT2 createInstanceByName(const char* name, UErrorCode& status);
|
||||
|
||||
|
||||
/**
|
||||
* Returns the radix of this numbering system.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
int32_t getRadix();
|
||||
|
||||
|
@ -119,7 +119,7 @@ public:
|
|||
* Returns the description string of this numbering system, which is either
|
||||
* the string of digits in the case of simple systems, or the ruleset name
|
||||
* in the case of algorithmic systems.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual UnicodeString getDescription();
|
||||
|
||||
|
@ -130,14 +130,14 @@ public:
|
|||
*
|
||||
* @return TRUE if the numbering system is algorithmic.
|
||||
* Otherwise, return FALSE.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
UBool isAlgorithmic() const;
|
||||
|
||||
/**
|
||||
* ICU "poor man's RTTI", returns a UClassID for this class.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*
|
||||
*/
|
||||
static UClassID U_EXPORT2 getStaticClassID(void);
|
||||
|
@ -145,7 +145,7 @@ public:
|
|||
/**
|
||||
* ICU "poor man's RTTI", returns a UClassID for the actual class.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual UClassID getDynamicClassID() const;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 1997-2009, International Business Machines Corporation and others. All Rights Reserved.
|
||||
* Copyright (C) 1997-2010, International Business Machines Corporation and others. All Rights Reserved.
|
||||
*******************************************************************************
|
||||
*
|
||||
* File SMPDTFMT.H
|
||||
|
@ -257,7 +257,7 @@ public:
|
|||
* @param pattern the pattern for the format.
|
||||
* @param override the override string.
|
||||
* @param status Output param set to success/failure code.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
SimpleDateFormat(const UnicodeString& pattern,
|
||||
const UnicodeString& override,
|
||||
|
@ -298,7 +298,7 @@ public:
|
|||
* @param override the numbering system override.
|
||||
* @param locale the given locale.
|
||||
* @param status Output param set to success/failure code.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
SimpleDateFormat(const UnicodeString& pattern,
|
||||
const UnicodeString& override,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
******************************************************************************
|
||||
* Copyright (C) 1996-2009, International Business Machines Corporation and
|
||||
* Copyright (C) 1996-2010, International Business Machines Corporation and
|
||||
* others. All Rights Reserved.
|
||||
******************************************************************************
|
||||
*/
|
||||
|
@ -397,7 +397,7 @@ public:
|
|||
* @param tIter the second ("target") string iterator
|
||||
* @param status ICU status
|
||||
* @return UCOL_LESS, UCOL_EQUAL or UCOL_GREATER
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual UCollationResult compare(UCharIterator &sIter,
|
||||
UCharIterator &tIter,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, Google, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, Google, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -25,13 +25,13 @@ U_NAMESPACE_BEGIN
|
|||
* Measurement unit for time units.
|
||||
* @see TimeUnitAmount
|
||||
* @see TimeUnit
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
class U_I18N_API TimeUnit: public MeasureUnit {
|
||||
public:
|
||||
/**
|
||||
* Constants for all the time units we supported.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
enum UTimeUnitFields {
|
||||
UTIMEUNIT_YEAR,
|
||||
|
@ -52,7 +52,7 @@ public:
|
|||
* If the timeUnitField is invalid,
|
||||
* then this will be set to U_ILLEGAL_ARGUMENT_ERROR.
|
||||
* @return a TimeUnit instance
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
static TimeUnit* U_EXPORT2 createInstance(UTimeUnitFields timeUnitField,
|
||||
UErrorCode& status);
|
||||
|
@ -60,33 +60,33 @@ public:
|
|||
|
||||
/**
|
||||
* Override clone.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual UObject* clone() const;
|
||||
|
||||
/**
|
||||
* Copy operator.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
TimeUnit(const TimeUnit& other);
|
||||
|
||||
/**
|
||||
* Assignment operator.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
TimeUnit& operator=(const TimeUnit& other);
|
||||
|
||||
/**
|
||||
* Equality operator.
|
||||
* @return true if 2 objects are the same.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual UBool operator==(const UObject& other) const;
|
||||
|
||||
/**
|
||||
* Non-Equality operator.
|
||||
* @return true if 2 objects are not the same.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
UBool operator!=(const UObject& other) const;
|
||||
|
||||
|
@ -96,7 +96,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 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual UClassID getDynamicClassID() const;
|
||||
|
||||
|
@ -104,7 +104,7 @@ public:
|
|||
* Returns the class ID for this class. This is used to compare to
|
||||
* the return value of getDynamicClassID().
|
||||
* @return The class ID for all objects of this class.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
static UClassID U_EXPORT2 getStaticClassID();
|
||||
|
||||
|
@ -112,13 +112,13 @@ public:
|
|||
/**
|
||||
* Get time unit field.
|
||||
* @return time unit field.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
UTimeUnitFields getTimeUnitField() const;
|
||||
|
||||
/**
|
||||
* Destructor.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual ~TimeUnit();
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2009, Google, International Business Machines Corporation and *
|
||||
* Copyright (C) 2009-2010, Google, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -26,7 +26,7 @@ U_NAMESPACE_BEGIN
|
|||
* Express a duration as a time unit and number. Patterned after Currency.
|
||||
* @see TimeUnitAmount
|
||||
* @see TimeUnitFormat
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
class U_I18N_API TimeUnitAmount: public Measure {
|
||||
public:
|
||||
|
@ -40,7 +40,7 @@ public:
|
|||
* is not valid,
|
||||
* then this will be set to a failing value:
|
||||
* U_ILLEGAL_ARGUMENT_ERROR.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
TimeUnitAmount(const Formattable& number,
|
||||
TimeUnit::UTimeUnitFields timeUnitField,
|
||||
|
@ -56,7 +56,7 @@ public:
|
|||
* If the timeUnitField is not valid,
|
||||
* then this will be set to a failing value:
|
||||
* U_ILLEGAL_ARGUMENT_ERROR.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
TimeUnitAmount(double amount, TimeUnit::UTimeUnitFields timeUnitField,
|
||||
UErrorCode& status);
|
||||
|
@ -64,14 +64,14 @@ public:
|
|||
|
||||
/**
|
||||
* Copy constructor
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
TimeUnitAmount(const TimeUnitAmount& other);
|
||||
|
||||
|
||||
/**
|
||||
* Assignment operator
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
TimeUnitAmount& operator=(const TimeUnitAmount& other);
|
||||
|
||||
|
@ -79,14 +79,14 @@ public:
|
|||
/**
|
||||
* Clone.
|
||||
* @return a polymorphic clone of this object. The result will have the same class as returned by getDynamicClassID().
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual UObject* clone() const;
|
||||
|
||||
|
||||
/**
|
||||
* Destructor
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual ~TimeUnitAmount();
|
||||
|
||||
|
@ -95,7 +95,7 @@ public:
|
|||
* Equality operator.
|
||||
* @param other the object to compare to.
|
||||
* @return true if this object is equal to the given object.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual UBool operator==(const UObject& other) const;
|
||||
|
||||
|
@ -104,7 +104,7 @@ public:
|
|||
* Not-equality operator.
|
||||
* @param other the object to compare to.
|
||||
* @return true if this object is not equal to the given object.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
UBool operator!=(const UObject& other) const;
|
||||
|
||||
|
@ -118,7 +118,7 @@ public:
|
|||
* . erived::getStaticClassID()) ...
|
||||
* </pre>
|
||||
* @return The class ID for all objects of this class.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
static UClassID U_EXPORT2 getStaticClassID(void);
|
||||
|
||||
|
@ -132,7 +132,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 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual UClassID getDynamicClassID(void) const;
|
||||
|
||||
|
@ -140,14 +140,14 @@ public:
|
|||
/**
|
||||
* Get the time unit.
|
||||
* @return time unit object.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
const TimeUnit& getTimeUnit() const;
|
||||
|
||||
/**
|
||||
* Get the time unit field value.
|
||||
* @return time unit field value.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
TimeUnit::UTimeUnitFields getTimeUnitField() const;
|
||||
};
|
||||
|
|
|
@ -64,7 +64,7 @@ class Hashtable;
|
|||
* <P>
|
||||
* @see TimeUnitAmount
|
||||
* @see TimeUnitFormat
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
class U_I18N_API TimeUnitFormat: public MeasureFormat {
|
||||
public:
|
||||
|
@ -74,7 +74,7 @@ public:
|
|||
* There are 2 styles: full name and abbreviated name.
|
||||
* For example, for English, the full name for hour duration is "3 hours",
|
||||
* and the abbreviated name is "3 hrs".
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
enum EStyle {
|
||||
kFull = 0,
|
||||
|
@ -85,13 +85,13 @@ public:
|
|||
/**
|
||||
* Create TimeUnitFormat with default locale, and full name style.
|
||||
* Use setLocale and/or setFormat to modify.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
TimeUnitFormat(UErrorCode& status);
|
||||
|
||||
/**
|
||||
* Create TimeUnitFormat given locale, and full name style.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
TimeUnitFormat(const Locale& locale, UErrorCode& status);
|
||||
|
||||
|
@ -103,13 +103,13 @@ public:
|
|||
|
||||
/**
|
||||
* Copy constructor.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
TimeUnitFormat(const TimeUnitFormat&);
|
||||
|
||||
/**
|
||||
* deconstructor
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual ~TimeUnitFormat();
|
||||
|
||||
|
@ -117,13 +117,13 @@ public:
|
|||
* Clone this Format object polymorphically. The caller owns the result and
|
||||
* should delete it when done.
|
||||
* @return A copy of the object.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual Format* clone(void) const;
|
||||
|
||||
/**
|
||||
* Assignment operator
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
TimeUnitFormat& operator=(const TimeUnitFormat& other);
|
||||
|
||||
|
@ -133,7 +133,7 @@ public:
|
|||
* of different subclasses are considered unequal.
|
||||
* @param other the object to be compared with.
|
||||
* @return true if the given Format objects are semantically equal.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual UBool operator==(const Format& other) const;
|
||||
|
||||
|
@ -142,7 +142,7 @@ public:
|
|||
* Objects of different subclasses are considered unequal.
|
||||
* @param other the object to be compared with.
|
||||
* @return true if the given Format objects are not semantically equal.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
UBool operator!=(const Format& other) const;
|
||||
|
||||
|
@ -150,7 +150,7 @@ public:
|
|||
* Set the locale used for formatting or parsing.
|
||||
* @param locale the locale to be set
|
||||
* @param status output param set to success/failure code on exit
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
void setLocale(const Locale& locale, UErrorCode& status);
|
||||
|
||||
|
@ -159,7 +159,7 @@ public:
|
|||
* Set the number format used for formatting or parsing.
|
||||
* @param format the number formatter to be set
|
||||
* @param status output param set to success/failure code on exit
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
void setNumberFormat(const NumberFormat& format, UErrorCode& status);
|
||||
|
||||
|
@ -169,7 +169,7 @@ public:
|
|||
* or the number in time unit amount is not a double type or long type
|
||||
* numeric, it returns a failing status: U_ILLEGAL_ARGUMENT_ERROR.
|
||||
* @see Format#format(const Formattable&, UnicodeString&, FieldPosition&, UErrorCode&) const
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual UnicodeString& format(const Formattable& obj,
|
||||
UnicodeString& toAppendTo,
|
||||
|
@ -179,7 +179,7 @@ public:
|
|||
/**
|
||||
* Parse a TimeUnitAmount.
|
||||
* @see Format#parseObject(const UnicodeString&, Formattable&, ParsePosition&) const;
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual void parseObject(const UnicodeString& source,
|
||||
Formattable& result,
|
||||
|
@ -194,7 +194,7 @@ public:
|
|||
* . erived::getStaticClassID()) ...
|
||||
* </pre>
|
||||
* @return The class ID for all objects of this class.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
static UClassID U_EXPORT2 getStaticClassID(void);
|
||||
|
||||
|
@ -207,7 +207,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 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
virtual UClassID getDynamicClassID(void) const;
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@ enum UCalendarType {
|
|||
UCAL_TRADITIONAL,
|
||||
/**
|
||||
* A better name for UCAL_TRADITIONAL.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
UCAL_DEFAULT = UCAL_TRADITIONAL,
|
||||
/**
|
||||
|
@ -672,7 +672,7 @@ U_NAMESPACE_END
|
|||
* @return A pointer to a UCalendar identical to cal.
|
||||
* @stable ICU 4.0
|
||||
*/
|
||||
U_DRAFT UCalendar* U_EXPORT2
|
||||
U_STABLE UCalendar* U_EXPORT2
|
||||
ucal_clone(const UCalendar* cal,
|
||||
UErrorCode* status);
|
||||
|
||||
|
@ -1141,7 +1141,7 @@ ucal_getLocaleByType(const UCalendar *cal, ULocDataLocaleType type, UErrorCode*
|
|||
* @return the version string, such as "2007f"
|
||||
* @stable ICU 3.8
|
||||
*/
|
||||
U_DRAFT const char * U_EXPORT2
|
||||
U_STABLE const char * U_EXPORT2
|
||||
ucal_getTZDataVersion(UErrorCode* status);
|
||||
|
||||
/**
|
||||
|
@ -1162,7 +1162,7 @@ ucal_getTZDataVersion(UErrorCode* status);
|
|||
* null.
|
||||
* @stable ICU 4.0
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
ucal_getCanonicalTimeZoneID(const UChar* id, int32_t len,
|
||||
UChar* result, int32_t resultCapacity, UBool *isSystemID, UErrorCode* status);
|
||||
/**
|
||||
|
@ -1170,9 +1170,9 @@ ucal_getCanonicalTimeZoneID(const UChar* id, int32_t len,
|
|||
* @param cal The UCalendar to query.
|
||||
* @param status The error code for the operation.
|
||||
* @return The resource keyword value string.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT const char * U_EXPORT2
|
||||
U_STABLE const char * U_EXPORT2
|
||||
ucal_getType(const UCalendar *cal, UErrorCode* status);
|
||||
|
||||
/**
|
||||
|
@ -1189,9 +1189,9 @@ ucal_getType(const UCalendar *cal, UErrorCode* status);
|
|||
* it will return all the available values for the locale.
|
||||
* @param status error status
|
||||
* @return a string enumeration over keyword values for the given key and the locale.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT UEnumeration* U_EXPORT2
|
||||
U_STABLE UEnumeration* U_EXPORT2
|
||||
ucal_getKeywordValuesForLocale(const char* key,
|
||||
const char* locale,
|
||||
UBool commonlyUsed,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (c) 1996-2009, International Business Machines Corporation and others.
|
||||
* Copyright (c) 1996-2010, International Business Machines Corporation and others.
|
||||
* All Rights Reserved.
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -612,9 +612,9 @@ ucol_getKeywordValues(const char *keyword, UErrorCode *status);
|
|||
* it will return all the available values for the locale.
|
||||
* @param status error status
|
||||
* @return a string enumeration over keyword values for the given key and the locale.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT UEnumeration* U_EXPORT2
|
||||
U_STABLE UEnumeration* U_EXPORT2
|
||||
ucol_getKeywordValuesForLocale(const char* key,
|
||||
const char* locale,
|
||||
UBool commonlyUsed,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
**********************************************************************
|
||||
* Copyright (c) 2002-2009, International Business Machines
|
||||
* Copyright (c) 2002-2010, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
**********************************************************************
|
||||
*/
|
||||
|
@ -152,7 +152,7 @@ ucurr_getName(const UChar* currency,
|
|||
* @return pointer to display string of 'len' UChars. If the resource
|
||||
* data contains no entry for 'currency', then 'currency' itself is
|
||||
* returned.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_STABLE const UChar* U_EXPORT2
|
||||
ucurr_getPluralName(const UChar* currency,
|
||||
|
@ -257,7 +257,7 @@ ucurr_openISOCurrencies(uint32_t currType, UErrorCode *pErrorCode);
|
|||
* values are invalid.
|
||||
* @stable ICU 4.0
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
ucurr_countCurrencies(const char* locale,
|
||||
UDate date,
|
||||
UErrorCode* ec);
|
||||
|
@ -281,7 +281,7 @@ ucurr_countCurrencies(const char* locale,
|
|||
* invalid.
|
||||
* @stable ICU 4.0
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
ucurr_forLocaleAndDate(const char* locale,
|
||||
UDate date,
|
||||
int32_t index,
|
||||
|
@ -303,9 +303,9 @@ ucurr_forLocaleAndDate(const char* locale,
|
|||
* it will return all the available values for the locale.
|
||||
* @param status error status
|
||||
* @return a string enumeration over keyword values for the given key and the locale.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT UEnumeration* U_EXPORT2
|
||||
U_STABLE UEnumeration* U_EXPORT2
|
||||
ucurr_getKeywordValuesForLocale(const char* key,
|
||||
const char* locale,
|
||||
UBool commonlyUsed,
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
******************************************************************************
|
||||
* *
|
||||
* Copyright (C) 2003-2009, International Business Machines *
|
||||
* Copyright (C) 2003-2010, International Business Machines *
|
||||
* Corporation and others. All Rights Reserved. *
|
||||
* *
|
||||
******************************************************************************
|
||||
|
@ -213,9 +213,9 @@ ulocdata_getPaperSize(const char *localeID, int32_t *height, int32_t *width, UEr
|
|||
* Return the current CLDR version used by the library.
|
||||
* @param versionArray fillin that will recieve the version number
|
||||
* @param status error code - could be U_MISSING_RESOURCE_ERROR if the version was not found.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT void U_EXPORT2
|
||||
U_STABLE void U_EXPORT2
|
||||
ulocdata_getCLDRVersion(UVersionInfo versionArray, UErrorCode *status);
|
||||
|
||||
/**
|
||||
|
@ -231,9 +231,9 @@ ulocdata_getCLDRVersion(UVersionInfo versionArray, UErrorCode *status);
|
|||
* @return the actual buffer size needed for localeDisplayPattern. If it's greater
|
||||
* than patternCapacity, the returned pattern will be truncated.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
ulocdata_getLocaleDisplayPattern(ULocaleData *uld,
|
||||
UChar *pattern,
|
||||
int32_t patternCapacity,
|
||||
|
@ -253,9 +253,9 @@ ulocdata_getLocaleDisplayPattern(ULocaleData *uld,
|
|||
* @return the actual buffer size needed for localeSeparator. If it's greater
|
||||
* than separatorCapacity, the returned separator will be truncated.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
ulocdata_getLocaleSeparator(ULocaleData *uld,
|
||||
UChar *separator,
|
||||
int32_t separatorCapacity,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
***************************************************************************
|
||||
* Copyright (C) 2008-2009, International Business Machines Corporation
|
||||
* Copyright (C) 2008-2010, International Business Machines Corporation
|
||||
* and others. All Rights Reserved.
|
||||
***************************************************************************
|
||||
* file name: uspoof.h
|
||||
|
@ -143,7 +143,7 @@ typedef struct USpoofChecker USpoofChecker; /**< typedef for C of USpoofChecker
|
|||
* These enum values are used both to select the set of checks that
|
||||
* will be performed, and to report results from the check function.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
typedef enum USpoofChecks {
|
||||
/** Single script confusable test.
|
||||
|
@ -214,9 +214,9 @@ typedef enum USpoofChecks {
|
|||
*
|
||||
* @param status The error code, set if this function encounters a problem.
|
||||
* @return the newly created Spoof Checker
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT USpoofChecker * U_EXPORT2
|
||||
U_STABLE USpoofChecker * U_EXPORT2
|
||||
uspoof_open(UErrorCode *status);
|
||||
|
||||
|
||||
|
@ -239,7 +239,7 @@ uspoof_open(UErrorCode *status);
|
|||
*
|
||||
* @see uspoof_open
|
||||
* @see uspoof_serialize
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_CAPI USpoofChecker * U_EXPORT2
|
||||
uspoof_openFromSerialized(const void *data, int32_t length, int32_t *pActualLength,
|
||||
|
@ -274,7 +274,7 @@ uspoof_openFromSerialized(const void *data, int32_t length, int32_t *pActualLeng
|
|||
* U_PARSE_ERROR, which is used to report syntax errors
|
||||
* in the input.
|
||||
* @return A spoof checker that uses the rules from the input files.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_CAPI USpoofChecker * U_EXPORT2
|
||||
uspoof_openFromSource(const char *confusables, int32_t confusablesLen,
|
||||
|
@ -285,9 +285,9 @@ uspoof_openFromSource(const char *confusables, int32_t confusablesLen,
|
|||
/**
|
||||
* Close a Spoof Checker, freeing any memory that was being held by
|
||||
* its implementation.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT void U_EXPORT2
|
||||
U_STABLE void U_EXPORT2
|
||||
uspoof_close(USpoofChecker *sc);
|
||||
|
||||
#if U_SHOW_CPLUSPLUS_API
|
||||
|
@ -316,9 +316,9 @@ U_NAMESPACE_END
|
|||
* @param sc The source USpoofChecker
|
||||
* @param status The error code, set if this function encounters a problem.
|
||||
* @return
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT USpoofChecker * U_EXPORT2
|
||||
U_STABLE USpoofChecker * U_EXPORT2
|
||||
uspoof_clone(const USpoofChecker *sc, UErrorCode *status);
|
||||
|
||||
|
||||
|
@ -331,10 +331,10 @@ uspoof_clone(const USpoofChecker *sc, UErrorCode *status);
|
|||
* The value is a bit set, obtained by OR-ing together
|
||||
* values from enum USpoofChecks.
|
||||
* @param status The error code, set if this function encounters a problem.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*
|
||||
*/
|
||||
U_DRAFT void U_EXPORT2
|
||||
U_STABLE void U_EXPORT2
|
||||
uspoof_setChecks(USpoofChecker *sc, int32_t checks, UErrorCode *status);
|
||||
|
||||
/**
|
||||
|
@ -345,10 +345,10 @@ uspoof_setChecks(USpoofChecker *sc, int32_t checks, UErrorCode *status);
|
|||
* @return The set of checks that this spoof checker will perform.
|
||||
* The value is a bit set, obtained by OR-ing together
|
||||
* values from enum USpoofChecks.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
uspoof_getChecks(const USpoofChecker *sc, UErrorCode *status);
|
||||
|
||||
/**
|
||||
|
@ -391,9 +391,9 @@ uspoof_getChecks(const USpoofChecker *sc, UErrorCode *status);
|
|||
* the allowed characters.
|
||||
*
|
||||
* @param status The error code, set if this function encounters a problem.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT void U_EXPORT2
|
||||
U_STABLE void U_EXPORT2
|
||||
uspoof_setAllowedLocales(USpoofChecker *sc, const char *localesList, UErrorCode *status);
|
||||
|
||||
/**
|
||||
|
@ -415,9 +415,9 @@ uspoof_setAllowedLocales(USpoofChecker *sc, const char *localesList, UErrorCode
|
|||
* to the acceptable scripts, formatted like an
|
||||
* HTTP Accept Language value.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT const char * U_EXPORT2
|
||||
U_STABLE const char * U_EXPORT2
|
||||
uspoof_getAllowedLocales(USpoofChecker *sc, UErrorCode *status);
|
||||
|
||||
|
||||
|
@ -437,9 +437,9 @@ uspoof_getAllowedLocales(USpoofChecker *sc, UErrorCode *status);
|
|||
* this function, so there are no restrictions on modifying
|
||||
* or deleting the USet after calling this function.
|
||||
* @param status The error code, set if this function encounters a problem.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT void U_EXPORT2
|
||||
U_STABLE void U_EXPORT2
|
||||
uspoof_setAllowedChars(USpoofChecker *sc, const USet *chars, UErrorCode *status);
|
||||
|
||||
|
||||
|
@ -461,9 +461,9 @@ uspoof_setAllowedChars(USpoofChecker *sc, const USet *chars, UErrorCode *status)
|
|||
* @param status The error code, set if this function encounters a problem.
|
||||
* @return A USet containing the characters that are permitted by
|
||||
* the USPOOF_CHAR_LIMIT test.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT const USet * U_EXPORT2
|
||||
U_STABLE const USet * U_EXPORT2
|
||||
uspoof_getAllowedChars(const USpoofChecker *sc, UErrorCode *status);
|
||||
|
||||
|
||||
|
@ -484,9 +484,9 @@ uspoof_getAllowedChars(const USpoofChecker *sc, UErrorCode *status);
|
|||
* this function, so there are no restrictions on modifying
|
||||
* or deleting the USet after calling this function.
|
||||
* @param status The error code, set if this function encounters a problem.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT void U_EXPORT2
|
||||
U_STABLE void U_EXPORT2
|
||||
uspoof_setAllowedUnicodeSet(USpoofChecker *sc, const UnicodeSet *chars, UErrorCode *status);
|
||||
|
||||
|
||||
|
@ -508,9 +508,9 @@ uspoof_setAllowedUnicodeSet(USpoofChecker *sc, const UnicodeSet *chars, UErrorCo
|
|||
* @param status The error code, set if this function encounters a problem.
|
||||
* @return A UnicodeSet containing the characters that are permitted by
|
||||
* the USPOOF_CHAR_LIMIT test.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT const UnicodeSet * U_EXPORT2
|
||||
U_STABLE const UnicodeSet * U_EXPORT2
|
||||
uspoof_getAllowedUnicodeSet(const USpoofChecker *sc, UErrorCode *status);
|
||||
#endif
|
||||
|
||||
|
@ -541,9 +541,9 @@ uspoof_getAllowedUnicodeSet(const USpoofChecker *sc, UErrorCode *status);
|
|||
* or spoofing issues detected. The bits are defined by
|
||||
* enum USpoofChecks. Zero is returned if no issues
|
||||
* are found with the input string.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
uspoof_check(const USpoofChecker *sc,
|
||||
const UChar *text, int32_t length,
|
||||
int32_t *position,
|
||||
|
@ -576,9 +576,9 @@ uspoof_check(const USpoofChecker *sc,
|
|||
* or spoofing issues detected. The bits are defined by
|
||||
* enum USpoofChecks. Zero is returned if no issues
|
||||
* are found with the input string.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
uspoof_checkUTF8(const USpoofChecker *sc,
|
||||
const char *text, int32_t length,
|
||||
int32_t *position,
|
||||
|
@ -609,9 +609,9 @@ uspoof_checkUTF8(const USpoofChecker *sc,
|
|||
* or spoofing issues detected. The bits are defined by
|
||||
* enum USpoofChecks. Zero is returned if no issues
|
||||
* are found with the input string.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
uspoof_checkUnicodeString(const USpoofChecker *sc,
|
||||
const U_NAMESPACE_QUALIFIER UnicodeString &text,
|
||||
int32_t *position,
|
||||
|
@ -657,9 +657,9 @@ uspoof_checkUnicodeString(const USpoofChecker *sc,
|
|||
* the type of confusability found, as defined by
|
||||
* enum USpoofChecks. Zero is returned if the strings
|
||||
* are not confusable.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
uspoof_areConfusable(const USpoofChecker *sc,
|
||||
const UChar *s1, int32_t length1,
|
||||
const UChar *s2, int32_t length2,
|
||||
|
@ -690,9 +690,9 @@ uspoof_areConfusable(const USpoofChecker *sc,
|
|||
* the type of confusability found, as defined by
|
||||
* enum USpoofChecks. Zero is returned if the strings
|
||||
* are not confusable.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
uspoof_areConfusableUTF8(const USpoofChecker *sc,
|
||||
const char *s1, int32_t length1,
|
||||
const char *s2, int32_t length2,
|
||||
|
@ -721,9 +721,9 @@ uspoof_areConfusableUTF8(const USpoofChecker *sc,
|
|||
* the type of confusability found, as defined by
|
||||
* enum USpoofChecks. Zero is returned if the strings
|
||||
* are not confusable.
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
uspoof_areConfusableUnicodeString(const USpoofChecker *sc,
|
||||
const U_NAMESPACE_QUALIFIER UnicodeString &s1,
|
||||
const U_NAMESPACE_QUALIFIER UnicodeString &s2,
|
||||
|
@ -761,9 +761,9 @@ uspoof_areConfusableUnicodeString(const USpoofChecker *sc,
|
|||
* is always that of the complete skeleton, even when the
|
||||
* supplied buffer is too small (or of zero length)
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
uspoof_getSkeleton(const USpoofChecker *sc,
|
||||
uint32_t type,
|
||||
const UChar *s, int32_t length,
|
||||
|
@ -803,9 +803,9 @@ uspoof_getSkeleton(const USpoofChecker *sc,
|
|||
* is always that of the complete skeleton, even when the
|
||||
* supplied buffer is too small (or of zero length)
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT int32_t U_EXPORT2
|
||||
U_STABLE int32_t U_EXPORT2
|
||||
uspoof_getSkeletonUTF8(const USpoofChecker *sc,
|
||||
uint32_t type,
|
||||
const char *s, int32_t length,
|
||||
|
@ -839,9 +839,9 @@ uspoof_getSkeletonUTF8(const USpoofChecker *sc,
|
|||
* perform the check.
|
||||
* @return A reference to the destination (skeleton) string.
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_DRAFT UnicodeString & U_EXPORT2
|
||||
U_STABLE UnicodeString & U_EXPORT2
|
||||
uspoof_getSkeletonUnicodeString(const USpoofChecker *sc,
|
||||
uint32_t type,
|
||||
const UnicodeString &s,
|
||||
|
@ -866,7 +866,7 @@ uspoof_getSkeletonUnicodeString(const USpoofChecker *sc,
|
|||
* @return the number of bytes written or needed for the spoof data
|
||||
*
|
||||
* @see utrie2_openFromSerialized()
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
U_CAPI int32_t U_EXPORT2
|
||||
uspoof_serialize(USpoofChecker *sc,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
**********************************************************************
|
||||
* Copyright (C) 1998-2009, International Business Machines
|
||||
* Copyright (C) 1998-2010, International Business Machines
|
||||
* Corporation and others. All Rights Reserved.
|
||||
**********************************************************************
|
||||
*/
|
||||
|
@ -327,7 +327,7 @@ public:
|
|||
*
|
||||
* @see LEInsertionList.h
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
LEGlyphID *insertGlyphs(le_int32 atIndex, le_int32 insertCount, LEErrorCode& success);
|
||||
|
||||
|
@ -363,7 +363,7 @@ public:
|
|||
* @param toPosition - target position of the glyph
|
||||
* @param marker marker bit
|
||||
*
|
||||
* @draft ICU 4.2
|
||||
* @stable ICU 4.4
|
||||
*/
|
||||
void moveGlyph(le_int32 fromPosition, le_int32 toPosition, le_uint32 marker);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue