| ubidi.h | | ubidi.h | |
| /* | | /* | |
| ***************************************************************************
*** | | ***************************************************************************
*** | |
| * | | * | |
|
| * Copyright (C) 1999-2008, International Business Machines | | * Copyright (C) 1999-2009, International Business Machines | |
| * Corporation and others. All Rights Reserved. | | * Corporation and others. All Rights Reserved. | |
| * | | * | |
| ***************************************************************************
*** | | ***************************************************************************
*** | |
| * file name: ubidi.h | | * file name: ubidi.h | |
| * encoding: US-ASCII | | * encoding: US-ASCII | |
| * tab size: 8 (not used) | | * tab size: 8 (not used) | |
| * indentation:4 | | * indentation:4 | |
| * | | * | |
| * created on: 1999jul27 | | * created on: 1999jul27 | |
| * created by: Markus W. Scherer, updated by Matitiahu Allouche | | * created by: Markus W. Scherer, updated by Matitiahu Allouche | |
| */ | | */ | |
| | | | |
| #ifndef UBIDI_H | | #ifndef UBIDI_H | |
| #define UBIDI_H | | #define UBIDI_H | |
| | | | |
| #include "unicode/utypes.h" | | #include "unicode/utypes.h" | |
| #include "unicode/uchar.h" | | #include "unicode/uchar.h" | |
|
| | | #include "unicode/localpointer.h" | |
| | | | |
| /** | | /** | |
| *\file | | *\file | |
| * \brief C API: Bidi algorithm | | * \brief C API: Bidi algorithm | |
| * | | * | |
| * <h2>Bidi algorithm for ICU</h2> | | * <h2>Bidi algorithm for ICU</h2> | |
| * | | * | |
| * This is an implementation of the Unicode Bidirectional algorithm. | | * This is an implementation of the Unicode Bidirectional algorithm. | |
| * The algorithm is defined in the | | * The algorithm is defined in the | |
| * <a href="http://www.unicode.org/unicode/reports/tr9/">Unicode Standard A
nnex #9</a>, | | * <a href="http://www.unicode.org/unicode/reports/tr9/">Unicode Standard A
nnex #9</a>, | |
| | | | |
| skipping to change at line 522 | | skipping to change at line 523 | |
| * | | * | |
| * @param pBiDi is a <code>UBiDi</code> object. | | * @param pBiDi is a <code>UBiDi</code> object. | |
| * | | * | |
| * @see ubidi_setPara | | * @see ubidi_setPara | |
| * @see ubidi_setLine | | * @see ubidi_setLine | |
| * @stable ICU 2.0 | | * @stable ICU 2.0 | |
| */ | | */ | |
| U_STABLE void U_EXPORT2 | | U_STABLE void U_EXPORT2 | |
| ubidi_close(UBiDi *pBiDi); | | ubidi_close(UBiDi *pBiDi); | |
| | | | |
|
| | | #ifdef XP_CPLUSPLUS | |
| | | | |
| | | U_NAMESPACE_BEGIN | |
| | | | |
| | | /** | |
| | | * \class LocalUBiDiPointer | |
| | | * "Smart pointer" class, closes a UBiDi via ubidi_close(). | |
| | | * For most methods see the LocalPointerBase base class. | |
| | | * | |
| | | * @see LocalPointerBase | |
| | | * @see LocalPointer | |
| | | * @draft ICU 4.4 | |
| | | */ | |
| | | U_DEFINE_LOCAL_OPEN_POINTER(LocalUBiDiPointer, UBiDi, ubidi_close); | |
| | | | |
| | | U_NAMESPACE_END | |
| | | | |
| | | #endif | |
| | | | |
| /** | | /** | |
| * Modify the operation of the Bidi algorithm such that it | | * Modify the operation of the Bidi algorithm such that it | |
| * approximates an "inverse Bidi" algorithm. This function | | * approximates an "inverse Bidi" algorithm. This function | |
| * must be called before <code>ubidi_setPara()</code>. | | * must be called before <code>ubidi_setPara()</code>. | |
| * | | * | |
| * <p>The normal operation of the Bidi algorithm as described | | * <p>The normal operation of the Bidi algorithm as described | |
| * in the Unicode Technical Report is to take text stored in logical | | * in the Unicode Technical Report is to take text stored in logical | |
| * (keyboard, typing) order and to determine the reordering of it for visua
l | | * (keyboard, typing) order and to determine the reordering of it for visua
l | |
| * rendering. | | * rendering. | |
| * Some legacy systems store text in visual order, and for operations | | * Some legacy systems store text in visual order, and for operations | |
| | | | |
End of changes. 3 change blocks. |
| 1 lines changed or deleted | | 21 lines changed or added | |
|
| ubrk.h | | ubrk.h | |
| | | | |
| skipping to change at line 14 | | skipping to change at line 14 | |
| * All Rights Reserved. | | * All Rights Reserved. | |
| ***************************************************************************
*** | | ***************************************************************************
*** | |
| */ | | */ | |
| | | | |
| #ifndef UBRK_H | | #ifndef UBRK_H | |
| #define UBRK_H | | #define UBRK_H | |
| | | | |
| #include "unicode/utypes.h" | | #include "unicode/utypes.h" | |
| #include "unicode/uloc.h" | | #include "unicode/uloc.h" | |
| #include "unicode/utext.h" | | #include "unicode/utext.h" | |
|
| | | #include "unicode/localpointer.h" | |
| | | | |
| /** | | /** | |
| * A text-break iterator. | | * A text-break iterator. | |
| * For usage in C programs. | | * For usage in C programs. | |
| */ | | */ | |
| #ifndef UBRK_TYPEDEF_UBREAK_ITERATOR | | #ifndef UBRK_TYPEDEF_UBREAK_ITERATOR | |
| # define UBRK_TYPEDEF_UBREAK_ITERATOR | | # define UBRK_TYPEDEF_UBREAK_ITERATOR | |
| /** | | /** | |
| * Opaque type representing an ICU Break iterator object. | | * Opaque type representing an ICU Break iterator object. | |
| * @stable ICU 2.0 | | * @stable ICU 2.0 | |
| */ | | */ | |
|
| typedef void UBreakIterator; | | typedef struct UBreakIterator UBreakIterator; | |
| #endif | | #endif | |
| | | | |
| #if !UCONFIG_NO_BREAK_ITERATION | | #if !UCONFIG_NO_BREAK_ITERATION | |
| | | | |
| #include "unicode/parseerr.h" | | #include "unicode/parseerr.h" | |
| | | | |
| /** | | /** | |
| * \file | | * \file | |
| * \brief C API: BreakIterator | | * \brief C API: BreakIterator | |
| * | | * | |
| | | | |
| skipping to change at line 276 | | skipping to change at line 277 | |
| | | | |
| /** | | /** | |
| * Close a UBreakIterator. | | * Close a UBreakIterator. | |
| * Once closed, a UBreakIterator may no longer be used. | | * Once closed, a UBreakIterator may no longer be used. | |
| * @param bi The break iterator to close. | | * @param bi The break iterator to close. | |
| * @stable ICU 2.0 | | * @stable ICU 2.0 | |
| */ | | */ | |
| U_STABLE void U_EXPORT2 | | U_STABLE void U_EXPORT2 | |
| ubrk_close(UBreakIterator *bi); | | ubrk_close(UBreakIterator *bi); | |
| | | | |
|
| | | #ifdef XP_CPLUSPLUS | |
| | | | |
| | | U_NAMESPACE_BEGIN | |
| | | | |
| | | /** | |
| | | * \class LocalUBreakIteratorPointer | |
| | | * "Smart pointer" class, closes a UBreakIterator via ubrk_close(). | |
| | | * For most methods see the LocalPointerBase base class. | |
| | | * | |
| | | * @see LocalPointerBase | |
| | | * @see LocalPointer | |
| | | * @draft ICU 4.4 | |
| | | */ | |
| | | U_DEFINE_LOCAL_OPEN_POINTER(LocalUBreakIteratorPointer, UBreakIterator, ubr | |
| | | k_close); | |
| | | | |
| | | U_NAMESPACE_END | |
| | | | |
| | | #endif | |
| | | | |
| /** | | /** | |
| * Sets an existing iterator to point to a new piece of text | | * Sets an existing iterator to point to a new piece of text | |
| * @param bi The iterator to use | | * @param bi The iterator to use | |
| * @param text The text to be set | | * @param text The text to be set | |
| * @param textLength The length of the text | | * @param textLength The length of the text | |
| * @param status The error code | | * @param status The error code | |
| * @stable ICU 2.0 | | * @stable ICU 2.0 | |
| */ | | */ | |
| U_STABLE void U_EXPORT2 | | U_STABLE void U_EXPORT2 | |
| ubrk_setText(UBreakIterator* bi, | | ubrk_setText(UBreakIterator* bi, | |
| | | | |
End of changes. 3 change blocks. |
| 1 lines changed or deleted | | 22 lines changed or added | |
|
| uchar.h | | uchar.h | |
| | | | |
| skipping to change at line 42 | | skipping to change at line 42 | |
| /*=========================================================================
=*/ | | /*=========================================================================
=*/ | |
| /** | | /** | |
| * Unicode version number, default for the current ICU version. | | * Unicode version number, default for the current ICU version. | |
| * The actual Unicode Character Database (UCD) data is stored in uprops.dat | | * The actual Unicode Character Database (UCD) data is stored in uprops.dat | |
| * and may be generated from UCD files from a different Unicode version. | | * and may be generated from UCD files from a different Unicode version. | |
| * Call u_getUnicodeVersion to get the actual Unicode version of the data. | | * Call u_getUnicodeVersion to get the actual Unicode version of the data. | |
| * | | * | |
| * @see u_getUnicodeVersion | | * @see u_getUnicodeVersion | |
| * @stable ICU 2.0 | | * @stable ICU 2.0 | |
| */ | | */ | |
|
| #define U_UNICODE_VERSION "5.1" | | #define U_UNICODE_VERSION "5.2" | |
| | | | |
| /** | | /** | |
| * \file | | * \file | |
| * \brief C API: Unicode Properties | | * \brief C API: Unicode Properties | |
| * | | * | |
| * This C API provides low-level access to the Unicode Character Database. | | * This C API provides low-level access to the Unicode Character Database. | |
| * In addition to raw property values, some convenience functions calculate | | * In addition to raw property values, some convenience functions calculate | |
| * derived properties, for example for Java-style programming. | | * derived properties, for example for Java-style programming. | |
| * | | * | |
| * Unicode assigns each code point (not just assigned character) values for | | * Unicode assigns each code point (not just assigned character) values for | |
| | | | |
| skipping to change at line 417 | | skipping to change at line 417 | |
| /** Binary property print (a C/POSIX character class). | | /** Binary property print (a C/POSIX character class). | |
| Implemented according to the UTS #18 Annex C Standard Recommendatio
n. | | Implemented according to the UTS #18 Annex C Standard Recommendatio
n. | |
| See the uchar.h file documentation. | | See the uchar.h file documentation. | |
| @stable ICU 3.4 */ | | @stable ICU 3.4 */ | |
| UCHAR_POSIX_PRINT=47, | | UCHAR_POSIX_PRINT=47, | |
| /** Binary property xdigit (a C/POSIX character class). | | /** Binary property xdigit (a C/POSIX character class). | |
| Implemented according to the UTS #18 Annex C Standard Recommendatio
n. | | Implemented according to the UTS #18 Annex C Standard Recommendatio
n. | |
| See the uchar.h file documentation. | | See the uchar.h file documentation. | |
| @stable ICU 3.4 */ | | @stable ICU 3.4 */ | |
| UCHAR_POSIX_XDIGIT=48, | | UCHAR_POSIX_XDIGIT=48, | |
|
| | | /** Binary property Cased. For Lowercase, Uppercase and Titlecase chara | |
| | | cters. @draft ICU 4.4 */ | |
| | | UCHAR_CASED=49, | |
| | | /** Binary property Case_Ignorable. Used in context-sensitive case mapp | |
| | | ings. @draft ICU 4.4 */ | |
| | | UCHAR_CASE_IGNORABLE=50, | |
| | | /** Binary property Changes_When_Lowercased. @draft ICU 4.4 */ | |
| | | UCHAR_CHANGES_WHEN_LOWERCASED=51, | |
| | | /** Binary property Changes_When_Uppercased. @draft ICU 4.4 */ | |
| | | UCHAR_CHANGES_WHEN_UPPERCASED=52, | |
| | | /** Binary property Changes_When_Titlecased. @draft ICU 4.4 */ | |
| | | UCHAR_CHANGES_WHEN_TITLECASED=53, | |
| | | /** Binary property Changes_When_Casefolded. @draft ICU 4.4 */ | |
| | | UCHAR_CHANGES_WHEN_CASEFOLDED=54, | |
| | | /** Binary property Changes_When_Casemapped. @draft ICU 4.4 */ | |
| | | UCHAR_CHANGES_WHEN_CASEMAPPED=55, | |
| /** One more than the last constant for binary Unicode properties. @sta
ble ICU 2.1 */ | | /** One more than the last constant for binary Unicode properties. @sta
ble ICU 2.1 */ | |
|
| UCHAR_BINARY_LIMIT=49, | | UCHAR_BINARY_LIMIT=56, | |
| | | | |
| /** Enumerated property Bidi_Class. | | /** Enumerated property Bidi_Class. | |
| Same as u_charDirection, returns UCharDirection values. @stable ICU
2.2 */ | | Same as u_charDirection, returns UCharDirection values. @stable ICU
2.2 */ | |
| UCHAR_BIDI_CLASS=0x1000, | | UCHAR_BIDI_CLASS=0x1000, | |
| /** First constant for enumerated/integer Unicode properties. @stable I
CU 2.2 */ | | /** First constant for enumerated/integer Unicode properties. @stable I
CU 2.2 */ | |
| UCHAR_INT_START=UCHAR_BIDI_CLASS, | | UCHAR_INT_START=UCHAR_BIDI_CLASS, | |
| /** Enumerated property Block. | | /** Enumerated property Block. | |
| Same as ublock_getCode, returns UBlockCode values. @stable ICU 2.2
*/ | | Same as ublock_getCode, returns UBlockCode values. @stable ICU 2.2
*/ | |
| UCHAR_BLOCK=0x1001, | | UCHAR_BLOCK=0x1001, | |
| /** Enumerated property Canonical_Combining_Class. | | /** Enumerated property Canonical_Combining_Class. | |
| | | | |
| skipping to change at line 1293 | | skipping to change at line 1307 | |
| UBLOCK_LYCIAN = 167, /*[10280]*/ | | UBLOCK_LYCIAN = 167, /*[10280]*/ | |
| /** @stable ICU 4.0 */ | | /** @stable ICU 4.0 */ | |
| UBLOCK_CARIAN = 168, /*[102A0]*/ | | UBLOCK_CARIAN = 168, /*[102A0]*/ | |
| /** @stable ICU 4.0 */ | | /** @stable ICU 4.0 */ | |
| UBLOCK_LYDIAN = 169, /*[10920]*/ | | UBLOCK_LYDIAN = 169, /*[10920]*/ | |
| /** @stable ICU 4.0 */ | | /** @stable ICU 4.0 */ | |
| UBLOCK_MAHJONG_TILES = 170, /*[1F000]*/ | | UBLOCK_MAHJONG_TILES = 170, /*[1F000]*/ | |
| /** @stable ICU 4.0 */ | | /** @stable ICU 4.0 */ | |
| UBLOCK_DOMINO_TILES = 171, /*[1F030]*/ | | UBLOCK_DOMINO_TILES = 171, /*[1F030]*/ | |
| | | | |
|
| | | /* New blocks in Unicode 5.2 */ | |
| | | | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_SAMARITAN = 172, /*[0800]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED = 173, /*[18B0]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_TAI_THAM = 174, /*[1A20]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_VEDIC_EXTENSIONS = 175, /*[1CD0]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_LISU = 176, /*[A4D0]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_BAMUM = 177, /*[A6A0]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_COMMON_INDIC_NUMBER_FORMS = 178, /*[A830]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_DEVANAGARI_EXTENDED = 179, /*[A8E0]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_HANGUL_JAMO_EXTENDED_A = 180, /*[A960]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_JAVANESE = 181, /*[A980]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_MYANMAR_EXTENDED_A = 182, /*[AA60]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_TAI_VIET = 183, /*[AA80]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_MEETEI_MAYEK = 184, /*[ABC0]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_HANGUL_JAMO_EXTENDED_B = 185, /*[D7B0]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_IMPERIAL_ARAMAIC = 186, /*[10840]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_OLD_SOUTH_ARABIAN = 187, /*[10A60]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_AVESTAN = 188, /*[10B00]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_INSCRIPTIONAL_PARTHIAN = 189, /*[10B40]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_INSCRIPTIONAL_PAHLAVI = 190, /*[10B60]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_OLD_TURKIC = 191, /*[10C00]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_RUMI_NUMERAL_SYMBOLS = 192, /*[10E60]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_KAITHI = 193, /*[11080]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_EGYPTIAN_HIEROGLYPHS = 194, /*[13000]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_ENCLOSED_ALPHANUMERIC_SUPPLEMENT = 195, /*[1F100]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_ENCLOSED_IDEOGRAPHIC_SUPPLEMENT = 196, /*[1F200]*/ | |
| | | /** @draft ICU 4.4 */ | |
| | | UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C = 197, /*[2A700]*/ | |
| | | | |
| /** @stable ICU 2.0 */ | | /** @stable ICU 2.0 */ | |
|
| UBLOCK_COUNT = 172, | | UBLOCK_COUNT = 198, | |
| | | | |
| /** @stable ICU 2.0 */ | | /** @stable ICU 2.0 */ | |
| UBLOCK_INVALID_CODE=-1 | | UBLOCK_INVALID_CODE=-1 | |
| }; | | }; | |
| | | | |
| /** @stable ICU 2.0 */ | | /** @stable ICU 2.0 */ | |
| typedef enum UBlockCode UBlockCode; | | typedef enum UBlockCode UBlockCode; | |
| | | | |
| /** | | /** | |
| * East Asian Width constants. | | * East Asian Width constants. | |
| | | | |
| skipping to change at line 1339 | | skipping to change at line 1408 | |
| * with ISO-10646; or an "extended" name that gives each | | * with ISO-10646; or an "extended" name that gives each | |
| * Unicode code point a unique name. | | * Unicode code point a unique name. | |
| * | | * | |
| * @see u_charName | | * @see u_charName | |
| * @stable ICU 2.0 | | * @stable ICU 2.0 | |
| */ | | */ | |
| typedef enum UCharNameChoice { | | typedef enum UCharNameChoice { | |
| U_UNICODE_CHAR_NAME, | | U_UNICODE_CHAR_NAME, | |
| U_UNICODE_10_CHAR_NAME, | | U_UNICODE_10_CHAR_NAME, | |
| U_EXTENDED_CHAR_NAME, | | U_EXTENDED_CHAR_NAME, | |
|
| | | U_CHAR_NAME_ALIAS, /**< Corrected name from NameAliases.txt. @
draft ICU 4.4 */ | |
| U_CHAR_NAME_CHOICE_COUNT | | U_CHAR_NAME_CHOICE_COUNT | |
| } UCharNameChoice; | | } UCharNameChoice; | |
| | | | |
| /** | | /** | |
| * Selector constants for u_getPropertyName() and | | * Selector constants for u_getPropertyName() and | |
| * u_getPropertyValueName(). These selectors are used to choose which | | * u_getPropertyValueName(). These selectors are used to choose which | |
| * name is returned for a given property or value. All properties and | | * name is returned for a given property or value. All properties and | |
| * values have a long name. Most have a short name, but some do not. | | * values have a long name. Most have a short name, but some do not. | |
| * Unicode allows for additional names, beyond the long and short | | * Unicode allows for additional names, beyond the long and short | |
| * name, which would be indicated by U_LONG_PROPERTY_NAME + i, where | | * name, which would be indicated by U_LONG_PROPERTY_NAME + i, where | |
| | | | |
| skipping to change at line 1467 | | skipping to change at line 1537 | |
| U_JG_YEH, | | U_JG_YEH, | |
| U_JG_YEH_BARREE, | | U_JG_YEH_BARREE, | |
| U_JG_YEH_WITH_TAIL, | | U_JG_YEH_WITH_TAIL, | |
| U_JG_YUDH, | | U_JG_YUDH, | |
| U_JG_YUDH_HE, | | U_JG_YUDH_HE, | |
| U_JG_ZAIN, | | U_JG_ZAIN, | |
| U_JG_FE, /**< @stable ICU 2.6 */ | | U_JG_FE, /**< @stable ICU 2.6 */ | |
| U_JG_KHAPH, /**< @stable ICU 2.6 */ | | U_JG_KHAPH, /**< @stable ICU 2.6 */ | |
| U_JG_ZHAIN, /**< @stable ICU 2.6 */ | | U_JG_ZHAIN, /**< @stable ICU 2.6 */ | |
| U_JG_BURUSHASKI_YEH_BARREE, /**< @stable ICU 4.0 */ | | U_JG_BURUSHASKI_YEH_BARREE, /**< @stable ICU 4.0 */ | |
|
| | | U_JG_FARSI_YEH, /**< @draft ICU 4.4 */ | |
| | | U_JG_NYA, /**< @draft ICU 4.4 */ | |
| U_JG_COUNT | | U_JG_COUNT | |
| } UJoiningGroup; | | } UJoiningGroup; | |
| | | | |
| /** | | /** | |
| * Grapheme Cluster Break constants. | | * Grapheme Cluster Break constants. | |
| * | | * | |
| * @see UCHAR_GRAPHEME_CLUSTER_BREAK | | * @see UCHAR_GRAPHEME_CLUSTER_BREAK | |
| * @stable ICU 3.4 | | * @stable ICU 3.4 | |
| */ | | */ | |
| typedef enum UGraphemeClusterBreak { | | typedef enum UGraphemeClusterBreak { | |
| | | | |
| skipping to change at line 1586 | | skipping to change at line 1658 | |
| U_LB_SPACE = 26, /*[SP]*/ | | U_LB_SPACE = 26, /*[SP]*/ | |
| U_LB_BREAK_SYMBOLS = 27, /*[SY]*/ | | U_LB_BREAK_SYMBOLS = 27, /*[SY]*/ | |
| U_LB_ZWSPACE = 28, /*[ZW]*/ | | U_LB_ZWSPACE = 28, /*[ZW]*/ | |
| U_LB_NEXT_LINE = 29, /*[NL]*/ /* from here on: new in Unicode 4
/ICU 2.6 */ | | U_LB_NEXT_LINE = 29, /*[NL]*/ /* from here on: new in Unicode 4
/ICU 2.6 */ | |
| U_LB_WORD_JOINER = 30, /*[WJ]*/ | | U_LB_WORD_JOINER = 30, /*[WJ]*/ | |
| U_LB_H2 = 31, /*[H2]*/ /* from here on: new in Unicode 4
.1/ICU 3.4 */ | | U_LB_H2 = 31, /*[H2]*/ /* from here on: new in Unicode 4
.1/ICU 3.4 */ | |
| U_LB_H3 = 32, /*[H3]*/ | | U_LB_H3 = 32, /*[H3]*/ | |
| U_LB_JL = 33, /*[JL]*/ | | U_LB_JL = 33, /*[JL]*/ | |
| U_LB_JT = 34, /*[JT]*/ | | U_LB_JT = 34, /*[JT]*/ | |
| U_LB_JV = 35, /*[JV]*/ | | U_LB_JV = 35, /*[JV]*/ | |
|
| U_LB_COUNT = 36 | | U_LB_CLOSE_PARENTHESIS = 36, /*[CP]*/ /* new in Unicode 5.2/ICU 4.4 */ | |
| | | U_LB_COUNT = 37 | |
| } ULineBreak; | | } ULineBreak; | |
| | | | |
| /** | | /** | |
| * Numeric Type constants. | | * Numeric Type constants. | |
| * | | * | |
| * @see UCHAR_NUMERIC_TYPE | | * @see UCHAR_NUMERIC_TYPE | |
| * @stable ICU 2.2 | | * @stable ICU 2.2 | |
| */ | | */ | |
| typedef enum UNumericType { | | typedef enum UNumericType { | |
| U_NT_NONE, /*[None]*/ /*See note !!*/ | | U_NT_NONE, /*[None]*/ /*See note !!*/ | |
| | | | |
| skipping to change at line 2459 | | skipping to change at line 2532 | |
| U_STABLE int32_t U_EXPORT2 | | U_STABLE int32_t U_EXPORT2 | |
| u_charName(UChar32 code, UCharNameChoice nameChoice, | | u_charName(UChar32 code, UCharNameChoice nameChoice, | |
| char *buffer, int32_t bufferLength, | | char *buffer, int32_t bufferLength, | |
| UErrorCode *pErrorCode); | | UErrorCode *pErrorCode); | |
| | | | |
| /** | | /** | |
| * Get the ISO 10646 comment for a character. | | * Get the ISO 10646 comment for a character. | |
| * The ISO 10646 comment is an informative field in the Unicode Character | | * The ISO 10646 comment is an informative field in the Unicode Character | |
| * Database (UnicodeData.txt field 11) and is from the ISO 10646 names list
. | | * Database (UnicodeData.txt field 11) and is from the ISO 10646 names list
. | |
| * | | * | |
|
| | | * Note: Unicode 5.2 removes all ISO comment data, resulting in empty strin | |
| | | gs | |
| | | * returned for all characters. | |
| | | * | |
| * @param c The character (code point) for which to get the ISO comment. | | * @param c The character (code point) for which to get the ISO comment. | |
| * It must be <code>0<=c<=0x10ffff</code>. | | * It must be <code>0<=c<=0x10ffff</code>. | |
| * @param dest Destination address for copying the comment. | | * @param dest Destination address for copying the comment. | |
| * The comment will be zero-terminated if possible. | | * The comment will be zero-terminated if possible. | |
| * If there is no comment, then the buffer will be set to the e
mpty string. | | * If there is no comment, then the buffer will be set to the e
mpty string. | |
| * @param destCapacity <code>==sizeof(dest)</code> | | * @param destCapacity <code>==sizeof(dest)</code> | |
| * @param pErrorCode Pointer to a UErrorCode variable; | | * @param pErrorCode Pointer to a UErrorCode variable; | |
| * check for <code>U_SUCCESS()</code> after <code>u_getISOComment()<
/code> | | * check for <code>U_SUCCESS()</code> after <code>u_getISOComment()<
/code> | |
| * returns. | | * returns. | |
| * @return The length of the comment, or 0 if there is no comment for this
character. | | * @return The length of the comment, or 0 if there is no comment for this
character. | |
| | | | |
End of changes. 9 change blocks. |
| 4 lines changed or deleted | | 83 lines changed or added | |
|
| ucnvsel.h | | ucnvsel.h | |
| /* | | /* | |
| ***************************************************************************
**** | | ***************************************************************************
**** | |
| * | | * | |
|
| * Copyright (C) 2008, International Business Machines | | * Copyright (C) 2008-2009, International Business Machines | |
| * Corporation, Google and others. All Rights Reserved. | | * Corporation, Google and others. All Rights Reserved. | |
| * | | * | |
| ***************************************************************************
**** | | ***************************************************************************
**** | |
| */ | | */ | |
| /* | | /* | |
| * Author : eldawy@google.com (Mohamed Eldawy) | | * Author : eldawy@google.com (Mohamed Eldawy) | |
| * ucnvsel.h | | * ucnvsel.h | |
| * | | * | |
| * Purpose: To generate a list of encodings capable of handling | | * Purpose: To generate a list of encodings capable of handling | |
| * a given Unicode text | | * a given Unicode text | |
| | | | |
| skipping to change at line 27 | | skipping to change at line 27 | |
| */ | | */ | |
| | | | |
| #ifndef __ICU_UCNV_SEL_H__ | | #ifndef __ICU_UCNV_SEL_H__ | |
| #define __ICU_UCNV_SEL_H__ | | #define __ICU_UCNV_SEL_H__ | |
| | | | |
| #include "unicode/uset.h" | | #include "unicode/uset.h" | |
| #include "unicode/utypes.h" | | #include "unicode/utypes.h" | |
| #include "unicode/utf16.h" | | #include "unicode/utf16.h" | |
| #include "unicode/uenum.h" | | #include "unicode/uenum.h" | |
| #include "unicode/ucnv.h" | | #include "unicode/ucnv.h" | |
|
| | | #include "unicode/localpointer.h" | |
| | | | |
| /** | | /** | |
| * \file | | * \file | |
| * | | * | |
| * A converter selector is built with a set of encoding/charset names | | * A converter selector is built with a set of encoding/charset names | |
| * and given an input string returns the set of names of the | | * and given an input string returns the set of names of the | |
| * corresponding converters which can convert the string. | | * corresponding converters which can convert the string. | |
| * | | * | |
| * A converter selector can be serialized into a buffer and reopened | | * A converter selector can be serialized into a buffer and reopened | |
| * from the serialized form. | | * from the serialized form. | |
| | | | |
| skipping to change at line 90 | | skipping to change at line 91 | |
| * @see ucnv_selectForString | | * @see ucnv_selectForString | |
| * @see ucnv_selectForUTF8 | | * @see ucnv_selectForUTF8 | |
| * | | * | |
| * @param sel selector to close | | * @param sel selector to close | |
| * | | * | |
| * @draft ICU 4.2 | | * @draft ICU 4.2 | |
| */ | | */ | |
| U_CAPI void U_EXPORT2 | | U_CAPI void U_EXPORT2 | |
| ucnvsel_close(UConverterSelector *sel); | | ucnvsel_close(UConverterSelector *sel); | |
| | | | |
|
| | | #ifdef XP_CPLUSPLUS | |
| | | | |
| | | U_NAMESPACE_BEGIN | |
| | | | |
| | | /** | |
| | | * \class LocalUConverterSelectorPointer | |
| | | * "Smart pointer" class, closes a UConverterSelector via ucnvsel_close(). | |
| | | * For most methods see the LocalPointerBase base class. | |
| | | * | |
| | | * @see LocalPointerBase | |
| | | * @see LocalPointer | |
| | | * @draft ICU 4.4 | |
| | | */ | |
| | | U_DEFINE_LOCAL_OPEN_POINTER(LocalUConverterSelectorPointer, UConverterSelec | |
| | | tor, ucnvsel_close); | |
| | | | |
| | | U_NAMESPACE_END | |
| | | | |
| | | #endif | |
| | | | |
| /** | | /** | |
| * Open a selector from its serialized form. | | * Open a selector from its serialized form. | |
| * The buffer must remain valid and unchanged for the lifetime of the selec
tor. | | * The buffer must remain valid and unchanged for the lifetime of the selec
tor. | |
| * This is much faster than creating a selector from scratch. | | * This is much faster than creating a selector from scratch. | |
| * Using a serialized form from a different machine (endianness/charset) is
supported. | | * Using a serialized form from a different machine (endianness/charset) is
supported. | |
| * | | * | |
| * @param buffer pointer to the serialized form of a converter selector; | | * @param buffer pointer to the serialized form of a converter selector; | |
| * must be 32-bit-aligned | | * must be 32-bit-aligned | |
| * @param length the capacity of this buffer (can be equal to or larger tha
n | | * @param length the capacity of this buffer (can be equal to or larger tha
n | |
| * the actual data length) | | * the actual data length) | |
| | | | |
End of changes. 3 change blocks. |
| 1 lines changed or deleted | | 22 lines changed or added | |
|
| ucsdet.h | | ucsdet.h | |
| /* | | /* | |
| ********************************************************************** | | ********************************************************************** | |
|
| * Copyright (C) 2005-2007, International Business Machines | | * Copyright (C) 2005-2009, International Business Machines | |
| * Corporation and others. All Rights Reserved. | | * Corporation and others. All Rights Reserved. | |
| ********************************************************************** | | ********************************************************************** | |
| * file name: ucsdet.h | | * file name: ucsdet.h | |
| * encoding: US-ASCII | | * encoding: US-ASCII | |
| * indentation:4 | | * indentation:4 | |
| * | | * | |
| * created on: 2005Aug04 | | * created on: 2005Aug04 | |
| * created by: Andy Heninger | | * created by: Andy Heninger | |
| * | | * | |
| * ICU Character Set Detection, API for C | | * ICU Character Set Detection, API for C | |
| | | | |
| skipping to change at line 25 | | skipping to change at line 25 | |
| * Draft version 18 Oct 2005 | | * Draft version 18 Oct 2005 | |
| * | | * | |
| */ | | */ | |
| | | | |
| #ifndef __UCSDET_H | | #ifndef __UCSDET_H | |
| #define __UCSDET_H | | #define __UCSDET_H | |
| | | | |
| #include "unicode/utypes.h" | | #include "unicode/utypes.h" | |
| | | | |
| #if !UCONFIG_NO_CONVERSION | | #if !UCONFIG_NO_CONVERSION | |
|
| | | | |
| | | #include "unicode/localpointer.h" | |
| #include "unicode/uenum.h" | | #include "unicode/uenum.h" | |
| | | | |
| /** | | /** | |
| * \file | | * \file | |
| * \brief C API: Charset Detection API | | * \brief C API: Charset Detection API | |
| * | | * | |
| * This API provides a facility for detecting the | | * This API provides a facility for detecting the | |
| * charset or encoding of character data in an unknown text format. | | * charset or encoding of character data in an unknown text format. | |
| * The input data can be from an array of bytes. | | * The input data can be from an array of bytes. | |
| * <p> | | * <p> | |
| | | | |
| skipping to change at line 84 | | skipping to change at line 86 | |
| * owned by this charset detector will be released. Failure to | | * owned by this charset detector will be released. Failure to | |
| * close a charset detector when finished with it can result in | | * close a charset detector when finished with it can result in | |
| * memory leaks in the application. | | * memory leaks in the application. | |
| * | | * | |
| * @param ucsd The charset detector to be closed. | | * @param ucsd The charset detector to be closed. | |
| * @stable ICU 3.6 | | * @stable ICU 3.6 | |
| */ | | */ | |
| U_STABLE void U_EXPORT2 | | U_STABLE void U_EXPORT2 | |
| ucsdet_close(UCharsetDetector *ucsd); | | ucsdet_close(UCharsetDetector *ucsd); | |
| | | | |
|
| | | #ifdef XP_CPLUSPLUS | |
| | | | |
| | | U_NAMESPACE_BEGIN | |
| | | | |
| | | /** | |
| | | * \class LocalUCharsetDetectorPointer | |
| | | * "Smart pointer" class, closes a UCharsetDetector via ucsdet_close(). | |
| | | * For most methods see the LocalPointerBase base class. | |
| | | * | |
| | | * @see LocalPointerBase | |
| | | * @see LocalPointer | |
| | | * @draft ICU 4.4 | |
| | | */ | |
| | | U_DEFINE_LOCAL_OPEN_POINTER(LocalUCharsetDetectorPointer, UCharsetDetector, | |
| | | ucsdet_close); | |
| | | | |
| | | U_NAMESPACE_END | |
| | | | |
| | | #endif | |
| | | | |
| /** | | /** | |
| * Set the input byte data whose charset is to detected. | | * Set the input byte data whose charset is to detected. | |
| * | | * | |
| * Ownership of the input text byte array remains with the caller. | | * Ownership of the input text byte array remains with the caller. | |
| * The input string must not be altered or deleted until the charset | | * The input string must not be altered or deleted until the charset | |
| * detector is either closed or reset to refer to different input text. | | * detector is either closed or reset to refer to different input text. | |
| * | | * | |
| * @param ucsd the charset detector to be used. | | * @param ucsd the charset detector to be used. | |
| * @param textIn the input text of unknown encoding. . | | * @param textIn the input text of unknown encoding. . | |
| * @param len the length of the input text, or -1 if the text | | * @param len the length of the input text, or -1 if the text | |
| | | | |
End of changes. 3 change blocks. |
| 1 lines changed or deleted | | 23 lines changed or added | |
|
| udatpg.h | | udatpg.h | |
| | | | |
| skipping to change at line 22 | | skipping to change at line 22 | |
| * | | * | |
| * created on: 2007jul30 | | * created on: 2007jul30 | |
| * created by: Markus W. Scherer | | * created by: Markus W. Scherer | |
| */ | | */ | |
| | | | |
| #ifndef __UDATPG_H__ | | #ifndef __UDATPG_H__ | |
| #define __UDATPG_H__ | | #define __UDATPG_H__ | |
| | | | |
| #include "unicode/utypes.h" | | #include "unicode/utypes.h" | |
| #include "unicode/uenum.h" | | #include "unicode/uenum.h" | |
|
| | | #include "unicode/localpointer.h" | |
| | | | |
| /** | | /** | |
| * \file | | * \file | |
| * \brief C API: Wrapper for DateTimePatternGenerator (unicode/dtptngen.h). | | * \brief C API: Wrapper for DateTimePatternGenerator (unicode/dtptngen.h). | |
| * | | * | |
| * UDateTimePatternGenerator provides flexible generation of date format pa
tterns, | | * UDateTimePatternGenerator provides flexible generation of date format pa
tterns, | |
| * like "yy-MM-dd". The user can build up the generator by adding successiv
e | | * like "yy-MM-dd". The user can build up the generator by adding successiv
e | |
| * patterns. Once that is done, a query can be made using a "skeleton", whi
ch is | | * patterns. Once that is done, a query can be made using a "skeleton", whi
ch is | |
| * a pattern which just includes the desired fields and lengths. The genera
tor | | * a pattern which just includes the desired fields and lengths. The genera
tor | |
| * will return the "best fit" pattern corresponding to that skeleton. | | * will return the "best fit" pattern corresponding to that skeleton. | |
| | | | |
| skipping to change at line 133 | | skipping to change at line 134 | |
| udatpg_openEmpty(UErrorCode *pErrorCode); | | udatpg_openEmpty(UErrorCode *pErrorCode); | |
| | | | |
| /** | | /** | |
| * Close a generator. | | * Close a generator. | |
| * @param dtpg a pointer to UDateTimePatternGenerator. | | * @param dtpg a pointer to UDateTimePatternGenerator. | |
| * @stable ICU 3.8 | | * @stable ICU 3.8 | |
| */ | | */ | |
| U_DRAFT void U_EXPORT2 | | U_DRAFT void U_EXPORT2 | |
| udatpg_close(UDateTimePatternGenerator *dtpg); | | udatpg_close(UDateTimePatternGenerator *dtpg); | |
| | | | |
|
| | | #ifdef XP_CPLUSPLUS | |
| | | | |
| | | U_NAMESPACE_BEGIN | |
| | | | |
| | | /** | |
| | | * \class LocalUDateTimePatternGeneratorPointer | |
| | | * "Smart pointer" class, closes a UDateTimePatternGenerator via udatpg_clo | |
| | | se(). | |
| | | * For most methods see the LocalPointerBase base class. | |
| | | * | |
| | | * @see LocalPointerBase | |
| | | * @see LocalPointer | |
| | | * @draft ICU 4.4 | |
| | | */ | |
| | | U_DEFINE_LOCAL_OPEN_POINTER(LocalUDateTimePatternGeneratorPointer, UDateTim | |
| | | ePatternGenerator, udatpg_close); | |
| | | | |
| | | U_NAMESPACE_END | |
| | | | |
| | | #endif | |
| | | | |
| /** | | /** | |
| * Create a copy pf a generator. | | * Create a copy pf a generator. | |
| * @param dtpg a pointer to UDateTimePatternGenerator to be copied. | | * @param dtpg a pointer to UDateTimePatternGenerator to be copied. | |
| * @param pErrorCode a pointer to the UErrorCode which must not indicate a | | * @param pErrorCode a pointer to the UErrorCode which must not indicate a | |
| * failure before the function call. | | * failure before the function call. | |
| * @return a pointer to a new UDateTimePatternGenerator. | | * @return a pointer to a new UDateTimePatternGenerator. | |
| * @stable ICU 3.8 | | * @stable ICU 3.8 | |
| */ | | */ | |
| U_DRAFT UDateTimePatternGenerator * U_EXPORT2 | | U_DRAFT UDateTimePatternGenerator * U_EXPORT2 | |
| udatpg_clone(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode)
; | | udatpg_clone(const UDateTimePatternGenerator *dtpg, UErrorCode *pErrorCode)
; | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 22 lines changed or added | |
|
| urename.h | | urename.h | |
| | | | |
| skipping to change at line 562 | | skipping to change at line 562 | |
| #define ucasemap_utf8FoldCase U_ICU_ENTRY_POINT_RENAME(ucasemap_utf8FoldCas
e) | | #define ucasemap_utf8FoldCase U_ICU_ENTRY_POINT_RENAME(ucasemap_utf8FoldCas
e) | |
| #define ucasemap_utf8ToLower U_ICU_ENTRY_POINT_RENAME(ucasemap_utf8ToLower) | | #define ucasemap_utf8ToLower U_ICU_ENTRY_POINT_RENAME(ucasemap_utf8ToLower) | |
| #define ucasemap_utf8ToTitle U_ICU_ENTRY_POINT_RENAME(ucasemap_utf8ToTitle) | | #define ucasemap_utf8ToTitle U_ICU_ENTRY_POINT_RENAME(ucasemap_utf8ToTitle) | |
| #define ucasemap_utf8ToUpper U_ICU_ENTRY_POINT_RENAME(ucasemap_utf8ToUpper) | | #define ucasemap_utf8ToUpper U_ICU_ENTRY_POINT_RENAME(ucasemap_utf8ToUpper) | |
| #define ucd_close U_ICU_ENTRY_POINT_RENAME(ucd_close) | | #define ucd_close U_ICU_ENTRY_POINT_RENAME(ucd_close) | |
| #define ucd_flushCache U_ICU_ENTRY_POINT_RENAME(ucd_flushCache) | | #define ucd_flushCache U_ICU_ENTRY_POINT_RENAME(ucd_flushCache) | |
| #define ucd_freeCache U_ICU_ENTRY_POINT_RENAME(ucd_freeCache) | | #define ucd_freeCache U_ICU_ENTRY_POINT_RENAME(ucd_freeCache) | |
| #define ucd_getCollator U_ICU_ENTRY_POINT_RENAME(ucd_getCollator) | | #define ucd_getCollator U_ICU_ENTRY_POINT_RENAME(ucd_getCollator) | |
| #define ucd_open U_ICU_ENTRY_POINT_RENAME(ucd_open) | | #define ucd_open U_ICU_ENTRY_POINT_RENAME(ucd_open) | |
| #define uchar_addPropertyStarts U_ICU_ENTRY_POINT_RENAME(uchar_addPropertyS
tarts) | | #define uchar_addPropertyStarts U_ICU_ENTRY_POINT_RENAME(uchar_addPropertyS
tarts) | |
|
| #define uchar_getHST U_ICU_ENTRY_POINT_RENAME(uchar_getHST) | | | |
| #define uchar_swapNames U_ICU_ENTRY_POINT_RENAME(uchar_swapNames) | | #define uchar_swapNames U_ICU_ENTRY_POINT_RENAME(uchar_swapNames) | |
| #define ucln_cleanupOne U_ICU_ENTRY_POINT_RENAME(ucln_cleanupOne) | | #define ucln_cleanupOne U_ICU_ENTRY_POINT_RENAME(ucln_cleanupOne) | |
| #define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_re
gisterCleanup) | | #define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_re
gisterCleanup) | |
| #define ucln_i18n_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_i18n_regist
erCleanup) | | #define ucln_i18n_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_i18n_regist
erCleanup) | |
| #define ucln_io_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_io_registerCl
eanup) | | #define ucln_io_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_io_registerCl
eanup) | |
| #define ucln_lib_cleanup U_ICU_ENTRY_POINT_RENAME(ucln_lib_cleanup) | | #define ucln_lib_cleanup U_ICU_ENTRY_POINT_RENAME(ucln_lib_cleanup) | |
| #define ucln_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_registerCleanup) | | #define ucln_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_registerCleanup) | |
| #define ucnv_MBCSFromUChar32 U_ICU_ENTRY_POINT_RENAME(ucnv_MBCSFromUChar32) | | #define ucnv_MBCSFromUChar32 U_ICU_ENTRY_POINT_RENAME(ucnv_MBCSFromUChar32) | |
| #define ucnv_MBCSFromUnicodeWithOffsets U_ICU_ENTRY_POINT_RENAME(ucnv_MBCSF
romUnicodeWithOffsets) | | #define ucnv_MBCSFromUnicodeWithOffsets U_ICU_ENTRY_POINT_RENAME(ucnv_MBCSF
romUnicodeWithOffsets) | |
| #define ucnv_MBCSGetFilteredUnicodeSetForUnicode U_ICU_ENTRY_POINT_RENAME(u
cnv_MBCSGetFilteredUnicodeSetForUnicode) | | #define ucnv_MBCSGetFilteredUnicodeSetForUnicode U_ICU_ENTRY_POINT_RENAME(u
cnv_MBCSGetFilteredUnicodeSetForUnicode) | |
| | | | |
| skipping to change at line 935 | | skipping to change at line 934 | |
| #define uhash_remove U_ICU_ENTRY_POINT_RENAME(uhash_remove) | | #define uhash_remove U_ICU_ENTRY_POINT_RENAME(uhash_remove) | |
| #define uhash_removeAll U_ICU_ENTRY_POINT_RENAME(uhash_removeAll) | | #define uhash_removeAll U_ICU_ENTRY_POINT_RENAME(uhash_removeAll) | |
| #define uhash_removeElement U_ICU_ENTRY_POINT_RENAME(uhash_removeElement) | | #define uhash_removeElement U_ICU_ENTRY_POINT_RENAME(uhash_removeElement) | |
| #define uhash_removei U_ICU_ENTRY_POINT_RENAME(uhash_removei) | | #define uhash_removei U_ICU_ENTRY_POINT_RENAME(uhash_removei) | |
| #define uhash_setKeyComparator U_ICU_ENTRY_POINT_RENAME(uhash_setKeyCompara
tor) | | #define uhash_setKeyComparator U_ICU_ENTRY_POINT_RENAME(uhash_setKeyCompara
tor) | |
| #define uhash_setKeyDeleter U_ICU_ENTRY_POINT_RENAME(uhash_setKeyDeleter) | | #define uhash_setKeyDeleter U_ICU_ENTRY_POINT_RENAME(uhash_setKeyDeleter) | |
| #define uhash_setKeyHasher U_ICU_ENTRY_POINT_RENAME(uhash_setKeyHasher) | | #define uhash_setKeyHasher U_ICU_ENTRY_POINT_RENAME(uhash_setKeyHasher) | |
| #define uhash_setResizePolicy U_ICU_ENTRY_POINT_RENAME(uhash_setResizePolic
y) | | #define uhash_setResizePolicy U_ICU_ENTRY_POINT_RENAME(uhash_setResizePolic
y) | |
| #define uhash_setValueComparator U_ICU_ENTRY_POINT_RENAME(uhash_setValueCom
parator) | | #define uhash_setValueComparator U_ICU_ENTRY_POINT_RENAME(uhash_setValueCom
parator) | |
| #define uhash_setValueDeleter U_ICU_ENTRY_POINT_RENAME(uhash_setValueDelete
r) | | #define uhash_setValueDeleter U_ICU_ENTRY_POINT_RENAME(uhash_setValueDelete
r) | |
|
| #define uhst_addPropertyStarts U_ICU_ENTRY_POINT_RENAME(uhst_addPropertySta
rts) | | | |
| #define uidna_IDNToASCII U_ICU_ENTRY_POINT_RENAME(uidna_IDNToASCII) | | #define uidna_IDNToASCII U_ICU_ENTRY_POINT_RENAME(uidna_IDNToASCII) | |
| #define uidna_IDNToUnicode U_ICU_ENTRY_POINT_RENAME(uidna_IDNToUnicode) | | #define uidna_IDNToUnicode U_ICU_ENTRY_POINT_RENAME(uidna_IDNToUnicode) | |
| #define uidna_compare U_ICU_ENTRY_POINT_RENAME(uidna_compare) | | #define uidna_compare U_ICU_ENTRY_POINT_RENAME(uidna_compare) | |
| #define uidna_toASCII U_ICU_ENTRY_POINT_RENAME(uidna_toASCII) | | #define uidna_toASCII U_ICU_ENTRY_POINT_RENAME(uidna_toASCII) | |
| #define uidna_toUnicode U_ICU_ENTRY_POINT_RENAME(uidna_toUnicode) | | #define uidna_toUnicode U_ICU_ENTRY_POINT_RENAME(uidna_toUnicode) | |
| #define uiter_current32 U_ICU_ENTRY_POINT_RENAME(uiter_current32) | | #define uiter_current32 U_ICU_ENTRY_POINT_RENAME(uiter_current32) | |
| #define uiter_getState U_ICU_ENTRY_POINT_RENAME(uiter_getState) | | #define uiter_getState U_ICU_ENTRY_POINT_RENAME(uiter_getState) | |
| #define uiter_next32 U_ICU_ENTRY_POINT_RENAME(uiter_next32) | | #define uiter_next32 U_ICU_ENTRY_POINT_RENAME(uiter_next32) | |
| #define uiter_previous32 U_ICU_ENTRY_POINT_RENAME(uiter_previous32) | | #define uiter_previous32 U_ICU_ENTRY_POINT_RENAME(uiter_previous32) | |
| #define uiter_setCharacterIterator U_ICU_ENTRY_POINT_RENAME(uiter_setCharac
terIterator) | | #define uiter_setCharacterIterator U_ICU_ENTRY_POINT_RENAME(uiter_setCharac
terIterator) | |
| | | | |
End of changes. 2 change blocks. |
| 2 lines changed or deleted | | 0 lines changed or added | |
|
| ures.h | | ures.h | |
| | | | |
| skipping to change at line 28 | | skipping to change at line 28 | |
| * 11/09/99 weiv Added ures_getLocale() | | * 11/09/99 weiv Added ures_getLocale() | |
| * 06/24/02 weiv Added support for resource sharing | | * 06/24/02 weiv Added support for resource sharing | |
| ***************************************************************************
*** | | ***************************************************************************
*** | |
| */ | | */ | |
| | | | |
| #ifndef URES_H | | #ifndef URES_H | |
| #define URES_H | | #define URES_H | |
| | | | |
| #include "unicode/utypes.h" | | #include "unicode/utypes.h" | |
| #include "unicode/uloc.h" | | #include "unicode/uloc.h" | |
|
| | | #include "unicode/localpointer.h" | |
| | | | |
| /** | | /** | |
| * \file | | * \file | |
| * \brief C API: Resource Bundle | | * \brief C API: Resource Bundle | |
| * | | * | |
| * <h2>C API: Resource Bundle</h2> | | * <h2>C API: Resource Bundle</h2> | |
| * | | * | |
| * C API representing a collection of resource information pertaining to a
given | | * C API representing a collection of resource information pertaining to a
given | |
| * locale. A resource bundle provides a way of accessing locale- specific i
nformation in | | * locale. A resource bundle provides a way of accessing locale- specific i
nformation in | |
| * a data file. You create a resource bundle that manages the resources for
a given | | * a data file. You create a resource bundle that manages the resources for
a given | |
| | | | |
| skipping to change at line 240 | | skipping to change at line 241 | |
| * Close a resource bundle, all pointers returned from the various ures_get
XXX calls | | * Close a resource bundle, all pointers returned from the various ures_get
XXX calls | |
| * on this particular bundle should be considered invalid henceforth. | | * on this particular bundle should be considered invalid henceforth. | |
| * | | * | |
| * @param resourceBundle a pointer to a resourceBundle struct. Can be NULL. | | * @param resourceBundle a pointer to a resourceBundle struct. Can be NULL. | |
| * @see ures_open | | * @see ures_open | |
| * @stable ICU 2.0 | | * @stable ICU 2.0 | |
| */ | | */ | |
| U_STABLE void U_EXPORT2 | | U_STABLE void U_EXPORT2 | |
| ures_close(UResourceBundle* resourceBundle); | | ures_close(UResourceBundle* resourceBundle); | |
| | | | |
|
| | | #ifdef XP_CPLUSPLUS | |
| | | | |
| | | U_NAMESPACE_BEGIN | |
| | | | |
| | | /** | |
| | | * \class LocalUResourceBundlePointer | |
| | | * "Smart pointer" class, closes a UResourceBundle via ures_close(). | |
| | | * For most methods see the LocalPointerBase base class. | |
| | | * | |
| | | * @see LocalPointerBase | |
| | | * @see LocalPointer | |
| | | * @draft ICU 4.4 | |
| | | */ | |
| | | U_DEFINE_LOCAL_OPEN_POINTER(LocalUResourceBundlePointer, UResourceBundle, u | |
| | | res_close); | |
| | | | |
| | | U_NAMESPACE_END | |
| | | | |
| | | #endif | |
| | | | |
| /** | | /** | |
| * Return the version number associated with this ResourceBundle as a strin
g. Please | | * Return the version number associated with this ResourceBundle as a strin
g. Please | |
| * use ures_getVersion as this function is going to be deprecated. | | * use ures_getVersion as this function is going to be deprecated. | |
| * | | * | |
| * @param resourceBundle The resource bundle for which the version is check
ed. | | * @param resourceBundle The resource bundle for which the version is check
ed. | |
| * @return A version number string as specified in the resource bundle or
its parent. | | * @return A version number string as specified in the resource bundle or
its parent. | |
| * The caller does not own this string. | | * The caller does not own this string. | |
| * @see ures_getVersion | | * @see ures_getVersion | |
| * @deprecated ICU 2.8 Use ures_getVersion instead. | | * @deprecated ICU 2.8 Use ures_getVersion instead. | |
| */ | | */ | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 21 lines changed or added | |
|
| uscript.h | | uscript.h | |
| | | | |
| skipping to change at line 49 | | skipping to change at line 49 | |
| * Hans or Hant. All Han ideographs have the Hani script code. | | * Hans or Hant. All Han ideographs have the Hani script code. | |
| * The Hans and Hant script codes are used with CLDR data. | | * The Hans and Hant script codes are used with CLDR data. | |
| * | | * | |
| * ISO 15924 script codes are included for use with CLDR and similar. | | * ISO 15924 script codes are included for use with CLDR and similar. | |
| * | | * | |
| * @stable ICU 2.2 | | * @stable ICU 2.2 | |
| */ | | */ | |
| typedef enum UScriptCode { | | typedef enum UScriptCode { | |
| USCRIPT_INVALID_CODE = -1, | | USCRIPT_INVALID_CODE = -1, | |
| USCRIPT_COMMON = 0 , /* Zyyy */ | | USCRIPT_COMMON = 0 , /* Zyyy */ | |
|
| USCRIPT_INHERITED = 1, /* Qaai */ | | USCRIPT_INHERITED = 1, /* Zinh */ /* "Code for inherited script"
, for non-spacing combining marks; also Qaai */ | |
| USCRIPT_ARABIC = 2, /* Arab */ | | USCRIPT_ARABIC = 2, /* Arab */ | |
| USCRIPT_ARMENIAN = 3, /* Armn */ | | USCRIPT_ARMENIAN = 3, /* Armn */ | |
| USCRIPT_BENGALI = 4, /* Beng */ | | USCRIPT_BENGALI = 4, /* Beng */ | |
| USCRIPT_BOPOMOFO = 5, /* Bopo */ | | USCRIPT_BOPOMOFO = 5, /* Bopo */ | |
| USCRIPT_CHEROKEE = 6, /* Cher */ | | USCRIPT_CHEROKEE = 6, /* Cher */ | |
| USCRIPT_COPTIC = 7, /* Copt */ | | USCRIPT_COPTIC = 7, /* Copt */ | |
| USCRIPT_CYRILLIC = 8, /* Cyrl */ | | USCRIPT_CYRILLIC = 8, /* Cyrl */ | |
| USCRIPT_DESERET = 9, /* Dsrt */ | | USCRIPT_DESERET = 9, /* Dsrt */ | |
| USCRIPT_DEVANAGARI = 10, /* Deva */ | | USCRIPT_DEVANAGARI = 10, /* Deva */ | |
| USCRIPT_ETHIOPIC = 11, /* Ethi */ | | USCRIPT_ETHIOPIC = 11, /* Ethi */ | |
| | | | |
| skipping to change at line 159 | | skipping to change at line 159 | |
| USCRIPT_PHAGS_PA = 90, /* Phag */ | | USCRIPT_PHAGS_PA = 90, /* Phag */ | |
| USCRIPT_PHOENICIAN = 91, /* Phnx */ | | USCRIPT_PHOENICIAN = 91, /* Phnx */ | |
| USCRIPT_PHONETIC_POLLARD = 92, /* Plrd */ | | USCRIPT_PHONETIC_POLLARD = 92, /* Plrd */ | |
| USCRIPT_RONGORONGO = 93, /* Roro */ | | USCRIPT_RONGORONGO = 93, /* Roro */ | |
| USCRIPT_SARATI = 94, /* Sara */ | | USCRIPT_SARATI = 94, /* Sara */ | |
| USCRIPT_ESTRANGELO_SYRIAC = 95, /* Syre */ | | USCRIPT_ESTRANGELO_SYRIAC = 95, /* Syre */ | |
| USCRIPT_WESTERN_SYRIAC = 96, /* Syrj */ | | USCRIPT_WESTERN_SYRIAC = 96, /* Syrj */ | |
| USCRIPT_EASTERN_SYRIAC = 97, /* Syrn */ | | USCRIPT_EASTERN_SYRIAC = 97, /* Syrn */ | |
| USCRIPT_TENGWAR = 98, /* Teng */ | | USCRIPT_TENGWAR = 98, /* Teng */ | |
| USCRIPT_VAI = 99, /* Vaii */ | | USCRIPT_VAI = 99, /* Vaii */ | |
|
| USCRIPT_VISIBLE_SPEECH = 100, /* Visp */ | | USCRIPT_VISIBLE_SPEECH = 100,/* Visp */ | |
| USCRIPT_CUNEIFORM = 101,/* Xsux */ | | USCRIPT_CUNEIFORM = 101,/* Xsux */ | |
| USCRIPT_UNWRITTEN_LANGUAGES = 102,/* Zxxx */ | | USCRIPT_UNWRITTEN_LANGUAGES = 102,/* Zxxx */ | |
| USCRIPT_UNKNOWN = 103,/* Zzzz */ /* Unknown="Co
de for uncoded script", for unassigned code points */ | | USCRIPT_UNKNOWN = 103,/* Zzzz */ /* Unknown="Co
de for uncoded script", for unassigned code points */ | |
| | | | |
| /* New script codes from ISO 15924 @stable ICU 3.8 */ | | /* New script codes from ISO 15924 @stable ICU 3.8 */ | |
| USCRIPT_CARIAN = 104,/* Cari */ | | USCRIPT_CARIAN = 104,/* Cari */ | |
| USCRIPT_JAPANESE = 105,/* Jpan */ | | USCRIPT_JAPANESE = 105,/* Jpan */ | |
| USCRIPT_LANNA = 106,/* Lana */ | | USCRIPT_LANNA = 106,/* Lana */ | |
| USCRIPT_LYCIAN = 107,/* Lyci */ | | USCRIPT_LYCIAN = 107,/* Lyci */ | |
| USCRIPT_LYDIAN = 108,/* Lydi */ | | USCRIPT_LYDIAN = 108,/* Lydi */ | |
| | | | |
| skipping to change at line 194 | | skipping to change at line 194 | |
| USCRIPT_MANICHAEAN = 121,/* Mani */ | | USCRIPT_MANICHAEAN = 121,/* Mani */ | |
| USCRIPT_INSCRIPTIONAL_PAHLAVI = 122,/* Phli */ | | USCRIPT_INSCRIPTIONAL_PAHLAVI = 122,/* Phli */ | |
| USCRIPT_PSALTER_PAHLAVI = 123,/* Phlp */ | | USCRIPT_PSALTER_PAHLAVI = 123,/* Phlp */ | |
| USCRIPT_BOOK_PAHLAVI = 124,/* Phlv */ | | USCRIPT_BOOK_PAHLAVI = 124,/* Phlv */ | |
| USCRIPT_INSCRIPTIONAL_PARTHIAN = 125,/* Prti */ | | USCRIPT_INSCRIPTIONAL_PARTHIAN = 125,/* Prti */ | |
| USCRIPT_SAMARITAN = 126,/* Samr */ | | USCRIPT_SAMARITAN = 126,/* Samr */ | |
| USCRIPT_TAI_VIET = 127,/* Tavt */ | | USCRIPT_TAI_VIET = 127,/* Tavt */ | |
| USCRIPT_MATHEMATICAL_NOTATION = 128,/* Zmth */ | | USCRIPT_MATHEMATICAL_NOTATION = 128,/* Zmth */ | |
| USCRIPT_SYMBOLS = 129,/* Zsym */ | | USCRIPT_SYMBOLS = 129,/* Zsym */ | |
| | | | |
|
| | | /* New script codes from ISO 15924 @draft ICU 4.4 */ | |
| | | USCRIPT_BAMUM = 130,/* Bamu */ | |
| | | USCRIPT_LISU = 131,/* Lisu */ | |
| | | USCRIPT_NAKHI_GEBA = 132,/* Nkgb */ | |
| | | USCRIPT_OLD_SOUTH_ARABIAN = 133,/* Sarb */ | |
| | | | |
| /* Private use codes from Qaaa - Qabx are not supported*/ | | /* Private use codes from Qaaa - Qabx are not supported*/ | |
|
| USCRIPT_CODE_LIMIT = 130 | | USCRIPT_CODE_LIMIT = 134 | |
| } UScriptCode; | | } UScriptCode; | |
| | | | |
| /** | | /** | |
| * Gets script codes associated with the given locale or ISO 15924 abbrevia
tion or name. | | * Gets script codes associated with the given locale or ISO 15924 abbrevia
tion or name. | |
| * Fills in USCRIPT_MALAYALAM given "Malayam" OR "Mlym". | | * Fills in USCRIPT_MALAYALAM given "Malayam" OR "Mlym". | |
| * Fills in USCRIPT_LATIN given "en" OR "en_US" | | * Fills in USCRIPT_LATIN given "en" OR "en_US" | |
| * If required capacity is greater than capacity of the destination buffer
then the error code | | * If required capacity is greater than capacity of the destination buffer
then the error code | |
| * is set to U_BUFFER_OVERFLOW_ERROR and the required capacity is returned | | * is set to U_BUFFER_OVERFLOW_ERROR and the required capacity is returned | |
| * | | * | |
| * <p>Note: To search by short or long script alias only, use | | * <p>Note: To search by short or long script alias only, use | |
| | | | |
End of changes. 4 change blocks. |
| 3 lines changed or deleted | | 9 lines changed or added | |
|
| usearch.h | | usearch.h | |
| /* | | /* | |
| ********************************************************************** | | ********************************************************************** | |
|
| * Copyright (C) 2001-2008 IBM and others. All rights reserved. | | * Copyright (C) 2001-2009 IBM and others. All rights reserved. | |
| ********************************************************************** | | ********************************************************************** | |
| * Date Name Description | | * Date Name Description | |
| * 06/28/2001 synwee Creation. | | * 06/28/2001 synwee Creation. | |
| ********************************************************************** | | ********************************************************************** | |
| */ | | */ | |
| #ifndef USEARCH_H | | #ifndef USEARCH_H | |
| #define USEARCH_H | | #define USEARCH_H | |
| | | | |
| #include "unicode/utypes.h" | | #include "unicode/utypes.h" | |
| | | | |
| #if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION | | #if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION | |
| | | | |
|
| | | #include "unicode/localpointer.h" | |
| #include "unicode/ucol.h" | | #include "unicode/ucol.h" | |
| #include "unicode/ucoleitr.h" | | #include "unicode/ucoleitr.h" | |
| #include "unicode/ubrk.h" | | #include "unicode/ubrk.h" | |
| | | | |
| /** | | /** | |
| * \file | | * \file | |
| * \brief C API: StringSearch | | * \brief C API: StringSearch | |
| * | | * | |
| * C Apis for an engine that provides language-sensitive text searching bas
ed | | * C Apis for an engine that provides language-sensitive text searching bas
ed | |
| * on the comparison rules defined in a <tt>UCollator</tt> data struct, | | * on the comparison rules defined in a <tt>UCollator</tt> data struct, | |
| | | | |
| skipping to change at line 252 | | skipping to change at line 253 | |
| UErrorCode *status); | | UErrorCode *status); | |
| | | | |
| /** | | /** | |
| * Destroying and cleaning up the search iterator data struct. | | * Destroying and cleaning up the search iterator data struct. | |
| * If a collator is created in <tt>usearch_open</tt>, it will be destroyed h
ere. | | * If a collator is created in <tt>usearch_open</tt>, it will be destroyed h
ere. | |
| * @param searchiter data struct to clean up | | * @param searchiter data struct to clean up | |
| * @stable ICU 2.4 | | * @stable ICU 2.4 | |
| */ | | */ | |
| U_STABLE void U_EXPORT2 usearch_close(UStringSearch *searchiter); | | U_STABLE void U_EXPORT2 usearch_close(UStringSearch *searchiter); | |
| | | | |
|
| | | #ifdef XP_CPLUSPLUS | |
| | | | |
| | | U_NAMESPACE_BEGIN | |
| | | | |
| | | /** | |
| | | * \class LocalUStringSearchPointer | |
| | | * "Smart pointer" class, closes a UStringSearch via usearch_close(). | |
| | | * For most methods see the LocalPointerBase base class. | |
| | | * | |
| | | * @see LocalPointerBase | |
| | | * @see LocalPointer | |
| | | * @draft ICU 4.4 | |
| | | */ | |
| | | U_DEFINE_LOCAL_OPEN_POINTER(LocalUStringSearchPointer, UStringSearch, usear | |
| | | ch_close); | |
| | | | |
| | | U_NAMESPACE_END | |
| | | | |
| | | #endif | |
| | | | |
| /* get and set methods -------------------------------------------------- *
/ | | /* get and set methods -------------------------------------------------- *
/ | |
| | | | |
| /** | | /** | |
| * Sets the current position in the text string which the next search will | | * Sets the current position in the text string which the next search will | |
| * start from. Clears previous states. | | * start from. Clears previous states. | |
| * This method takes the argument index and sets the position in the text | | * This method takes the argument index and sets the position in the text | |
| * string accordingly without checking if the index is pointing to a | | * string accordingly without checking if the index is pointing to a | |
| * valid starting point to begin searching. | | * valid starting point to begin searching. | |
| * Search positions that may render incorrect results are highlighted in the | | * Search positions that may render incorrect results are highlighted in the | |
| * header comments | | * header comments | |
| | | | |
End of changes. 3 change blocks. |
| 1 lines changed or deleted | | 22 lines changed or added | |
|
| usprep.h | | usprep.h | |
| | | | |
| skipping to change at line 26 | | skipping to change at line 26 | |
| | | | |
| #ifndef __USPREP_H__ | | #ifndef __USPREP_H__ | |
| #define __USPREP_H__ | | #define __USPREP_H__ | |
| | | | |
| /** | | /** | |
| * \file | | * \file | |
| * \brief C API: Implements the StringPrep algorithm. | | * \brief C API: Implements the StringPrep algorithm. | |
| */ | | */ | |
| | | | |
| #include "unicode/utypes.h" | | #include "unicode/utypes.h" | |
|
| | | #include "unicode/localpointer.h" | |
| | | | |
| /** | | /** | |
| * | | * | |
| * StringPrep API implements the StingPrep framework as described by RFC 34
54. | | * StringPrep API implements the StingPrep framework as described by RFC 34
54. | |
| * StringPrep prepares Unicode strings for use in network protocols. | | * StringPrep prepares Unicode strings for use in network protocols. | |
| * Profiles of StingPrep are set of rules and data according to with the | | * Profiles of StingPrep are set of rules and data according to with the | |
| * Unicode Strings are prepared. Each profiles contains tables which descri
be | | * Unicode Strings are prepared. Each profiles contains tables which descri
be | |
| * how a code point should be treated. The tables are broadly classied into | | * how a code point should be treated. The tables are broadly classied into | |
| * <ul> | | * <ul> | |
| * <li> Unassinged Table: Contains code points that are unassigned | | * <li> Unassinged Table: Contains code points that are unassigned | |
| * in the Unicode Version supported by StringPrep. Currently | | * in the Unicode Version supported by StringPrep. Currently | |
| | | | |
| skipping to change at line 207 | | skipping to change at line 209 | |
| UErrorCode* status); | | UErrorCode* status); | |
| | | | |
| /** | | /** | |
| * Closes the profile | | * Closes the profile | |
| * @param profile The profile to close | | * @param profile The profile to close | |
| * @stable ICU 2.8 | | * @stable ICU 2.8 | |
| */ | | */ | |
| U_STABLE void U_EXPORT2 | | U_STABLE void U_EXPORT2 | |
| usprep_close(UStringPrepProfile* profile); | | usprep_close(UStringPrepProfile* profile); | |
| | | | |
|
| | | #ifdef XP_CPLUSPLUS | |
| | | | |
| | | U_NAMESPACE_BEGIN | |
| | | | |
| | | /** | |
| | | * \class LocalUStringPrepProfilePointer | |
| | | * "Smart pointer" class, closes a UStringPrepProfile via usprep_close(). | |
| | | * For most methods see the LocalPointerBase base class. | |
| | | * | |
| | | * @see LocalPointerBase | |
| | | * @see LocalPointer | |
| | | * @draft ICU 4.4 | |
| | | */ | |
| | | U_DEFINE_LOCAL_OPEN_POINTER(LocalUStringPrepProfilePointer, UStringPrepProf | |
| | | ile, usprep_close); | |
| | | | |
| | | U_NAMESPACE_END | |
| | | | |
| | | #endif | |
| | | | |
| /** | | /** | |
| * Prepare the input buffer for use in applications with the given profile.
This operation maps, normalizes(NFKC), | | * Prepare the input buffer for use in applications with the given profile.
This operation maps, normalizes(NFKC), | |
| * checks for prohited and BiDi characters in the order defined by RFC 3454 | | * checks for prohited and BiDi characters in the order defined by RFC 3454 | |
| * depending on the options specified in the profile. | | * depending on the options specified in the profile. | |
| * | | * | |
| * @param prep The profile to use | | * @param prep The profile to use | |
| * @param src Pointer to UChar buffer containing the string to pr
epare | | * @param src Pointer to UChar buffer containing the string to pr
epare | |
| * @param srcLength Number of characters in the source string | | * @param srcLength Number of characters in the source string | |
| * @param dest Pointer to the destination buffer to receive the ou
tput | | * @param dest Pointer to the destination buffer to receive the ou
tput | |
| * @param destCapacity The capacity of destination array | | * @param destCapacity The capacity of destination array | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 22 lines changed or added | |
|
| utext.h | | utext.h | |
| /* | | /* | |
| ***************************************************************************
**** | | ***************************************************************************
**** | |
| * | | * | |
|
| * Copyright (C) 2004-2008, International Business Machines | | * Copyright (C) 2004-2009, International Business Machines | |
| * Corporation and others. All Rights Reserved. | | * Corporation and others. All Rights Reserved. | |
| * | | * | |
| ***************************************************************************
**** | | ***************************************************************************
**** | |
| * file name: utext.h | | * file name: utext.h | |
| * encoding: US-ASCII | | * encoding: US-ASCII | |
| * tab size: 8 (not used) | | * tab size: 8 (not used) | |
| * indentation:4 | | * indentation:4 | |
| * | | * | |
| * created on: 2004oct06 | | * created on: 2004oct06 | |
| * created by: Markus W. Scherer | | * created by: Markus W. Scherer | |
| | | | |
| skipping to change at line 138 | | skipping to change at line 138 | |
| * | | * | |
| * Any existing UText passed to an open function _must_ have been initializ
ed, | | * Any existing UText passed to an open function _must_ have been initializ
ed, | |
| * either by the UTEXT_INITIALIZER, or by having been originally heap-alloc
ated | | * either by the UTEXT_INITIALIZER, or by having been originally heap-alloc
ated | |
| * by an open function. Passing NULL will cause the open function to | | * by an open function. Passing NULL will cause the open function to | |
| * heap-allocate and fully initialize a new UText. | | * heap-allocate and fully initialize a new UText. | |
| * | | * | |
| */ | | */ | |
| | | | |
| #include "unicode/utypes.h" | | #include "unicode/utypes.h" | |
| #ifdef XP_CPLUSPLUS | | #ifdef XP_CPLUSPLUS | |
|
| | | #include "unicode/localpointer.h" | |
| #include "unicode/rep.h" | | #include "unicode/rep.h" | |
| #include "unicode/unistr.h" | | #include "unicode/unistr.h" | |
| #include "unicode/chariter.h" | | #include "unicode/chariter.h" | |
| #endif | | #endif | |
| | | | |
| U_CDECL_BEGIN | | U_CDECL_BEGIN | |
| | | | |
| struct UText; | | struct UText; | |
| typedef struct UText UText; /**< C typedef for struct UText. @stable ICU 3.
6 */ | | typedef struct UText UText; /**< C typedef for struct UText. @stable ICU 3.
6 */ | |
| | | | |
| | | | |
| skipping to change at line 177 | | skipping to change at line 178 | |
| * @return NULL if the UText struct was deleted by the close. If the U
Text struct | | * @return NULL if the UText struct was deleted by the close. If the U
Text struct | |
| * was originally provided by the caller to the open function,
it is | | * was originally provided by the caller to the open function,
it is | |
| * returned by this function, and may be safely used again in | | * returned by this function, and may be safely used again in | |
| * a subsequent utext_open. | | * a subsequent utext_open. | |
| * | | * | |
| * @stable ICU 3.4 | | * @stable ICU 3.4 | |
| */ | | */ | |
| U_STABLE UText * U_EXPORT2 | | U_STABLE UText * U_EXPORT2 | |
| utext_close(UText *ut); | | utext_close(UText *ut); | |
| | | | |
|
| | | #ifdef XP_CPLUSPLUS | |
| | | | |
| | | U_NAMESPACE_BEGIN | |
| | | | |
| | | /** | |
| | | * \class LocalUTextPointer | |
| | | * "Smart pointer" class, closes a UText via utext_close(). | |
| | | * For most methods see the LocalPointerBase base class. | |
| | | * | |
| | | * @see LocalPointerBase | |
| | | * @see LocalPointer | |
| | | * @draft ICU 4.4 | |
| | | */ | |
| | | U_DEFINE_LOCAL_OPEN_POINTER(LocalUTextPointer, UText, utext_close); | |
| | | | |
| | | U_NAMESPACE_END | |
| | | | |
| | | #endif | |
| | | | |
| /** | | /** | |
| * Open a read-only UText implementation for UTF-8 strings. | | * Open a read-only UText implementation for UTF-8 strings. | |
| * | | * | |
| * \htmlonly | | * \htmlonly | |
| * Any invalid UTF-8 in the input will be handled in this way: | | * Any invalid UTF-8 in the input will be handled in this way: | |
| * a sequence of bytes that has the form of a truncated, but otherwise vali
d, | | * a sequence of bytes that has the form of a truncated, but otherwise vali
d, | |
| * UTF-8 sequence will be replaced by a single unicode replacement characte
r, \uFFFD. | | * UTF-8 sequence will be replaced by a single unicode replacement characte
r, \uFFFD. | |
| * Any other illegal bytes will each be replaced by a \uFFFD. | | * Any other illegal bytes will each be replaced by a \uFFFD. | |
| * \endhtmlonly | | * \endhtmlonly | |
| * | | * | |
| | | | |
End of changes. 3 change blocks. |
| 1 lines changed or deleted | | 21 lines changed or added | |
|
| utrans.h | | utrans.h | |
| /* | | /* | |
| ***************************************************************************
**** | | ***************************************************************************
**** | |
|
| * Copyright (C) 1997-2005, International Business Machines | | * Copyright (C) 1997-2009, International Business Machines | |
| * Corporation and others. All Rights Reserved. | | * Corporation and others. All Rights Reserved. | |
| ***************************************************************************
**** | | ***************************************************************************
**** | |
| * Date Name Description | | * Date Name Description | |
| * 06/21/00 aliu Creation. | | * 06/21/00 aliu Creation. | |
| ***************************************************************************
**** | | ***************************************************************************
**** | |
| */ | | */ | |
| | | | |
| #ifndef UTRANS_H | | #ifndef UTRANS_H | |
| #define UTRANS_H | | #define UTRANS_H | |
| | | | |
| #include "unicode/utypes.h" | | #include "unicode/utypes.h" | |
| | | | |
| #if !UCONFIG_NO_TRANSLITERATION | | #if !UCONFIG_NO_TRANSLITERATION | |
| | | | |
|
| | | #include "unicode/localpointer.h" | |
| #include "unicode/urep.h" | | #include "unicode/urep.h" | |
| #include "unicode/parseerr.h" | | #include "unicode/parseerr.h" | |
| #include "unicode/uenum.h" | | #include "unicode/uenum.h" | |
| | | | |
| /******************************************************************** | | /******************************************************************** | |
| * General Notes | | * General Notes | |
| ******************************************************************** | | ******************************************************************** | |
| */ | | */ | |
| /** | | /** | |
| * \file | | * \file | |
| | | | |
| skipping to change at line 238 | | skipping to change at line 239 | |
| | | | |
| /** | | /** | |
| * Close a transliterator. Any non-NULL pointer returned by | | * Close a transliterator. Any non-NULL pointer returned by | |
| * utrans_openXxx() or utrans_clone() should eventually be closed. | | * utrans_openXxx() or utrans_clone() should eventually be closed. | |
| * @param trans the transliterator to be closed. | | * @param trans the transliterator to be closed. | |
| * @stable ICU 2.0 | | * @stable ICU 2.0 | |
| */ | | */ | |
| U_STABLE void U_EXPORT2 | | U_STABLE void U_EXPORT2 | |
| utrans_close(UTransliterator* trans); | | utrans_close(UTransliterator* trans); | |
| | | | |
|
| | | #ifdef XP_CPLUSPLUS | |
| | | | |
| | | U_NAMESPACE_BEGIN | |
| | | | |
| | | /** | |
| | | * \class LocalUTransliteratorPointer | |
| | | * "Smart pointer" class, closes a UTransliterator via utrans_close(). | |
| | | * For most methods see the LocalPointerBase base class. | |
| | | * | |
| | | * @see LocalPointerBase | |
| | | * @see LocalPointer | |
| | | * @draft ICU 4.4 | |
| | | */ | |
| | | U_DEFINE_LOCAL_OPEN_POINTER(LocalUTransliteratorPointer, UTransliterator, u | |
| | | trans_close); | |
| | | | |
| | | U_NAMESPACE_END | |
| | | | |
| | | #endif | |
| | | | |
| /** | | /** | |
| * Return the programmatic identifier for this transliterator. | | * Return the programmatic identifier for this transliterator. | |
| * If this identifier is passed to utrans_openU(), it will open | | * If this identifier is passed to utrans_openU(), it will open | |
| * a transliterator equivalent to this one, if the ID has been | | * a transliterator equivalent to this one, if the ID has been | |
| * registered. | | * registered. | |
| * | | * | |
| * @param trans the transliterator to return the ID of. | | * @param trans the transliterator to return the ID of. | |
| * @param resultLength pointer to an output variable receiving the length | | * @param resultLength pointer to an output variable receiving the length | |
| * of the ID string; can be NULL | | * of the ID string; can be NULL | |
| * @return the NUL-terminated ID string. This pointer remains | | * @return the NUL-terminated ID string. This pointer remains | |
| | | | |
End of changes. 3 change blocks. |
| 1 lines changed or deleted | | 22 lines changed or added | |
|
| uvernum.h | | uvernum.h | |
| | | | |
| skipping to change at line 44 | | skipping to change at line 44 | |
| /** The current ICU minor version as an integer. | | /** The current ICU minor version as an integer. | |
| * This value will change in the subsequent releases of ICU | | * This value will change in the subsequent releases of ICU | |
| * @stable ICU 2.6 | | * @stable ICU 2.6 | |
| */ | | */ | |
| #define U_ICU_VERSION_MINOR_NUM 3 | | #define U_ICU_VERSION_MINOR_NUM 3 | |
| | | | |
| /** The current ICU patchlevel version as an integer. | | /** The current ICU patchlevel version as an integer. | |
| * This value will change in the subsequent releases of ICU | | * This value will change in the subsequent releases of ICU | |
| * @stable ICU 2.4 | | * @stable ICU 2.4 | |
| */ | | */ | |
|
| #define U_ICU_VERSION_PATCHLEVEL_NUM 2 | | #define U_ICU_VERSION_PATCHLEVEL_NUM 3 | |
| | | | |
| /** The current ICU build level version as an integer. | | /** The current ICU build level version as an integer. | |
| * This value is for use by ICU clients. It defaults to 0. | | * This value is for use by ICU clients. It defaults to 0. | |
| * @draft ICU 4.0 | | * @draft ICU 4.0 | |
| */ | | */ | |
| #ifndef U_ICU_VERSION_BUILDLEVEL_NUM | | #ifndef U_ICU_VERSION_BUILDLEVEL_NUM | |
| #define U_ICU_VERSION_BUILDLEVEL_NUM 0 | | #define U_ICU_VERSION_BUILDLEVEL_NUM 0 | |
| #endif | | #endif | |
| | | | |
| /** Glued version suffix for renamers | | /** Glued version suffix for renamers | |
| | | | |
| skipping to change at line 75 | | skipping to change at line 75 | |
| */ | | */ | |
| #ifndef U_ICU_ENTRY_POINT_RENAME | | #ifndef U_ICU_ENTRY_POINT_RENAME | |
| #define U_ICU_ENTRY_POINT_RENAME(x) x ## _43 | | #define U_ICU_ENTRY_POINT_RENAME(x) x ## _43 | |
| #endif | | #endif | |
| | | | |
| /** The current ICU library version as a dotted-decimal string. The patchle
vel | | /** The current ICU library version as a dotted-decimal string. The patchle
vel | |
| * only appears in this string if it non-zero. | | * only appears in this string if it non-zero. | |
| * This value will change in the subsequent releases of ICU | | * This value will change in the subsequent releases of ICU | |
| * @stable ICU 2.4 | | * @stable ICU 2.4 | |
| */ | | */ | |
|
| #define U_ICU_VERSION "4.3.2" | | #define U_ICU_VERSION "4.3.3" | |
| | | | |
| /** The current ICU library major/minor version as a string without dots, f
or library name suffixes. | | /** The current ICU library major/minor version as a string without dots, f
or library name suffixes. | |
| * This value will change in the subsequent releases of ICU | | * This value will change in the subsequent releases of ICU | |
| * @stable ICU 2.6 | | * @stable ICU 2.6 | |
| */ | | */ | |
| #define U_ICU_VERSION_SHORT "43" | | #define U_ICU_VERSION_SHORT "43" | |
| | | | |
| /** Data version in ICU4C. | | /** Data version in ICU4C. | |
| * * @draft ICU 4.4 | | * * @draft ICU 4.4 | |
| * */ | | * */ | |
|
| #define U_ICU_DATA_VERSION "4.3.2" | | #define U_ICU_DATA_VERSION "4.3.3" | |
| | | | |
| /*=========================================================================
== | | /*=========================================================================
== | |
| * ICU collation framework version information | | * ICU collation framework version information | |
| * Version info that can be obtained from a collator is affected by these | | * Version info that can be obtained from a collator is affected by these | |
| * numbers in a secret and magic way. Please use collator version as whole | | * numbers in a secret and magic way. Please use collator version as whole | |
| *=========================================================================
== | | *=========================================================================
== | |
| */ | | */ | |
| | | | |
| /** Collation runtime version (sort key generator, strcoll). | | /** Collation runtime version (sort key generator, strcoll). | |
| * If the version is different, sortkeys for the same string could be diffe
rent | | * If the version is different, sortkeys for the same string could be diffe
rent | |
| | | | |
End of changes. 3 change blocks. |
| 3 lines changed or deleted | | 3 lines changed or added | |
|