Changeset 215722 in webkit for trunk/Source/JavaScriptCore/icu
- Timestamp:
- Apr 24, 2017, 10:19:03 PM (8 years ago)
- Location:
- trunk/Source/JavaScriptCore/icu
- Files:
-
- 24 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/icu/LICENSE
r25096 r215722 1 1 COPYRIGHT AND PERMISSION NOTICE 2 2 3 Copyright (c) 1995-20 06International Business Machines Corporation and others3 Copyright (c) 1995-2015 International Business Machines Corporation and others 4 4 5 5 All rights reserved. -
trunk/Source/JavaScriptCore/icu/README
r11962 r215722 1 The headers in this directory are for compiling on Mac OS X 10.4. 2 The Mac OS X 10.4 release includes the ICU binary, but not ICU headers. 1 The headers in this directory are for compiling on Mac OS X 10.4 and newer. 2 The Mac OS X 10.4 and subsequent releases include the ICU binary, but not ICU headers. 3 3 4 For other platforms, installed ICU headers should be used rather than these. 4 They are specific to Mac OS X 10.4. 5 They are specific to the Mac OS X platform. 6 7 The headers here are from ICU version 55.1 downloaded from the ICU project. 8 http://site.icu-project.org/download/55#TOC-ICU4C-Download 9 10 The following changes are needed again if you update the files: 11 utypes.h:62 U_SHOW_CPLUSPLUS_API 0 12 uconfig.h:90 U_DISABLE_RENAMING 1 -
trunk/Source/JavaScriptCore/icu/unicode/localpointer.h
r196492 r215722 2 2 ******************************************************************************* 3 3 * 4 * Copyright (C) 2009-201 2, International Business Machines4 * Copyright (C) 2009-2014, International Business Machines 5 5 * Corporation and others. All Rights Reserved. 6 6 * … … 192 192 */ 193 193 explicit LocalPointer(T *p=NULL) : LocalPointerBase<T>(p) {} 194 #ifndef U_HIDE_DRAFT_API 195 /** 196 * Constructor takes ownership and reports an error if NULL. 197 * 198 * This constructor is intended to be used with other-class constructors 199 * that may report a failure UErrorCode, 200 * so that callers need to check only for U_FAILURE(errorCode) 201 * and not also separately for isNull(). 202 * 203 * @param p simple pointer to an object that is adopted 204 * @param errorCode in/out UErrorCode, set to U_MEMORY_ALLOCATION_ERROR 205 * if p==NULL and no other failure code had been set 206 * @draft ICU 55 207 */ 208 LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) { 209 if(p==NULL && U_SUCCESS(errorCode)) { 210 errorCode=U_MEMORY_ALLOCATION_ERROR; 211 } 212 } 213 #endif /* U_HIDE_DRAFT_API */ 194 214 /** 195 215 * Destructor deletes the object it owns. … … 209 229 LocalPointerBase<T>::ptr=p; 210 230 } 231 #ifndef U_HIDE_DRAFT_API 232 /** 233 * Deletes the object it owns, 234 * and adopts (takes ownership of) the one passed in. 235 * 236 * If U_FAILURE(errorCode), then the current object is retained and the new one deleted. 237 * 238 * If U_SUCCESS(errorCode) but the input pointer is NULL, 239 * then U_MEMORY_ALLOCATION_ERROR is set, 240 * the current object is deleted, and NULL is set. 241 * 242 * @param p simple pointer to an object that is adopted 243 * @param errorCode in/out UErrorCode, set to U_MEMORY_ALLOCATION_ERROR 244 * if p==NULL and no other failure code had been set 245 * @draft ICU 55 246 */ 247 void adoptInsteadAndCheckErrorCode(T *p, UErrorCode &errorCode) { 248 if(U_SUCCESS(errorCode)) { 249 delete LocalPointerBase<T>::ptr; 250 LocalPointerBase<T>::ptr=p; 251 if(p==NULL) { 252 errorCode=U_MEMORY_ALLOCATION_ERROR; 253 } 254 } else { 255 delete p; 256 } 257 } 258 #endif /* U_HIDE_DRAFT_API */ 211 259 }; 212 260 -
trunk/Source/JavaScriptCore/icu/unicode/platform.h
r196492 r215722 2 2 ****************************************************************************** 3 3 * 4 * Copyright (C) 1997-201 3, International Business Machines4 * Copyright (C) 1997-2015, International Business Machines 5 5 * Corporation and others. All Rights Reserved. 6 6 * … … 122 122 /** Linux is a Unix-like operating system. @internal */ 123 123 #define U_PF_LINUX 4000 124 /** 125 * Native Client is pretty close to Linux. 126 * See https://developer.chrome.com/native-client and 127 * http://www.chromium.org/nativeclient 128 * @internal 129 */ 130 #define U_PF_BROWSER_NATIVE_CLIENT 4020 124 131 /** Android is based on Linux. @internal */ 125 132 #define U_PF_ANDROID 4050 126 /** "Classic" Mac OS (1984-2001) @internal */ 127 #define U_PF_CLASSIC_MACOS 8000 133 /* Maximum value for Linux-based platform is 4499 */ 128 134 /** z/OS is the successor to OS/390 which was the successor to MVS. @internal */ 129 135 #define U_PF_OS390 9000 … … 143 149 /* Android wchar_t support depends on the API level. */ 144 150 # include <android/api-level.h> 151 #elif defined(__native_client__) 152 # define U_PLATFORM U_PF_BROWSER_NATIVE_CLIENT 145 153 #elif defined(linux) || defined(__linux__) || defined(__linux) 146 154 # define U_PLATFORM U_PF_LINUX … … 170 178 #elif defined(sgi) || defined(__sgi) 171 179 # define U_PLATFORM U_PF_IRIX 172 #elif defined(macintosh)173 # define U_PLATFORM U_PF_CLASSIC_MACOS174 180 #elif defined(__QNX__) || defined(__QNXNTO__) 175 181 # define U_PLATFORM U_PF_QNX … … 231 237 #ifdef U_PLATFORM_IMPLEMENTS_POSIX 232 238 /* Use the predefined value. */ 233 #elif U_PLATFORM_USES_ONLY_WIN32_API || U_PLATFORM == U_PF_CLASSIC_MACOS239 #elif U_PLATFORM_USES_ONLY_WIN32_API 234 240 # define U_PLATFORM_IMPLEMENTS_POSIX 0 235 241 #else … … 244 250 #ifdef U_PLATFORM_IS_LINUX_BASED 245 251 /* Use the predefined value. */ 246 #elif U_PF_LINUX <= U_PLATFORM && U_PLATFORM <= U_PF_ANDROID252 #elif U_PF_LINUX <= U_PLATFORM && U_PLATFORM <= 4499 247 253 # define U_PLATFORM_IS_LINUX_BASED 1 248 254 #else … … 580 586 #ifdef U_SIZEOF_WCHAR_T 581 587 /* Use the predefined value. */ 582 #elif (U_PLATFORM == U_PF_ANDROID && __ANDROID_API__ < 9) || U_PLATFORM == U_PF_CLASSIC_MACOS588 #elif (U_PLATFORM == U_PF_ANDROID && __ANDROID_API__ < 9) 583 589 /* 584 590 * Classic Mac OS and Mac OS X before 10.3 (Panther) did not support wchar_t or wstring. -
trunk/Source/JavaScriptCore/icu/unicode/putil.h
r196492 r215722 2 2 ****************************************************************************** 3 3 * 4 * Copyright (C) 1997-201 1, International Business Machines4 * Copyright (C) 1997-2014, International Business Machines 5 5 * Corporation and others. All Rights Reserved. 6 6 * … … 67 67 U_STABLE const char* U_EXPORT2 u_getDataDirectory(void); 68 68 69 69 70 /** 70 71 * Set the ICU data directory. … … 88 89 U_STABLE void U_EXPORT2 u_setDataDirectory(const char *directory); 89 90 91 #ifndef U_HIDE_INTERNAL_API 92 /** 93 * Return the time zone files override directory, or an empty string if 94 * no directory was specified. Certain time zone resources will be preferrentially 95 * loaded from individual files in this directory. 96 * 97 * @return the time zone data override directory. 98 * @internal 99 */ 100 U_INTERNAL const char * U_EXPORT2 u_getTimeZoneFilesDirectory(UErrorCode *status); 101 102 /** 103 * Set the time zone files override directory. 104 * This function is not thread safe; it must not be called concurrently with 105 * u_getTimeZoneFilesDirectory() or any other use of ICU time zone functions. 106 * This function should only be called before using any ICU service that 107 * will access the time zone data. 108 * @internal 109 */ 110 U_INTERNAL void U_EXPORT2 u_setTimeZoneFilesDirectory(const char *path, UErrorCode *status); 111 #endif /* U_HIDE_INTERNAL_API */ 112 113 90 114 /** 91 115 * @{ … … 94 118 * @stable ICU 2.0 95 119 */ 96 #if U_PLATFORM == U_PF_CLASSIC_MACOS 97 # define U_FILE_SEP_CHAR ':' 98 # define U_FILE_ALT_SEP_CHAR ':' 99 # define U_PATH_SEP_CHAR ';' 100 # define U_FILE_SEP_STRING ":" 101 # define U_FILE_ALT_SEP_STRING ":" 102 # define U_PATH_SEP_STRING ";" 103 #elif U_PLATFORM_USES_ONLY_WIN32_API 120 #if U_PLATFORM_USES_ONLY_WIN32_API 104 121 # define U_FILE_SEP_CHAR '\\' 105 122 # define U_FILE_ALT_SEP_CHAR '/' -
trunk/Source/JavaScriptCore/icu/unicode/ucal.h
r196492 r215722 1 1 /* 2 2 ******************************************************************************* 3 * Copyright (C) 1996-201 3, International Business Machines Corporation and3 * Copyright (C) 1996-2015, International Business Machines Corporation and 4 4 * others. All Rights Reserved. 5 5 ******************************************************************************* … … 423 423 */ 424 424 UCAL_IS_LEAP_MONTH, 425 425 426 426 /** 427 427 * Field count … … 746 746 UErrorCode* status); 747 747 748 #ifndef U_HIDE_DRAFT_API749 748 /** 750 749 * Get the ID of the UCalendar's time zone. … … 755 754 * @param status Receives the status. 756 755 * @return The total buffer size needed; if greater than resultLength, the output was truncated. 757 * @ draftICU 51756 * @stable ICU 51 758 757 */ 759 U_ DRAFTint32_t U_EXPORT2758 U_STABLE int32_t U_EXPORT2 760 759 ucal_getTimeZoneID(const UCalendar *cal, 761 760 UChar *result, 762 761 int32_t resultLength, 763 762 UErrorCode *status); 764 #endif /* U_HIDE_DRAFT_API */765 763 766 764 /** … … 1290 1288 * @param isSystemID Receives if the given ID is a known system 1291 1289 * timezone ID. 1292 * @param status Rece vies the status. When the given timezone ID1290 * @param status Receives the status. When the given timezone ID 1293 1291 * is neither a known system time zone ID nor a 1294 1292 * valid custom timezone ID, U_ILLEGAL_ARGUMENT_ERROR … … 1494 1492 * @stable ICU 50 1495 1493 */ 1496 U_ DRAFTUBool U_EXPORT21494 U_STABLE UBool U_EXPORT2 1497 1495 ucal_getTimeZoneTransitionDate(const UCalendar* cal, UTimeZoneTransitionType type, 1498 1496 UDate* transition, UErrorCode* status); 1499 1497 1500 #ifndef U_HIDE_DRAFT_API1501 1498 /** 1502 1499 * Converts a system time zone ID to an equivalent Windows time zone ID. For example, … … 1521 1518 * @see ucal_getTimeZoneIDForWindowsID 1522 1519 * 1523 * @ draftICU 521520 * @stable ICU 52 1524 1521 */ 1525 U_ DRAFTint32_t U_EXPORT21522 U_STABLE int32_t U_EXPORT2 1526 1523 ucal_getWindowsTimeZoneID(const UChar* id, int32_t len, 1527 1524 UChar* winid, int32_t winidCapacity, UErrorCode* status); … … 1553 1550 * @see ucal_getWindowsTimeZoneID 1554 1551 * 1555 * @ draftICU 521552 * @stable ICU 52 1556 1553 */ 1557 U_ DRAFTint32_t U_EXPORT21554 U_STABLE int32_t U_EXPORT2 1558 1555 ucal_getTimeZoneIDForWindowsID(const UChar* winid, int32_t len, const char* region, 1559 1556 UChar* id, int32_t idCapacity, UErrorCode* status); 1560 1557 1561 #endif /* U_HIDE_DRAFT_API */1562 1563 1558 #endif /* #if !UCONFIG_NO_FORMATTING */ 1564 1559 -
trunk/Source/JavaScriptCore/icu/unicode/uchar.h
r196492 r215722 1 1 /* 2 2 ********************************************************************** 3 * Copyright (C) 1997-201 3, International Business Machines3 * Copyright (C) 1997-2014, International Business Machines 4 4 * Corporation and others. All Rights Reserved. 5 5 ********************************************************************** … … 40 40 * @stable ICU 2.0 41 41 */ 42 #define U_UNICODE_VERSION " 6.3"42 #define U_UNICODE_VERSION "7.0" 43 43 44 44 /** … … 1453 1453 UBLOCK_TAKRI = 220, /*[11680]*/ 1454 1454 1455 /** @stable ICU 2.0 */ 1456 UBLOCK_COUNT = 221, 1455 /* New blocks in Unicode 7.0 */ 1456 1457 /** @stable ICU 54 */ 1458 UBLOCK_BASSA_VAH = 221, /*[16AD0]*/ 1459 /** @stable ICU 54 */ 1460 UBLOCK_CAUCASIAN_ALBANIAN = 222, /*[10530]*/ 1461 /** @stable ICU 54 */ 1462 UBLOCK_COPTIC_EPACT_NUMBERS = 223, /*[102E0]*/ 1463 /** @stable ICU 54 */ 1464 UBLOCK_COMBINING_DIACRITICAL_MARKS_EXTENDED = 224, /*[1AB0]*/ 1465 /** @stable ICU 54 */ 1466 UBLOCK_DUPLOYAN = 225, /*[1BC00]*/ 1467 /** @stable ICU 54 */ 1468 UBLOCK_ELBASAN = 226, /*[10500]*/ 1469 /** @stable ICU 54 */ 1470 UBLOCK_GEOMETRIC_SHAPES_EXTENDED = 227, /*[1F780]*/ 1471 /** @stable ICU 54 */ 1472 UBLOCK_GRANTHA = 228, /*[11300]*/ 1473 /** @stable ICU 54 */ 1474 UBLOCK_KHOJKI = 229, /*[11200]*/ 1475 /** @stable ICU 54 */ 1476 UBLOCK_KHUDAWADI = 230, /*[112B0]*/ 1477 /** @stable ICU 54 */ 1478 UBLOCK_LATIN_EXTENDED_E = 231, /*[AB30]*/ 1479 /** @stable ICU 54 */ 1480 UBLOCK_LINEAR_A = 232, /*[10600]*/ 1481 /** @stable ICU 54 */ 1482 UBLOCK_MAHAJANI = 233, /*[11150]*/ 1483 /** @stable ICU 54 */ 1484 UBLOCK_MANICHAEAN = 234, /*[10AC0]*/ 1485 /** @stable ICU 54 */ 1486 UBLOCK_MENDE_KIKAKUI = 235, /*[1E800]*/ 1487 /** @stable ICU 54 */ 1488 UBLOCK_MODI = 236, /*[11600]*/ 1489 /** @stable ICU 54 */ 1490 UBLOCK_MRO = 237, /*[16A40]*/ 1491 /** @stable ICU 54 */ 1492 UBLOCK_MYANMAR_EXTENDED_B = 238, /*[A9E0]*/ 1493 /** @stable ICU 54 */ 1494 UBLOCK_NABATAEAN = 239, /*[10880]*/ 1495 /** @stable ICU 54 */ 1496 UBLOCK_OLD_NORTH_ARABIAN = 240, /*[10A80]*/ 1497 /** @stable ICU 54 */ 1498 UBLOCK_OLD_PERMIC = 241, /*[10350]*/ 1499 /** @stable ICU 54 */ 1500 UBLOCK_ORNAMENTAL_DINGBATS = 242, /*[1F650]*/ 1501 /** @stable ICU 54 */ 1502 UBLOCK_PAHAWH_HMONG = 243, /*[16B00]*/ 1503 /** @stable ICU 54 */ 1504 UBLOCK_PALMYRENE = 244, /*[10860]*/ 1505 /** @stable ICU 54 */ 1506 UBLOCK_PAU_CIN_HAU = 245, /*[11AC0]*/ 1507 /** @stable ICU 54 */ 1508 UBLOCK_PSALTER_PAHLAVI = 246, /*[10B80]*/ 1509 /** @stable ICU 54 */ 1510 UBLOCK_SHORTHAND_FORMAT_CONTROLS = 247, /*[1BCA0]*/ 1511 /** @stable ICU 54 */ 1512 UBLOCK_SIDDHAM = 248, /*[11580]*/ 1513 /** @stable ICU 54 */ 1514 UBLOCK_SINHALA_ARCHAIC_NUMBERS = 249, /*[111E0]*/ 1515 /** @stable ICU 54 */ 1516 UBLOCK_SUPPLEMENTAL_ARROWS_C = 250, /*[1F800]*/ 1517 /** @stable ICU 54 */ 1518 UBLOCK_TIRHUTA = 251, /*[11480]*/ 1519 /** @stable ICU 54 */ 1520 UBLOCK_WARANG_CITI = 252, /*[118A0]*/ 1521 1522 /** @stable ICU 2.0 */ 1523 UBLOCK_COUNT = 253, 1457 1524 1458 1525 /** @stable ICU 2.0 */ … … 1663 1730 U_JG_NYA, /**< @stable ICU 4.4 */ 1664 1731 U_JG_ROHINGYA_YEH, /**< @stable ICU 49 */ 1732 U_JG_MANICHAEAN_ALEPH, /**< @stable ICU 54 */ 1733 U_JG_MANICHAEAN_AYIN, /**< @stable ICU 54 */ 1734 U_JG_MANICHAEAN_BETH, /**< @stable ICU 54 */ 1735 U_JG_MANICHAEAN_DALETH, /**< @stable ICU 54 */ 1736 U_JG_MANICHAEAN_DHAMEDH, /**< @stable ICU 54 */ 1737 U_JG_MANICHAEAN_FIVE, /**< @stable ICU 54 */ 1738 U_JG_MANICHAEAN_GIMEL, /**< @stable ICU 54 */ 1739 U_JG_MANICHAEAN_HETH, /**< @stable ICU 54 */ 1740 U_JG_MANICHAEAN_HUNDRED, /**< @stable ICU 54 */ 1741 U_JG_MANICHAEAN_KAPH, /**< @stable ICU 54 */ 1742 U_JG_MANICHAEAN_LAMEDH, /**< @stable ICU 54 */ 1743 U_JG_MANICHAEAN_MEM, /**< @stable ICU 54 */ 1744 U_JG_MANICHAEAN_NUN, /**< @stable ICU 54 */ 1745 U_JG_MANICHAEAN_ONE, /**< @stable ICU 54 */ 1746 U_JG_MANICHAEAN_PE, /**< @stable ICU 54 */ 1747 U_JG_MANICHAEAN_QOPH, /**< @stable ICU 54 */ 1748 U_JG_MANICHAEAN_RESH, /**< @stable ICU 54 */ 1749 U_JG_MANICHAEAN_SADHE, /**< @stable ICU 54 */ 1750 U_JG_MANICHAEAN_SAMEKH, /**< @stable ICU 54 */ 1751 U_JG_MANICHAEAN_TAW, /**< @stable ICU 54 */ 1752 U_JG_MANICHAEAN_TEN, /**< @stable ICU 54 */ 1753 U_JG_MANICHAEAN_TETH, /**< @stable ICU 54 */ 1754 U_JG_MANICHAEAN_THAMEDH, /**< @stable ICU 54 */ 1755 U_JG_MANICHAEAN_TWENTY, /**< @stable ICU 54 */ 1756 U_JG_MANICHAEAN_WAW, /**< @stable ICU 54 */ 1757 U_JG_MANICHAEAN_YODH, /**< @stable ICU 54 */ 1758 U_JG_MANICHAEAN_ZAYIN, /**< @stable ICU 54 */ 1759 U_JG_STRAIGHT_WAW, /**< @stable ICU 54 */ 1665 1760 U_JG_COUNT 1666 1761 } UJoiningGroup; … … 2741 2836 * @deprecated ICU 49 2742 2837 */ 2743 U_ STABLEint32_t U_EXPORT22838 U_DEPRECATED int32_t U_EXPORT2 2744 2839 u_getISOComment(UChar32 c, 2745 2840 char *dest, int32_t destCapacity, -
trunk/Source/JavaScriptCore/icu/unicode/ucnv.h
r196492 r215722 1 1 /* 2 2 ********************************************************************** 3 * Copyright (C) 1999-201 3, International Business Machines3 * Copyright (C) 1999-2014, International Business Machines 4 4 * Corporation and others. All Rights Reserved. 5 5 ********************************************************************** … … 19 19 /** 20 20 * \file 21 * \brief C API: Character conversion 21 * \brief C API: Character conversion 22 22 * 23 23 * <h2>Character Conversion C API</h2> … … 40 40 * many other callback actions that can be used instead of a character substitution.</p> 41 41 * 42 * <p>More information about this API can be found in our 42 * <p>More information about this API can be found in our 43 43 * <a href="http://icu-project.org/userguide/conversion.html">User's 44 44 * Guide</a>.</p> … … 117 117 UCNV_LMBCS_1 = 11, 118 118 /** @stable ICU 2.0 */ 119 UCNV_LMBCS_2, 119 UCNV_LMBCS_2, 120 120 /** @stable ICU 2.0 */ 121 121 UCNV_LMBCS_3, … … 238 238 239 239 /** 240 * String version of UCNV_OPTION_SEP_CHAR. 240 * String version of UCNV_OPTION_SEP_CHAR. 241 241 * @see ucnv_open 242 242 * @stable ICU 2.0 … … 252 252 253 253 /** 254 * String version of UCNV_VALUE_SEP_CHAR. 254 * String version of UCNV_VALUE_SEP_CHAR. 255 255 * @see ucnv_open 256 256 * @stable ICU 2.0 … … 270 270 /** 271 271 * Converter option for specifying a version selector (0..9) for some converters. 272 * For example, 272 * For example, 273 273 * \code 274 274 * ucnv_open("UTF-7,version=1", &errorCode); … … 362 362 * @stable ICU 2.0 363 363 */ 364 U_STABLE UConverter* U_EXPORT2 364 U_STABLE UConverter* U_EXPORT2 365 365 ucnv_open(const char *converterName, UErrorCode *err); 366 366 367 367 368 368 /** 369 * Creates a Unicode converter with the names specified as unicode string. 369 * Creates a Unicode converter with the names specified as unicode string. 370 370 * The name should be limited to the ASCII-7 alphanumerics range. 371 371 * The actual name will be resolved with the alias file … … 374 374 * E.g., the names "UTF8", "utf-8", "u*T@f08" and "Utf 8" are all equivalent. 375 375 * (See also ucnv_compareNames().) 376 * If <TT>NULL</TT> is passed for the converter name, it will create 376 * If <TT>NULL</TT> is passed for the converter name, it will create 377 377 * one with the ucnv_getDefaultName() return value. 378 378 * If the alias is ambiguous, then the preferred converter is used … … 380 380 * 381 381 * <p>See ucnv_open for the complete details</p> 382 * @param name Name of the UConverter table in a zero terminated 382 * @param name Name of the UConverter table in a zero terminated 383 383 * Unicode string 384 * @param err outgoing error status <TT>U_MEMORY_ALLOCATION_ERROR, 384 * @param err outgoing error status <TT>U_MEMORY_ALLOCATION_ERROR, 385 385 * U_FILE_ACCESS_ERROR</TT> 386 * @return the created Unicode converter object, or <TT>NULL</TT> if an 386 * @return the created Unicode converter object, or <TT>NULL</TT> if an 387 387 * error occured 388 388 * @see ucnv_open … … 392 392 * @stable ICU 2.0 393 393 */ 394 U_STABLE UConverter* U_EXPORT2 394 U_STABLE UConverter* U_EXPORT2 395 395 ucnv_openU(const UChar *name, 396 396 UErrorCode *err); … … 467 467 /** 468 468 * <p>Creates a UConverter object specified from a packageName and a converterName.</p> 469 * 469 * 470 470 * <p>The packageName and converterName must point to an ICU udata object, as defined by 471 471 * <code> udata_open( packageName, "cnv", converterName, err) </code> or equivalent. 472 472 * Typically, packageName will refer to a (.dat) file, or to a package registered with 473 473 * udata_setAppData(). Using a full file or directory pathname for packageName is deprecated.</p> 474 * 474 * 475 475 * <p>The name will NOT be looked up in the alias mechanism, nor will the converter be 476 476 * stored in the converter cache or the alias table. The only way to open further converters 477 * is call this function multiple times, or use the ucnv_safeClone() function to clone a 477 * is call this function multiple times, or use the ucnv_safeClone() function to clone a 478 478 * 'master' converter.</p> 479 479 * 480 480 * <p>A future version of ICU may add alias table lookups and/or caching 481 481 * to this function.</p> 482 * 482 * 483 483 * <p>Example Use: 484 484 * <code>cnv = ucnv_openPackage("myapp", "myconverter", &err);</code> … … 495 495 * @stable ICU 2.2 496 496 */ 497 U_STABLE UConverter* U_EXPORT2 497 U_STABLE UConverter* U_EXPORT2 498 498 ucnv_openPackage(const char *packageName, const char *converterName, UErrorCode *err); 499 499 … … 523 523 * @param cnv converter to be cloned 524 524 * @param stackBuffer <em>Deprecated functionality as of ICU 52, use NULL.</em><br> 525 * user allocated space for the new clone. If NULL new memory will be allocated. 525 * user allocated space for the new clone. If NULL new memory will be allocated. 526 526 * If buffer is not large enough, new memory will be allocated. 527 527 * Clients can use the U_CNV_SAFECLONE_BUFFERSIZE. This will probably be enough to avoid memory allocations. … … 537 537 * @stable ICU 2.0 538 538 */ 539 U_STABLE UConverter * U_EXPORT2 540 ucnv_safeClone(const UConverter *cnv, 539 U_STABLE UConverter * U_EXPORT2 540 ucnv_safeClone(const UConverter *cnv, 541 541 void *stackBuffer, 542 int32_t *pBufferSize, 542 int32_t *pBufferSize, 543 543 UErrorCode *status); 544 544 … … 596 596 * @param converter the Unicode converter 597 597 * @param subChars the subsitution characters 598 * @param len on input the capacity of subChars, on output the number 598 * @param len on input the capacity of subChars, on output the number 599 599 * of bytes copied to it 600 600 * @param err the outgoing error status code. … … 694 694 * @param converter the Unicode converter 695 695 * @param errUChars the UChars which were in error 696 * @param len on input the capacity of errUChars, on output the number of 696 * @param len on input the capacity of errUChars, on output the number of 697 697 * UChars which were copied to it 698 698 * @param err the error status code. … … 725 725 * @stable ICU 2.0 726 726 */ 727 U_STABLE void U_EXPORT2 727 U_STABLE void U_EXPORT2 728 728 ucnv_resetToUnicode(UConverter *converter); 729 729 … … 736 736 * @stable ICU 2.0 737 737 */ 738 U_STABLE void U_EXPORT2 738 U_STABLE void U_EXPORT2 739 739 ucnv_resetFromUnicode(UConverter *converter); 740 740 … … 780 780 * 781 781 * @param converter The Unicode converter. 782 * @return The maximum number of bytes per UChar that are output by ucnv_fromUnicode(), 783 * to be used together with UCNV_GET_MAX_BYTES_FOR_STRING for buffer allocation. 782 * @return The maximum number of bytes per UChar (16 bit code unit) 783 * that are output by ucnv_fromUnicode(), 784 * to be used together with UCNV_GET_MAX_BYTES_FOR_STRING 785 * for buffer allocation. 784 786 * 785 787 * @see UCNV_GET_MAX_BYTES_FOR_STRING … … 813 815 814 816 /** 815 * Returns the minimum byte length for characters in this codepage.817 * Returns the minimum byte length (per codepoint) for characters in this codepage. 816 818 * This is usually either 1 or 2. 817 819 * @param converter the Unicode converter 818 * @return the minimum number of bytes allowed by this particular converter820 * @return the minimum number of bytes per codepoint allowed by this particular converter 819 821 * @see ucnv_getMaxCharSize 820 822 * @stable ICU 2.0 … … 824 826 825 827 /** 826 * Returns the display name of the converter passed in based on the Locale 828 * Returns the display name of the converter passed in based on the Locale 827 829 * passed in. If the locale contains no display name, the internal ASCII 828 830 * name will be filled in. … … 846 848 /** 847 849 * Gets the internal, canonical name of the converter (zero-terminated). 848 * The lifetime of the returned string will be that of the converter 850 * The lifetime of the returned string will be that of the converter 849 851 * passed to this function. 850 852 * @param converter the Unicode converter … … 854 856 * @stable ICU 2.0 855 857 */ 856 U_STABLE const char * U_EXPORT2 858 U_STABLE const char * U_EXPORT2 857 859 ucnv_getName(const UConverter *converter, UErrorCode *err); 858 860 … … 885 887 886 888 /** 887 * Gets a codepage platform associated with the converter. Currently, 889 * Gets a codepage platform associated with the converter. Currently, 888 890 * only <TT>UCNV_IBM</TT> will be returned. 889 * Does not test if the converter is <TT>NULL</TT> or if converter's data 890 * table is <TT>NULL</TT>. 891 * Does not test if the converter is <TT>NULL</TT> or if converter's data 892 * table is <TT>NULL</TT>. 891 893 * @param converter the Unicode converter 892 894 * @param err the error status code. … … 900 902 /** 901 903 * Gets the type of the converter 902 * e.g. SBCS, MBCS, DBCS, UTF8, UTF16_BE, UTF16_LE, ISO_2022, 904 * e.g. SBCS, MBCS, DBCS, UTF8, UTF16_BE, UTF16_LE, ISO_2022, 903 905 * EBCDIC_STATEFUL, LATIN_1 904 906 * @param converter a valid, opened converter … … 912 914 * Gets the "starter" (lead) bytes for converters of type MBCS. 913 915 * Will fill in an <TT>U_ILLEGAL_ARGUMENT_ERROR</TT> if converter passed in 914 * is not MBCS. Fills in an array of type UBool, with the value of the byte 916 * is not MBCS. Fills in an array of type UBool, with the value of the byte 915 917 * as offset to the array. For example, if (starters[0x20] == TRUE) at return, 916 918 * it means that the byte 0x20 is a starter byte in this converter. 917 919 * Context pointers are always owned by the caller. 918 * 920 * 919 921 * @param converter a valid, opened converter of type MBCS 920 922 * @param starters an array of size 256 to be filled in 921 * @param err error status, <TT>U_ILLEGAL_ARGUMENT_ERROR</TT> if the 923 * @param err error status, <TT>U_ILLEGAL_ARGUMENT_ERROR</TT> if the 922 924 * converter is not a type which can return starters. 923 925 * @see ucnv_getType … … 925 927 */ 926 928 U_STABLE void U_EXPORT2 927 ucnv_getStarters(const UConverter* converter, 929 ucnv_getStarters(const UConverter* converter, 928 930 UBool starters[256], 929 931 UErrorCode* err); … … 998 1000 /** 999 1001 * Gets the current calback function used by the converter when an illegal 1000 * or invalid codepage sequence is found. 1002 * or invalid codepage sequence is found. 1001 1003 * Context pointers are always owned by the caller. 1002 1004 * … … 1013 1015 1014 1016 /** 1015 * Gets the current callback function used by the converter when illegal 1017 * Gets the current callback function used by the converter when illegal 1016 1018 * or invalid Unicode sequence is found. 1017 1019 * Context pointers are always owned by the caller. … … 1079 1081 * stream of data in buffer-sized chunks, where the entire source and 1080 1082 * target does not fit in available buffers. 1081 * 1082 * The source pointer is an in/out parameter. It starts out pointing where the 1083 * conversion is to begin, and ends up pointing after the last UChar consumed. 1084 * 1083 * 1084 * The source pointer is an in/out parameter. It starts out pointing where the 1085 * conversion is to begin, and ends up pointing after the last UChar consumed. 1086 * 1085 1087 * Target similarly starts out pointer at the first available byte in the output 1086 1088 * buffer, and ends up pointing after the last byte written to the output. 1087 * 1088 * The converter always attempts to consume the entire source buffer, unless 1089 * 1090 * The converter always attempts to consume the entire source buffer, unless 1089 1091 * (1.) the target buffer is full, or (2.) a failing error is returned from the 1090 1092 * current callback function. When a successful error status has been … … 1092 1094 * consumed. At that point, the caller should reset the source and 1093 1095 * sourceLimit pointers to point to the next chunk. 1094 * 1096 * 1095 1097 * At the end of the stream (flush==TRUE), the input is completely consumed 1096 1098 * when *source==sourceLimit and no error code is set. … … 1098 1100 * (This means that a converter need not be reset explicitly between data 1099 1101 * streams if it finishes the previous stream without errors.) 1100 * 1102 * 1101 1103 * This is a <I>stateful</I> conversion. Additionally, even when all source data has 1102 1104 * been consumed, some data may be in the converters' internal state. … … 1111 1113 * to <TT>target</TT>. 1112 1114 * @param targetLimit the pointer just after last of the <TT>target</TT> buffer 1113 * @param source I/O parameter, pointer to pointer to the source Unicode character buffer. 1115 * @param source I/O parameter, pointer to pointer to the source Unicode character buffer. 1114 1116 * @param sourceLimit the pointer just after the last of the source buffer 1115 1117 * @param offsets if NULL is passed, nothing will happen to it, otherwise it needs to have the same number … … 1117 1119 * e.g: <TT>offsets[3]</TT> is equal to 6, it means that the <TT>target[3]</TT> was a result of transcoding <TT>source[6]</TT> 1118 1120 * For output data carried across calls, and other data without a specific source character 1119 * (such as from escape sequences or callbacks) -1 will be placed for offsets. 1121 * (such as from escape sequences or callbacks) -1 will be placed for offsets. 1120 1122 * @param flush set to <TT>TRUE</TT> if the current source buffer is the last available 1121 1123 * chunk of the source, <TT>FALSE</TT> otherwise. Note that if a failing status is returned, … … 1124 1126 * @param err the error status. <TT>U_ILLEGAL_ARGUMENT_ERROR</TT> will be set if the 1125 1127 * converter is <TT>NULL</TT>. 1126 * <code>U_BUFFER_OVERFLOW_ERROR</code> will be set if the target is full and there is 1128 * <code>U_BUFFER_OVERFLOW_ERROR</code> will be set if the target is full and there is 1127 1129 * still data to be written to the target. 1128 1130 * @see ucnv_fromUChars … … 1132 1134 * @stable ICU 2.0 1133 1135 */ 1134 U_STABLE void U_EXPORT2 1136 U_STABLE void U_EXPORT2 1135 1137 ucnv_fromUnicode (UConverter * converter, 1136 1138 char **target, … … 1147 1149 * stream of data in buffer-sized chunks, where the entire source and 1148 1150 * target does not fit in available buffers. 1149 * 1150 * The source pointer is an in/out parameter. It starts out pointing where the 1151 * conversion is to begin, and ends up pointing after the last byte of source consumed. 1152 * 1151 * 1152 * The source pointer is an in/out parameter. It starts out pointing where the 1153 * conversion is to begin, and ends up pointing after the last byte of source consumed. 1154 * 1153 1155 * Target similarly starts out pointer at the first available UChar in the output 1154 * buffer, and ends up pointing after the last UChar written to the output. 1156 * buffer, and ends up pointing after the last UChar written to the output. 1155 1157 * It does NOT necessarily keep UChar sequences together. 1156 * 1157 * The converter always attempts to consume the entire source buffer, unless 1158 * 1159 * The converter always attempts to consume the entire source buffer, unless 1158 1160 * (1.) the target buffer is full, or (2.) a failing error is returned from the 1159 1161 * current callback function. When a successful error status has been … … 1167 1169 * (This means that a converter need not be reset explicitly between data 1168 1170 * streams if it finishes the previous stream without errors.) 1169 * 1171 * 1170 1172 * This is a <I>stateful</I> conversion. Additionally, even when all source data has 1171 1173 * been consumed, some data may be in the converters' internal state. … … 1179 1181 * UChars into. Output : points to after the last UChar copied. 1180 1182 * @param targetLimit the pointer just after the end of the <TT>target</TT> buffer 1181 * @param source I/O parameter, pointer to pointer to the source codepage buffer. 1183 * @param source I/O parameter, pointer to pointer to the source codepage buffer. 1182 1184 * @param sourceLimit the pointer to the byte after the end of the source buffer 1183 1185 * @param offsets if NULL is passed, nothing will happen to it, otherwise it needs to have the same number … … 1185 1187 * e.g: <TT>offsets[3]</TT> is equal to 6, it means that the <TT>target[3]</TT> was a result of transcoding <TT>source[6]</TT> 1186 1188 * For output data carried across calls, and other data without a specific source character 1187 * (such as from escape sequences or callbacks) -1 will be placed for offsets. 1189 * (such as from escape sequences or callbacks) -1 will be placed for offsets. 1188 1190 * @param flush set to <TT>TRUE</TT> if the current source buffer is the last available 1189 1191 * chunk of the source, <TT>FALSE</TT> otherwise. Note that if a failing status is returned, … … 1192 1194 * @param err the error status. <TT>U_ILLEGAL_ARGUMENT_ERROR</TT> will be set if the 1193 1195 * converter is <TT>NULL</TT>. 1194 * <code>U_BUFFER_OVERFLOW_ERROR</code> will be set if the target is full and there is 1195 * still data to be written to the target. 1196 * <code>U_BUFFER_OVERFLOW_ERROR</code> will be set if the target is full and there is 1197 * still data to be written to the target. 1196 1198 * @see ucnv_fromUChars 1197 1199 * @see ucnv_convert … … 1201 1203 * @stable ICU 2.0 1202 1204 */ 1203 U_STABLE void U_EXPORT2 1205 U_STABLE void U_EXPORT2 1204 1206 ucnv_toUnicode(UConverter *converter, 1205 1207 UChar **target, … … 1332 1334 * @param sourceLimit points to the end of the input buffer 1333 1335 * @param err fills in error status (see ucnv_toUnicode) 1334 * <code>U_INDEX_OUTOFBOUNDS_ERROR</code> will be set if the input 1335 * is empty or does not convert to any output (e.g.: pure state-change 1336 * <code>U_INDEX_OUTOFBOUNDS_ERROR</code> will be set if the input 1337 * is empty or does not convert to any output (e.g.: pure state-change 1336 1338 * codes SI/SO, escape sequences for ISO 2022, 1337 1339 * or if the callback did not output anything, ...). … … 1437 1439 * TRUE, TRUE, 1438 1440 * pErrorCode); 1439 * 1441 * 1440 1442 * myReleaseCachedUTF8Converter(utf8Cnv); 1441 1443 * … … 1725 1727 * @stable ICU 2.0 1726 1728 */ 1727 U_STABLE uint16_t U_EXPORT2 1729 U_STABLE uint16_t U_EXPORT2 1728 1730 ucnv_countAliases(const char *alias, UErrorCode *pErrorCode); 1729 1731 … … 1740 1742 * @stable ICU 2.0 1741 1743 */ 1742 U_STABLE const char * U_EXPORT2 1744 U_STABLE const char * U_EXPORT2 1743 1745 ucnv_getAlias(const char *alias, uint16_t n, UErrorCode *pErrorCode); 1744 1746 … … 1756 1758 * @stable ICU 2.0 1757 1759 */ 1758 U_STABLE void U_EXPORT2 1760 U_STABLE void U_EXPORT2 1759 1761 ucnv_getAliases(const char *alias, const char **aliases, UErrorCode *pErrorCode); 1760 1762 … … 1888 1890 1889 1891 /** 1890 * Fixes the backslash character mismapping. For example, in SJIS, the backslash 1891 * character in the ASCII portion is also used to represent the yen currency sign. 1892 * When mapping from Unicode character 0x005C, it's unclear whether to map the 1892 * Fixes the backslash character mismapping. For example, in SJIS, the backslash 1893 * character in the ASCII portion is also used to represent the yen currency sign. 1894 * When mapping from Unicode character 0x005C, it's unclear whether to map the 1893 1895 * character back to yen or backslash in SJIS. This function will take the input 1894 1896 * buffer and replace all the yen sign characters with backslash. This is necessary … … 1911 1913 * character or not. 1912 1914 * @param cnv the converter to be tested 1913 * @return TRUE if the converter contains ambiguous mapping of the same 1915 * @return TRUE if the converter contains ambiguous mapping of the same 1914 1916 * character, FALSE otherwise. 1915 1917 * @stable ICU 2.0 … … 1928 1930 * 1929 1931 * @param cnv The converter to set the fallback mapping usage on. 1930 * @param usesFallback TRUE if the user wants the converter to take advantage of the fallback 1932 * @param usesFallback TRUE if the user wants the converter to take advantage of the fallback 1931 1933 * mapping, FALSE otherwise. 1932 1934 * @stable ICU 2.0 1933 1935 * @see ucnv_usesFallback 1934 1936 */ 1935 U_STABLE void U_EXPORT2 1937 U_STABLE void U_EXPORT2 1936 1938 ucnv_setFallback(UConverter *cnv, UBool usesFallback); 1937 1939 … … 1945 1947 * @see ucnv_setFallback 1946 1948 */ 1947 U_STABLE UBool U_EXPORT2 1949 U_STABLE UBool U_EXPORT2 1948 1950 ucnv_usesFallback(const UConverter *cnv); 1949 1951 … … 1969 1971 * @param source The source string in which the signature should be detected. 1970 1972 * @param sourceLength Length of the input string, or -1 if terminated with a NUL byte. 1971 * @param signatureLength A pointer to int32_t to receive the number of bytes that make up the signature 1973 * @param signatureLength A pointer to int32_t to receive the number of bytes that make up the signature 1972 1974 * of the detected UTF. 0 if not detected. 1973 1975 * Can be a NULL pointer. 1974 1976 * @param pErrorCode ICU error code in/out parameter. 1975 1977 * Must fulfill U_SUCCESS before the function call. 1976 * @return The name of the encoding detected. NULL if encoding is not detected. 1978 * @return The name of the encoding detected. NULL if encoding is not detected. 1977 1979 * @stable ICU 2.4 1978 1980 */ … … 1984 1986 1985 1987 /** 1986 * Returns the number of UChars held in the converter's internal state 1987 * because more input is needed for completing the conversion. This function is 1988 * Returns the number of UChars held in the converter's internal state 1989 * because more input is needed for completing the conversion. This function is 1988 1990 * useful for mapping semantics of ICU's converter interface to those of iconv, 1989 1991 * and this information is not needed for normal conversion. … … 1999 2001 /** 2000 2002 * Returns the number of chars held in the converter's internal state 2001 * because more input is needed for completing the conversion. This function is 2003 * because more input is needed for completing the conversion. This function is 2002 2004 * useful for mapping semantics of ICU's converter interface to those of iconv, 2003 2005 * and this information is not needed for normal conversion. -
trunk/Source/JavaScriptCore/icu/unicode/ucol.h
r196492 r215722 1 1 /* 2 2 ******************************************************************************* 3 * Copyright (c) 1996-201 3, International Business Machines Corporation and others.3 * Copyright (c) 1996-2015, International Business Machines Corporation and others. 4 4 * All Rights Reserved. 5 5 ******************************************************************************* … … 29 29 * string comparison. You use this service to build 30 30 * searching and sorting routines for natural language text. 31 * <em>Important: </em>The ICU collation service has been reimplemented32 * in order to achieve better performance and UCA compliance.33 * For details, see the34 * <a href="http://source.icu-project.org/repos/icu/icuhtml/trunk/design/collation/ICU_collation_design.htm">35 * collation design document</a>.36 31 * <p> 37 32 * For more information about the collation service see 38 * <a href="http:// icu-project.org/userguide/Collate_Intro.html">the users guide</a>.33 * <a href="http://userguide.icu-project.org/collation">the User Guide</a>. 39 34 * <p> 40 35 * Collation service provides correct sorting orders for most locales supported in ICU. 41 36 * If specific data for a locale is not available, the orders eventually falls back 42 * to the <a href="http://www.unicode.org/ unicode/reports/tr10/">UCAsort order</a>.37 * to the <a href="http://www.unicode.org/reports/tr35/tr35-collation.html#Root_Collation">CLDR root sort order</a>. 43 38 * <p> 44 39 * Sort ordering may be customized by providing your own set of rules. For more on 45 * this subject see the 46 * <a href="http://icu-project.org/userguide/Collate_Customization.html"> 47 * Collation customization</a> section of the users guide. 40 * this subject see the <a href="http://userguide.icu-project.org/collation/customization"> 41 * Collation Customization</a> section of the User Guide. 48 42 * <p> 49 43 * @see UCollationResult … … 292 286 /** The strength attribute. Can be either UCOL_PRIMARY, UCOL_SECONDARY, 293 287 * UCOL_TERTIARY, UCOL_QUATERNARY or UCOL_IDENTICAL. The usual strength 294 * for most locales (except Japanese) is tertiary. Quaternary strength 288 * for most locales (except Japanese) is tertiary. 289 * 290 * Quaternary strength 295 291 * is useful when combined with shifted setting for alternate handling 296 * attribute and for JIS x 4061 collation, when it is used to distinguish 297 * between Katakana and Hiragana (this is achieved by setting the 298 * UCOL_HIRAGANA_QUATERNARY mode to on. Otherwise, quaternary level 299 * is affected only by the number of non ignorable code points in 300 * the string. Identical strength is rarely useful, as it amounts 292 * attribute and for JIS X 4061 collation, when it is used to distinguish 293 * between Katakana and Hiragana. 294 * Otherwise, quaternary level 295 * is affected only by the number of non-ignorable code points in 296 * the string. 297 * 298 * Identical strength is rarely useful, as it amounts 301 299 * to codepoints of the NFD form of the string. 302 300 * @stable ICU 2.0 … … 308 306 * sort order. 309 307 * 310 * This attribute is an implementation detail of the CLDR Japanese tailoring. 311 * The implementation might change to use a different mechanism 308 * This attribute was an implementation detail of the CLDR Japanese tailoring. 309 * Since ICU 50, this attribute is not settable any more via API functions. 310 * Since CLDR 25/ICU 53, explicit quaternary relations are used 312 311 * to achieve the same Japanese sort order. 313 * Since ICU 50, this attribute is not settable any more via API functions.314 * @deprecated ICU 50 Implementation detail, cannot be set via API, might beremoved from implementation.312 * 313 * @deprecated ICU 50 Implementation detail, cannot be set via API, was removed from implementation. 315 314 */ 316 315 UCOL_HIRAGANA_QUATERNARY_MODE = UCOL_STRENGTH + 1, 317 316 #endif /* U_HIDE_DEPRECATED_API */ 318 /** When turned on, this attribute generates a collation key 319 * for the numeric value of substrings of digits. 317 /** 318 * When turned on, this attribute makes 319 * substrings of digits sort according to their numeric values. 320 * 320 321 * This is a way to get '100' to sort AFTER '2'. Note that the longest 321 * digit substring that can be treated as a single collation element is322 * digit substring that can be treated as a single unit is 322 323 * 254 digits (not counting leading zeros). If a digit substring is 323 324 * longer than that, the digits beyond the limit will be treated as a 324 * separate digit substring associated with a separate collation element. 325 * separate digit substring. 326 * 327 * A "digit" in this sense is a code point with General_Category=Nd, 328 * which does not include circled numbers, roman numerals, etc. 329 * Only a contiguous digit substring is considered, that is, 330 * non-negative integers without separators. 331 * There is no support for plus/minus signs, decimals, exponents, etc. 332 * 325 333 * @stable ICU 2.8 326 334 */ … … 355 363 /** 356 364 * Open a UCollator for comparing strings. 365 * 366 * For some languages, multiple collation types are available; 367 * for example, "de@collation=phonebook". 368 * Starting with ICU 54, collation attributes can be specified via locale keywords as well, 369 * in the old locale extension syntax ("el@colCaseFirst=upper") 370 * or in language tag syntax ("el-u-kf-upper"). 371 * See <a href="http://userguide.icu-project.org/collation/api">User Guide: Collation API</a>. 372 * 357 373 * The UCollator pointer is used in all the calls to the Collation 358 374 * service. After finished, collator must be disposed of by calling … … 362 378 * if NULL is passed for the locale, the default locale 363 379 * collation rules will be used. If empty string ("") or 364 * "root" are passed, UCA rules will be used.365 * @param status A pointer to a nUErrorCode to receive any errors380 * "root" are passed, the root collator will be returned. 381 * @param status A pointer to a UErrorCode to receive any errors 366 382 * @return A pointer to a UCollator, or 0 if an error occurred. 367 383 * @see ucol_openRules … … 374 390 375 391 /** 376 * Produce a nUCollator instance according to the rules supplied.392 * Produce a UCollator instance according to the rules supplied. 377 393 * The rules are used to change the default ordering, defined in the 378 394 * UCA in a process called tailoring. The resulting UCollator pointer … … 390 406 * occurred during parsing. This argument can currently be set 391 407 * to NULL, but at users own risk. Please provide a real structure. 392 * @param status A pointer to a nUErrorCode to receive any errors408 * @param status A pointer to a UErrorCode to receive any errors 393 409 * @return A pointer to a UCollator. It is not guaranteed that NULL be returned in case 394 410 * of error - please use status argument to check for errors. … … 406 422 UErrorCode *status); 407 423 424 #ifndef U_HIDE_DEPRECATED_API 408 425 /** 409 426 * Open a collator defined by a short form string. 410 427 * The structure and the syntax of the string is defined in the "Naming collators" 411 428 * section of the users guide: 412 * http:// icu-project.org/userguide/Collate_Concepts.html#Naming_Collators429 * http://userguide.icu-project.org/collation/concepts#TOC-Collator-naming-scheme 413 430 * Attributes are overriden by the subsequent attributes. So, for "S2_S3", final 414 431 * strength will be 3. 3066bis locale overrides individual locale parts. … … 437 454 * @see ucol_getShortDefinitionString 438 455 * @see ucol_normalizeShortDefinitionString 439 * @stable ICU 3.0 440 * 441 */ 442 U_STABLE UCollator* U_EXPORT2 456 * @deprecated ICU 54 Use ucol_open() with language tag collation keywords instead. 457 */ 458 U_DEPRECATED UCollator* U_EXPORT2 443 459 ucol_openFromShortString( const char *definition, 444 460 UBool forceDefaults, 445 461 UParseError *parseError, 446 462 UErrorCode *status); 463 #endif /* U_HIDE_DEPRECATED_API */ 447 464 448 465 #ifndef U_HIDE_DEPRECATED_API 449 466 /** 450 467 * Get a set containing the contractions defined by the collator. The set includes 451 * both the UCAcontractions and the contractions defined by the collator. This set468 * both the root collator's contractions and the contractions defined by the collator. This set 452 469 * will contain only strings. If a tailoring explicitly suppresses contractions from 453 * the UCA(like Russian), removed contractions will not be in the resulting set.470 * the root collator (like Russian), removed contractions will not be in the resulting set. 454 471 * @param coll collator 455 472 * @param conts the set to hold the result. It gets emptied before … … 468 485 /** 469 486 * Get a set containing the expansions defined by the collator. The set includes 470 * both the UCAexpansions and the expansions defined by the tailoring487 * both the root collator's expansions and the expansions defined by the tailoring 471 488 * @param coll collator 472 489 * @param contractions if not NULL, the set to hold the contractions … … 546 563 * @param target The target UTF-8 string. 547 564 * @param targetLength The length of target, or -1 if null-terminated. 548 * @param status A pointer to a nUErrorCode to receive any errors565 * @param status A pointer to a UErrorCode to receive any errors 549 566 * @return The result of comparing the strings; one of UCOL_EQUAL, 550 567 * UCOL_GREATER, UCOL_LESS … … 628 645 * @return The result of comparing the strings; one of UCOL_EQUAL, 629 646 * UCOL_GREATER, UCOL_LESS 630 * @param status A pointer to a nUErrorCode to receive any errors647 * @param status A pointer to a UErrorCode to receive any errors 631 648 * @see ucol_strcoll 632 649 * @stable ICU 2.6 … … 669 686 * @param dest The array to fill with the script ordering. 670 687 * @param destCapacity The length of dest. If it is 0, then dest may be NULL and the function 671 * will only return the length of the result without writing any of the result string(pre-flighting).688 * will only return the length of the result without writing any codes (pre-flighting). 672 689 * @param pErrorCode Must be a valid pointer to an error code value, which must not indicate a 673 690 * failure before the function call. … … 686 703 /** 687 704 * Sets the reordering codes for this collator. 688 * Collation reordering allows scripts and some other defined blocks of characters689 * to be moved relative to each other as a block. This reordering is done on top of705 * Collation reordering allows scripts and some other groups of characters 706 * to be moved relative to each other. This reordering is done on top of 690 707 * the DUCET/CLDR standard collation order. Reordering can specify groups to be placed 691 708 * at the start and/or the end of the collation order. These groups are specified using 692 709 * UScript codes and UColReorderCode entries. 710 * 693 711 * <p>By default, reordering codes specified for the start of the order are placed in the 694 * order given after a group of "special" non-script blocks. These special groups of characters712 * order given after several special non-script blocks. These special groups of characters 695 713 * are space, punctuation, symbol, currency, and digit. These special groups are represented with 696 714 * UColReorderCode entries. Script groups can be intermingled with 697 * these special non-script blocks if those special blocks are explicitly specified in the reordering. 715 * these special non-script groups if those special groups are explicitly specified in the reordering. 716 * 698 717 * <p>The special code OTHERS stands for any script that is not explicitly 699 718 * mentioned in the list of reordering codes given. Anything that is after OTHERS 700 719 * will go at the very end of the reordering in the order given. 720 * 701 721 * <p>The special reorder code DEFAULT will reset the reordering for this collator 702 722 * to the default for this collator. The default reordering may be the DUCET/CLDR order or may be a reordering that 703 723 * was specified when this collator was created from resource data or from rules. The 704 * DEFAULT code <b>must</b> be the sole code supplied when it used. If not 705 * that will result in an U_ILLEGAL_ARGUMENT_ERROR being set. 724 * DEFAULT code <b>must</b> be the sole code supplied when it is used. 725 * If not, then U_ILLEGAL_ARGUMENT_ERROR will be set. 726 * 706 727 * <p>The special reorder code NONE will remove any reordering for this collator. 707 728 * The result of setting no reordering will be to have the DUCET/CLDR ordering used. The 708 * NONE code <b>must</b> be the sole code supplied when it used. 729 * NONE code <b>must</b> be the sole code supplied when it is used. 730 * 709 731 * @param coll The UCollator to set. 710 732 * @param reorderCodes An array of script codes in the new order. This can be NULL if the … … 728 750 * Retrieves the reorder codes that are grouped with the given reorder code. Some reorder 729 751 * codes will be grouped and must reorder together. 752 * Beginning with ICU 55, scripts only reorder together if they are primary-equal, 753 * for example Hiragana and Katakana. 754 * 730 755 * @param reorderCode The reorder code to determine equivalence for. 731 756 * @param dest The array to fill with the script ordering. 732 757 * @param destCapacity The length of dest. If it is 0, then dest may be NULL and the function 733 * will only return the length of the result without writing any of the result string(pre-flighting).758 * will only return the length of the result without writing any codes (pre-flighting). 734 759 * @param pErrorCode Must be a valid pointer to an error code value, which must not indicate 735 760 * a failure before the function call. … … 754 779 * @param result A pointer to a buffer to receive the attribute. 755 780 * @param resultLength The maximum size of result. 756 * @param status A pointer to a nUErrorCode to receive any errors781 * @param status A pointer to a UErrorCode to receive any errors 757 782 * @return The total buffer size needed; if greater than resultLength, 758 783 * the output was truncated. … … 851 876 852 877 /** 853 * Return the functionally equivalent locale for the given 854 * requested locale, with respect to given keyword, for the 855 * collation service. If two locales return the same result, then 856 * collators instantiated for these locales will behave 857 * equivalently. The converse is not always true; two collators 878 * Return the functionally equivalent locale for the specified 879 * input locale, with respect to given keyword, for the 880 * collation service. If two different input locale + keyword 881 * combinations produce the same result locale, then collators 882 * instantiated for these two different input locales will behave 883 * equivalently. The converse is not always true; two collators 858 884 * may in fact be equivalent, but return different results, due to 859 * internal details. 885 * internal details. The return result has no other meaning than 860 886 * that stated above, and implies nothing as to the relationship 861 * between the two locales. 887 * between the two locales. This is intended for use by 862 888 * applications who wish to cache collators, or otherwise reuse 863 * collators when possible. 864 * over time. 865 * href="http:// icu-project.org/userguide/locale.html#services">889 * collators when possible. The functional equivalent may change 890 * over time. For more information, please see the <a 891 * href="http://userguide.icu-project.org/locale#TOC-Locales-and-Services"> 866 892 * Locales and Services</a> section of the ICU User Guide. 867 * @param result fillin for the functionally equivalent locale893 * @param result fillin for the functionally equivalent result locale 868 894 * @param resultCapacity capacity of the fillin buffer 869 895 * @param keyword a particular keyword as enumerated by 870 896 * ucol_getKeywords. 871 * @param locale the requestedlocale897 * @param locale the specified input locale 872 898 * @param isAvailable if non-NULL, pointer to a fillin parameter that 873 * indicates whether the requested locale was 'available' to the874 * collation service. A locale is defined as 'available' if it899 * on return indicates whether the specified input locale was 'available' 900 * to the collation service. A locale is defined as 'available' if it 875 901 * physically exists within the collation locale data. 876 902 * @param status pointer to input-output error code 877 * @return the actual buffer size needed for the locale. 903 * @return the actual buffer size needed for the locale. If greater 878 904 * than resultCapacity, the returned full name will be truncated and 879 905 * an error code will be returned. … … 897 923 int32_t *length); 898 924 925 #ifndef U_HIDE_DEPRECATED_API 899 926 /** Get the short definition string for a collator. This API harvests the collator's 900 927 * locale and the attribute set and produces a string that can be used for opening 901 * a collator with the same properties using the ucol_openFromShortString API.928 * a collator with the same attributes using the ucol_openFromShortString API. 902 929 * This string will be normalized. 903 930 * The structure and the syntax of the string is defined in the "Naming collators" 904 931 * section of the users guide: 905 * http:// icu-project.org/userguide/Collate_Concepts.html#Naming_Collators932 * http://userguide.icu-project.org/collation/concepts#TOC-Collator-naming-scheme 906 933 * This API supports preflighting. 907 934 * @param coll a collator … … 915 942 * @see ucol_openFromShortString 916 943 * @see ucol_normalizeShortDefinitionString 917 * @ stable ICU 3.0918 */ 919 U_ STABLEint32_t U_EXPORT2944 * @deprecated ICU 54 945 */ 946 U_DEPRECATED int32_t U_EXPORT2 920 947 ucol_getShortDefinitionString(const UCollator *coll, 921 948 const char *locale, … … 941 968 * @see ucol_getShortDefinitionString 942 969 * 943 * @ stable ICU 3.0944 */ 945 946 U_ STABLEint32_t U_EXPORT2970 * @deprecated ICU 54 971 */ 972 973 U_DEPRECATED int32_t U_EXPORT2 947 974 ucol_normalizeShortDefinitionString(const char *source, 948 975 char *destination, … … 950 977 UParseError *parseError, 951 978 UErrorCode *status); 979 #endif /* U_HIDE_DEPRECATED_API */ 952 980 953 981 … … 955 983 * Get a sort key for a string from a UCollator. 956 984 * Sort keys may be compared using <TT>strcmp</TT>. 985 * 986 * Note that sort keys are often less efficient than simply doing comparison. 987 * For more details, see the ICU User Guide. 957 988 * 958 989 * Like ICU functions that write to an output buffer, the buffer contents … … 1097 1128 * This is useful, for example, for combining sort keys from first and last names 1098 1129 * to sort such pairs. 1130 * See http://www.unicode.org/reports/tr10/#Merging_Sort_Keys 1131 * 1132 * The recommended way to achieve "merged" sorting is by 1133 * concatenating strings with U+FFFE between them. 1134 * The concatenation has the same sort order as the merged sort keys, 1135 * but merge(getSortKey(str1), getSortKey(str2)) may differ from getSortKey(str1 + '\uFFFE' + str2). 1136 * Using strings with U+FFFE may yield shorter sort keys. 1137 * 1138 * For details about Sort Key Features see 1139 * http://userguide.icu-project.org/collation/api#TOC-Sort-Key-Features 1140 * 1099 1141 * It is possible to merge multiple sort keys by consecutively merging 1100 1142 * another one with the intermediate result. … … 1159 1201 ucol_getAttribute(const UCollator *coll, UColAttribute attr, UErrorCode *status); 1160 1202 1161 /** Variable top 1162 * is a two byte primary value which causes all the codepoints with primary values that 1163 * are less or equal than the variable top to be shifted when alternate handling is set 1164 * to UCOL_SHIFTED. 1165 * Sets the variable top to a collation element value of a string supplied. 1166 * @param coll collator which variable top needs to be changed 1203 /** 1204 * Sets the variable top to the top of the specified reordering group. 1205 * The variable top determines the highest-sorting character 1206 * which is affected by UCOL_ALTERNATE_HANDLING. 1207 * If that attribute is set to UCOL_NON_IGNORABLE, then the variable top has no effect. 1208 * @param coll the collator 1209 * @param group one of UCOL_REORDER_CODE_SPACE, UCOL_REORDER_CODE_PUNCTUATION, 1210 * UCOL_REORDER_CODE_SYMBOL, UCOL_REORDER_CODE_CURRENCY; 1211 * or UCOL_REORDER_CODE_DEFAULT to restore the default max variable group 1212 * @param pErrorCode Standard ICU error code. Its input value must 1213 * pass the U_SUCCESS() test, or else the function returns 1214 * immediately. Check for U_FAILURE() on output or use with 1215 * function chaining. (See User Guide for details.) 1216 * @see ucol_getMaxVariable 1217 * @stable ICU 53 1218 */ 1219 U_STABLE void U_EXPORT2 1220 ucol_setMaxVariable(UCollator *coll, UColReorderCode group, UErrorCode *pErrorCode); 1221 1222 /** 1223 * Returns the maximum reordering group whose characters are affected by UCOL_ALTERNATE_HANDLING. 1224 * @param coll the collator 1225 * @return the maximum variable reordering group. 1226 * @see ucol_setMaxVariable 1227 * @stable ICU 53 1228 */ 1229 U_STABLE UColReorderCode U_EXPORT2 1230 ucol_getMaxVariable(const UCollator *coll); 1231 1232 #ifndef U_HIDE_DEPRECATED_API 1233 /** 1234 * Sets the variable top to the primary weight of the specified string. 1235 * 1236 * Beginning with ICU 53, the variable top is pinned to 1237 * the top of one of the supported reordering groups, 1238 * and it must not be beyond the last of those groups. 1239 * See ucol_setMaxVariable(). 1240 * @param coll the collator 1167 1241 * @param varTop one or more (if contraction) UChars to which the variable top should be set 1168 1242 * @param len length of variable top string. If -1 it is considered to be zero terminated. 1169 * @param status error code. If error code is set, the return value is undefined. 1170 * Errors set by this function are: <br> 1171 * U_CE_NOT_FOUND_ERROR if more than one character was passed and there is no such 1172 * a contraction<br> 1173 * U_PRIMARY_TOO_LONG_ERROR if the primary for the variable top has more than two bytes 1174 * @return a 32 bit value containing the value of the variable top in upper 16 bits. 1175 * Lower 16 bits are undefined 1243 * @param status error code. If error code is set, the return value is undefined. 1244 * Errors set by this function are:<br> 1245 * U_CE_NOT_FOUND_ERROR if more than one character was passed and there is no such contraction<br> 1246 * U_ILLEGAL_ARGUMENT_ERROR if the variable top is beyond 1247 * the last reordering group supported by ucol_setMaxVariable() 1248 * @return variable top primary weight 1176 1249 * @see ucol_getVariableTop 1177 1250 * @see ucol_restoreVariableTop 1178 * @ stable ICU 2.01179 */ 1180 U_ STABLEuint32_t U_EXPORT21251 * @deprecated ICU 53 Call ucol_setMaxVariable() instead. 1252 */ 1253 U_DEPRECATED uint32_t U_EXPORT2 1181 1254 ucol_setVariableTop(UCollator *coll, 1182 1255 const UChar *varTop, int32_t len, 1183 1256 UErrorCode *status); 1257 #endif /* U_HIDE_DEPRECATED_API */ 1184 1258 1185 1259 /** 1186 1260 * Gets the variable top value of a Collator. 1187 * Lower 16 bits are undefined and should be ignored.1188 1261 * @param coll collator which variable top needs to be retrieved 1189 1262 * @param status error code (not changed by function). If error code is set, 1190 1263 * the return value is undefined. 1191 * @return the variable top value of a Collator. 1264 * @return the variable top primary weight 1265 * @see ucol_getMaxVariable 1192 1266 * @see ucol_setVariableTop 1193 1267 * @see ucol_restoreVariableTop … … 1196 1270 U_STABLE uint32_t U_EXPORT2 ucol_getVariableTop(const UCollator *coll, UErrorCode *status); 1197 1271 1198 /** 1199 * Sets the variable top to a collation element value supplied. Variable top is 1200 * set to the upper 16 bits. 1201 * Lower 16 bits are ignored. 1202 * @param coll collator which variable top needs to be changed 1203 * @param varTop CE value, as returned by ucol_setVariableTop or ucol)getVariableTop 1204 * @param status error code (not changed by function) 1272 /** 1273 * Sets the variable top to the specified primary weight. 1274 * 1275 * Beginning with ICU 53, the variable top is pinned to 1276 * the top of one of the supported reordering groups, 1277 * and it must not be beyond the last of those groups. 1278 * See ucol_setMaxVariable(). 1279 * @param varTop primary weight, as returned by ucol_setVariableTop or ucol_getVariableTop 1280 * @param status error code 1205 1281 * @see ucol_getVariableTop 1206 1282 * @see ucol_setVariableTop 1207 * @ stable ICU 2.01208 */ 1209 U_ STABLEvoid U_EXPORT21283 * @deprecated ICU 53 Call ucol_setMaxVariable() instead. 1284 */ 1285 U_DEPRECATED void U_EXPORT2 1210 1286 ucol_restoreVariableTop(UCollator *coll, const uint32_t varTop, UErrorCode *status); 1211 1287 … … 1303 1379 1304 1380 /** 1305 * Get a nUnicode set that contains all the characters and sequences tailored in1381 * Get a Unicode set that contains all the characters and sequences tailored in 1306 1382 * this collator. The result must be disposed of by using uset_close. 1307 1383 * @param coll The UCollator for which we want to get tailored chars … … 1316 1392 1317 1393 #ifndef U_HIDE_INTERNAL_API 1318 /**1319 * Universal attribute getter that returns UCOL_DEFAULT if the value is default1320 * @param coll collator which attributes are to be changed1321 * @param attr attribute type1322 * @return attribute value or UCOL_DEFAULT if the value is default1323 * @param status to indicate whether the operation went on smoothly or there were errors1324 * @see UColAttribute1325 * @see UColAttributeValue1326 * @see ucol_setAttribute1327 * @internal ICU 3.01328 */1329 U_INTERNAL UColAttributeValue U_EXPORT21330 ucol_getAttributeOrDefault(const UCollator *coll, UColAttribute attr, UErrorCode *status);1331 1332 /** Check whether two collators are equal. Collators are considered equal if they1333 * will sort strings the same. This means that both the current attributes and the1334 * rules must be equivalent. Currently used for RuleBasedCollator::operator==.1335 * @param source first collator1336 * @param target second collator1337 * @return TRUE or FALSE1338 * @internal ICU 3.01339 */1340 U_INTERNAL UBool U_EXPORT21341 ucol_equals(const UCollator *source, const UCollator *target);1342 1343 1394 /** Calculates the set of unsafe code points, given a collator. 1344 1395 * A character is unsafe if you could append any character and cause the ordering to alter significantly. … … 1356 1407 USet *unsafe, 1357 1408 UErrorCode *status); 1358 1359 /** Reset UCA's static pointers. You don't want to use this, unless your static memory can go away.1360 * @internal ICU 3.2.11361 */1362 U_INTERNAL void U_EXPORT21363 ucol_forgetUCA(void);1364 1409 1365 1410 /** Touches all resources needed for instantiating a collator from a short string definition, … … 1410 1455 * collator remains owned by the user and should stay around for 1411 1456 * the lifetime of the collator. The API also takes a base collator 1412 * which usualy should be UCA.1457 * which must be the root collator. 1413 1458 * @param bin binary image owned by the user and required through the 1414 1459 * lifetime of the collator 1415 1460 * @param length size of the image. If negative, the API will try to 1416 1461 * figure out the length of the image 1417 * @param base fallback collator, usually UCA. Base is required to be1418 * present through the lifetime of the collator. Currently1419 * it cannot be NULL.1462 * @param base Base collator, for lookup of untailored characters. 1463 * Must be the root collator, must not be NULL. 1464 * The base is required to be present through the lifetime of the collator. 1420 1465 * @param status for catching errors 1421 1466 * @return newly created collator -
trunk/Source/JavaScriptCore/icu/unicode/uconfig.h
r196492 r215722 1 1 /* 2 2 ********************************************************************** 3 * Copyright (C) 2002-201 3, International Business Machines3 * Copyright (C) 2002-2015, International Business Machines 4 4 * Corporation and others. All Rights Reserved. 5 5 ********************************************************************** … … 186 186 /* Use the predefined value. */ 187 187 #elif defined(U_LIB_SUFFIX_C_NAME) 188 # define U_LIB_SUFFIX_C_NAME_STRING #U_LIB_SUFFIX_C_NAME 188 # define CONVERT_TO_STRING(s) #s 189 # define U_LIB_SUFFIX_C_NAME_STRING CONVERT_TO_STRING(U_LIB_SUFFIX_C_NAME) 189 190 #else 190 191 # define U_LIB_SUFFIX_C_NAME_STRING "" … … 200 201 * for ICU to work on EBCDIC platforms (for the default converter). 201 202 * If you want "only collation" and do not build for EBCDIC, 202 * then you can define UCONFIG_NO_ LEGACY_CONVERSION1 as well.203 * then you can define UCONFIG_NO_CONVERSION or UCONFIG_NO_LEGACY_CONVERSION to 1 as well. 203 204 * 204 205 * @stable ICU 2.4 … … 246 247 #endif 247 248 249 #if UCONFIG_NO_FILE_IO && defined(U_TIMEZONE_FILES_DIR) 250 # error Contradictory file io switches in uconfig.h. 251 #endif 252 248 253 /** 249 254 * \def UCONFIG_NO_CONVERSION … … 263 268 #if UCONFIG_NO_CONVERSION 264 269 # define UCONFIG_NO_LEGACY_CONVERSION 1 270 #endif 271 272 /** 273 * \def UCONFIG_ONLY_HTML_CONVERSION 274 * This switch turns off all of the converters NOT listed in 275 * the HTML encoding standard: 276 * http://www.w3.org/TR/encoding/#names-and-labels 277 * 278 * This is not possible on EBCDIC platforms 279 * because they need ibm-37 or ibm-1047 default converters. 280 * 281 * @draft ICU 55 282 */ 283 #ifndef UCONFIG_ONLY_HTML_CONVERSION 284 # define UCONFIG_ONLY_HTML_CONVERSION 0 265 285 #endif 266 286 … … 386 406 */ 387 407 #ifndef UCONFIG_NO_SERVICE 388 # define UCONFIG_NO_SERVICE 1408 # define UCONFIG_NO_SERVICE 0 389 409 #endif 390 410 … … 410 430 #endif 411 431 412 #endif 432 /** 433 * \def UCONFIG_NO_FILTERED_BREAK_ITERATION 434 * This switch turns off filtered break iteration code. 435 * 436 * @internal 437 */ 438 #ifndef UCONFIG_NO_FILTERED_BREAK_ITERATION 439 # define UCONFIG_NO_FILTERED_BREAK_ITERATION 0 440 441 442 443 #endif 444 445 #endif -
trunk/Source/JavaScriptCore/icu/unicode/ucurr.h
r203381 r215722 1 1 /* 2 2 ********************************************************************** 3 * Copyright (c) 2002-201 3, International Business Machines3 * Copyright (c) 2002-2014, International Business Machines 4 4 * Corporation and others. All Rights Reserved. 5 5 ********************************************************************** … … 17 17 18 18 #if !UCONFIG_NO_FORMATTING 19 20 /** 21 * Currency Usage used for Decimal Format 22 * @draft ICU 54 23 */ 24 enum UCurrencyUsage { 25 #ifndef U_HIDE_DRAFT_API 26 /** 27 * a setting to specify currency usage which determines currency digit 28 * and rounding for standard usage, for example: "50.00 NT$" 29 * used as DEFAULT value 30 * @draft ICU 54 31 */ 32 UCURR_USAGE_STANDARD=0, 33 /** 34 * a setting to specify currency usage which determines currency digit 35 * and rounding for cash usage, for example: "50 NT$" 36 * @draft ICU 54 37 */ 38 UCURR_USAGE_CASH=1, 39 #endif /* U_HIDE_DRAFT_API */ 40 /** 41 * One higher than the last enum UCurrencyUsage constant. 42 * @draft ICU 54 43 */ 44 UCURR_USAGE_COUNT=2 45 }; 46 typedef enum UCurrencyUsage UCurrencyUsage; 19 47 20 48 /** … … 166 194 * Returns the number of the number of fraction digits that should 167 195 * be displayed for the given currency. 196 * This is equivalent to ucurr_getDefaultFractionDigitsForUsage(currency,UCURR_USAGE_STANDARD,ec); 168 197 * @param currency null-terminated 3-letter ISO 4217 code 169 198 * @param ec input-output error code … … 176 205 UErrorCode* ec); 177 206 207 #ifndef U_HIDE_DRAFT_API 208 /** 209 * Returns the number of the number of fraction digits that should 210 * be displayed for the given currency with usage. 211 * @param currency null-terminated 3-letter ISO 4217 code 212 * @param usage enum usage for the currency 213 * @param ec input-output error code 214 * @return a non-negative number of fraction digits to be 215 * displayed, or 0 if there is an error 216 * @draft ICU 54 217 */ 218 U_DRAFT int32_t U_EXPORT2 219 ucurr_getDefaultFractionDigitsForUsage(const UChar* currency, 220 const UCurrencyUsage usage, 221 UErrorCode* ec); 222 #endif /* U_HIDE_DRAFT_API */ 223 178 224 /** 179 225 * Returns the rounding increment for the given currency, or 0.0 if no 180 226 * rounding is done by the currency. 227 * This is equivalent to ucurr_getRoundingIncrementForUsage(currency,UCURR_USAGE_STANDARD,ec); 181 228 * @param currency null-terminated 3-letter ISO 4217 code 182 229 * @param ec input-output error code … … 188 235 ucurr_getRoundingIncrement(const UChar* currency, 189 236 UErrorCode* ec); 237 238 #ifndef U_HIDE_DRAFT_API 239 /** 240 * Returns the rounding increment for the given currency, or 0.0 if no 241 * rounding is done by the currency given usage. 242 * @param currency null-terminated 3-letter ISO 4217 code 243 * @param usage enum usage for the currency 244 * @param ec input-output error code 245 * @return the non-negative rounding increment, or 0.0 if none, 246 * or 0.0 if there is an error 247 * @draft ICU 54 248 */ 249 U_DRAFT double U_EXPORT2 250 ucurr_getRoundingIncrementForUsage(const UChar* currency, 251 const UCurrencyUsage usage, 252 UErrorCode* ec); 253 #endif /* U_HIDE_DRAFT_API */ 190 254 191 255 /** -
trunk/Source/JavaScriptCore/icu/unicode/udatpg.h
r196492 r215722 2 2 ******************************************************************************* 3 3 * 4 * Copyright (C) 2007-201 2, International Business Machines4 * Copyright (C) 2007-2015, International Business Machines 5 5 * Corporation and others. All Rights Reserved. 6 6 * … … 410 410 411 411 /** 412 * The date time format is a message format pattern used to compose date and 413 * time patterns. The default value is "{0} {1}", where {0} will be replaced 414 * by the date pattern and {1} will be replaced by the time pattern. 412 * The DateTimeFormat is a message format pattern used to compose date and 413 * time patterns. The default pattern in the root locale is "{1} {0}", where 414 * {1} will be replaced by the date pattern and {0} will be replaced by the 415 * time pattern; however, other locales may specify patterns such as 416 * "{1}, {0}" or "{1} 'at' {0}", etc. 415 417 * <p> 416 418 * This is used when the input skeleton contains both date and time fields, 417 419 * but there is not a close match among the added patterns. For example, 418 420 * suppose that this object was created by adding "dd-MMM" and "hh:mm", and 419 * its datetimeFormat is the default "{0} {1}". Then if the input skeleton421 * its DateTimeFormat is the default "{1} {0}". Then if the input skeleton 420 422 * is "MMMdhmm", there is not an exact match, so the input skeleton is 421 423 * broken up into two components "MMMd" and "hmm". There are close matches … … 425 427 * @param dtpg a pointer to UDateTimePatternGenerator. 426 428 * @param dtFormat 427 * message format pattern, here { 0} will be replaced by the date428 * pattern and { 1} will be replaced by the time pattern.429 * message format pattern, here {1} will be replaced by the date 430 * pattern and {0} will be replaced by the time pattern. 429 431 * @param length the length of dtFormat. 430 432 * @stable ICU 3.8 -
trunk/Source/JavaScriptCore/icu/unicode/udisplaycontext.h
r196492 r215722 1 1 /* 2 2 ***************************************************************************************** 3 * Copyright (C) 201 3, International Business Machines3 * Copyright (C) 2014, International Business Machines 4 4 * Corporation and others. All Rights Reserved. 5 5 ***************************************************************************************** … … 13 13 #if !UCONFIG_NO_FORMATTING 14 14 15 /* Dont hide with #ifndef U_HIDE_DRAFT_API, needed by virtual methods */16 15 /** 17 16 * \file … … 22 21 * Display context types, for getting values of a particular setting. 23 22 * Note, the specific numeric values are internal and may change. 24 * @ draftICU 5123 * @stable ICU 51 25 24 */ 26 25 enum UDisplayContextType { 27 #ifndef U_HIDE_DRAFT_API28 26 /** 29 27 * Type to retrieve the dialect handling setting, e.g. 30 28 * UDISPCTX_STANDARD_NAMES or UDISPCTX_DIALECT_NAMES. 31 * @ draftICU 5129 * @stable ICU 51 32 30 */ 33 31 UDISPCTX_TYPE_DIALECT_HANDLING = 0, … … 36 34 * UDISPCTX_CAPITALIZATION_NONE, UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE, 37 35 * UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE, etc. 38 * @ draftICU 5136 * @stable ICU 51 39 37 */ 40 38 UDISPCTX_TYPE_CAPITALIZATION = 1 41 #endif /* U_HIDE_DRAFT_API */ 39 #ifndef U_HIDE_DRAFT_API 40 , 41 /** 42 * Type to retrieve the display length setting, e.g. 43 * UDISPCTX_LENGTH_FULL, UDISPCTX_LENGTH_SHORT. 44 * @draft ICU 54 45 */ 46 UDISPCTX_TYPE_DISPLAY_LENGTH = 2 47 #endif /* U_HIDE_DRAFT_API */ 42 48 }; 43 49 /** 44 * @ draftICU 5150 * @stable ICU 51 45 51 */ 46 52 typedef enum UDisplayContextType UDisplayContextType; 47 53 48 /* Dont hide with #ifndef U_HIDE_DRAFT_API, needed by virtual methods */49 54 /** 50 55 * Display context settings. 51 56 * Note, the specific numeric values are internal and may change. 52 * @ draftICU 5157 * @stable ICU 51 53 58 */ 54 59 enum UDisplayContext { 55 #ifndef U_HIDE_DRAFT_API56 60 /** 57 61 * ================================ … … 64 68 * use standard names when generating a locale name, 65 69 * e.g. en_GB displays as 'English (United Kingdom)'. 66 * @ draftICU 5170 * @stable ICU 51 67 71 */ 68 72 UDISPCTX_STANDARD_NAMES = (UDISPCTX_TYPE_DIALECT_HANDLING<<8) + 0, … … 71 75 * use dialect names, when generating a locale name, 72 76 * e.g. en_GB displays as 'British English'. 73 * @ draftICU 5177 * @stable ICU 51 74 78 */ 75 79 UDISPCTX_DIALECT_NAMES = (UDISPCTX_TYPE_DIALECT_HANDLING<<8) + 1, … … 85 89 /** 86 90 * The capitalization context to be used is unknown (this is the default value). 87 * @ draftICU 5191 * @stable ICU 51 88 92 */ 89 93 UDISPCTX_CAPITALIZATION_NONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 0, … … 91 95 * The capitalization context if a date, date symbol or display name is to be 92 96 * formatted with capitalization appropriate for the middle of a sentence. 93 * @ draftICU 5197 * @stable ICU 51 94 98 */ 95 99 UDISPCTX_CAPITALIZATION_FOR_MIDDLE_OF_SENTENCE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 1, … … 97 101 * The capitalization context if a date, date symbol or display name is to be 98 102 * formatted with capitalization appropriate for the beginning of a sentence. 99 * @ draftICU 51103 * @stable ICU 51 100 104 */ 101 105 UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 2, … … 103 107 * The capitalization context if a date, date symbol or display name is to be 104 108 * formatted with capitalization appropriate for a user-interface list or menu item. 105 * @ draftICU 51109 * @stable ICU 51 106 110 */ 107 111 UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 3, … … 110 114 * formatted with capitalization appropriate for stand-alone usage such as an 111 115 * isolated name on a calendar page. 112 * @ draftICU 51116 * @stable ICU 51 113 117 */ 114 118 UDISPCTX_CAPITALIZATION_FOR_STANDALONE = (UDISPCTX_TYPE_CAPITALIZATION<<8) + 4 115 #endif /* U_HIDE_DRAFT_API */ 119 #ifndef U_HIDE_DRAFT_API 120 , 121 /** 122 * ================================ 123 * DISPLAY_LENGTH can be set to one of UDISPCTX_LENGTH_FULL or 124 * UDISPCTX_LENGTH_SHORT. Use UDisplayContextType UDISPCTX_TYPE_DISPLAY_LENGTH 125 * to get the value. 126 */ 127 /** 128 * A possible setting for DISPLAY_LENGTH: 129 * use full names when generating a locale name, 130 * e.g. "United States" for US. 131 * @draft ICU 54 132 */ 133 UDISPCTX_LENGTH_FULL = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 0, 134 /** 135 * A possible setting for DISPLAY_LENGTH: 136 * use short names when generating a locale name, 137 * e.g. "U.S." for US. 138 * @draft ICU 54 139 */ 140 UDISPCTX_LENGTH_SHORT = (UDISPCTX_TYPE_DISPLAY_LENGTH<<8) + 1 141 #endif /* U_HIDE_DRAFT_API */ 116 142 }; 117 143 /** 118 * @ draftICU 51144 * @stable ICU 51 119 145 */ 120 146 typedef enum UDisplayContext UDisplayContext; -
trunk/Source/JavaScriptCore/icu/unicode/uformattable.h
r196492 r215722 1 1 /* 2 2 ******************************************************************************** 3 * Copyright (C) 2013 , International Business Machines Corporation and others.3 * Copyright (C) 2013-2014, International Business Machines Corporation and others. 4 4 * All Rights Reserved. 5 5 ******************************************************************************** … … 33 33 #if !UCONFIG_NO_FORMATTING 34 34 35 #ifndef U_HIDE_DRAFT_API36 37 35 #include "unicode/localpointer.h" 38 36 … … 42 40 * or error. 43 41 * @see icu::Formattable::Type 44 * @ draftICU 5242 * @stable ICU 52 45 43 */ 46 44 typedef enum UFormattableType { … … 60 58 * and parsing operations. 61 59 * @see icu::Formattable 62 * @ draftICU 5260 * @stable ICU 52 63 61 */ 64 62 typedef void *UFormattable; … … 69 67 * parameter status error code. 70 68 * See {@link unum_parseToUFormattable} for example code. 71 * @ draftICU 5269 * @stable ICU 52 72 70 * @return the new UFormattable 73 71 * @see ufmt_close 74 72 * @see icu::Formattable::Formattable() 75 73 */ 76 U_ DRAFTUFormattable* U_EXPORT274 U_STABLE UFormattable* U_EXPORT2 77 75 ufmt_open(UErrorCode* status); 78 76 … … 80 78 * Cleanup any additional memory allocated by this UFormattable. 81 79 * @param fmt the formatter 82 * @ draftICU 5280 * @stable ICU 52 83 81 * @see ufmt_open 84 82 */ 85 U_ DRAFTvoid U_EXPORT283 U_STABLE void U_EXPORT2 86 84 ufmt_close(UFormattable* fmt); 87 85 … … 97 95 * @see LocalPointerBase 98 96 * @see LocalPointer 99 * @ draftICU 5297 * @stable ICU 52 100 98 */ 101 99 U_DEFINE_LOCAL_OPEN_POINTER(LocalUFormattablePointer, UFormattable, ufmt_close); … … 113 111 * @see ufmt_isNumeric 114 112 * @see icu::Formattable::getType() const 115 * @ draftICU 52116 */ 117 U_ DRAFTUFormattableType U_EXPORT2113 * @stable ICU 52 114 */ 115 U_STABLE UFormattableType U_EXPORT2 118 116 ufmt_getType(const UFormattable* fmt, UErrorCode *status); 119 117 … … 124 122 * @see ufmt_getType 125 123 * @see icu::Formattable::isNumeric() const 126 * @ draftICU 52127 */ 128 U_ DRAFTUBool U_EXPORT2124 * @stable ICU 52 125 */ 126 U_STABLE UBool U_EXPORT2 129 127 ufmt_isNumeric(const UFormattable* fmt); 130 128 … … 136 134 * @param status the error code - any conversion or format errors 137 135 * @return the value 138 * @ draftICU 52136 * @stable ICU 52 139 137 * @see icu::Formattable::getDate(UErrorCode&) const 140 138 */ 141 U_ DRAFTUDate U_EXPORT2139 U_STABLE UDate U_EXPORT2 142 140 ufmt_getDate(const UFormattable* fmt, UErrorCode *status); 143 141 … … 154 152 * @param status the error code - any conversion or format errors 155 153 * @return the value 156 * @ draftICU 52154 * @stable ICU 52 157 155 * @see icu::Formattable::getDouble(UErrorCode&) const 158 156 */ 159 U_ DRAFTdouble U_EXPORT2157 U_STABLE double U_EXPORT2 160 158 ufmt_getDouble(UFormattable* fmt, UErrorCode *status); 161 159 … … 175 173 * @param status the error code - any conversion or format errors 176 174 * @return the value 177 * @ draftICU 52175 * @stable ICU 52 178 176 * @see icu::Formattable::getLong(UErrorCode&) const 179 177 */ 180 U_ DRAFTint32_t U_EXPORT2178 U_STABLE int32_t U_EXPORT2 181 179 ufmt_getLong(UFormattable* fmt, UErrorCode *status); 182 180 … … 196 194 * @param status the error code - any conversion or format errors 197 195 * @return the value 198 * @ draftICU 52196 * @stable ICU 52 199 197 * @see icu::Formattable::getInt64(UErrorCode&) const 200 198 */ 201 U_ DRAFTint64_t U_EXPORT2199 U_STABLE int64_t U_EXPORT2 202 200 ufmt_getInt64(UFormattable* fmt, UErrorCode *status); 203 201 … … 209 207 * @param status the error code - any conversion or format errors 210 208 * @return the value as a const void*. It is a polymorphic C++ object. 211 * @ draftICU 52209 * @stable ICU 52 212 210 * @see icu::Formattable::getObject() const 213 211 */ 214 U_ DRAFTconst void *U_EXPORT2212 U_STABLE const void *U_EXPORT2 215 213 ufmt_getObject(const UFormattable* fmt, UErrorCode *status); 216 214 … … 224 222 * @param len if non null, contains the string length on return 225 223 * @return the null terminated string value - must not be referenced after any other functions are called on this UFormattable. 226 * @ draftICU 52224 * @stable ICU 52 227 225 * @see icu::Formattable::getString(UnicodeString&)const 228 226 */ 229 U_ DRAFTconst UChar* U_EXPORT2227 U_STABLE const UChar* U_EXPORT2 230 228 ufmt_getUChars(UFormattable* fmt, int32_t *len, UErrorCode *status); 231 229 … … 235 233 * @param status the error code - any conversion or format errors. U_ILLEGAL_ARGUMENT_ERROR if not an array type. 236 234 * @return the number of array objects or undefined if not an array type 237 * @ draftICU 52235 * @stable ICU 52 238 236 * @see ufmt_getArrayItemByIndex 239 237 */ 240 U_ DRAFTint32_t U_EXPORT2238 U_STABLE int32_t U_EXPORT2 241 239 ufmt_getArrayLength(const UFormattable* fmt, UErrorCode *status); 242 240 … … 247 245 * @param status the error code - any conversion or format errors. Returns an error if n is out of bounds. 248 246 * @return the nth array value, only valid while the containing UFormattable is valid. NULL if not an array. 249 * @ draftICU 52247 * @stable ICU 52 250 248 * @see icu::Formattable::getArray(int32_t&, UErrorCode&) const 251 249 */ 252 U_ DRAFTUFormattable * U_EXPORT2250 U_STABLE UFormattable * U_EXPORT2 253 251 ufmt_getArrayItemByIndex(UFormattable* fmt, int32_t n, UErrorCode *status); 254 252 … … 272 270 * @param status the error code 273 271 * @return the character buffer as a NULL terminated string, which is owned by the object and must not be accessed if any other functions are called on this object. 274 * @ draftICU 52272 * @stable ICU 52 275 273 * @see icu::Formattable::getDecimalNumber(UErrorCode&) 276 274 */ 277 U_ DRAFTconst char * U_EXPORT2275 U_STABLE const char * U_EXPORT2 278 276 ufmt_getDecNumChars(UFormattable *fmt, int32_t *len, UErrorCode *status); 279 #endif /* U_HIDE_DRAFT_API */280 277 281 278 #endif -
trunk/Source/JavaScriptCore/icu/unicode/uloc.h
r196492 r215722 1 1 /* 2 2 ********************************************************************** 3 * Copyright (C) 1997-201 3, International Business Machines3 * Copyright (C) 1997-2014, International Business Machines 4 4 * Corporation and others. All Rights Reserved. 5 5 ********************************************************************** … … 273 273 * @stable ICU 2.8 274 274 */ 275 #define ULOC_KEYWORDS_CAPACITY 50275 #define ULOC_KEYWORDS_CAPACITY 96 276 276 277 277 /** … … 887 887 UErrorCode* status); 888 888 889 #ifndef U_HIDE_DRAFT_API 890 /** 891 * Returns whether the locale's script is written right-to-left. 892 * If there is no script subtag, then the likely script is used, see uloc_addLikelySubtags(). 893 * If no likely script is known, then FALSE is returned. 894 * 895 * A script is right-to-left according to the CLDR script metadata 896 * which corresponds to whether the script's letters have Bidi_Class=R or AL. 897 * 898 * Returns TRUE for "ar" and "en-Hebr", FALSE for "zh" and "fa-Cyrl". 899 * 900 * @param locale input locale ID 901 * @return TRUE if the locale's script is written right-to-left 902 * @draft ICU 54 903 */ 904 U_DRAFT UBool U_EXPORT2 905 uloc_isRightToLeft(const char *locale); 906 #endif /* U_HIDE_DRAFT_API */ 907 889 908 /** 890 909 * enums for the return value for the character and line orientation … … 1133 1152 UErrorCode* err); 1134 1153 1154 #ifndef U_HIDE_DRAFT_API 1155 /** 1156 * Converts the specified keyword (legacy key, or BCP 47 Unicode locale 1157 * extension key) to the equivalent BCP 47 Unicode locale extension key. 1158 * For example, BCP 47 Unicode locale extension key "co" is returned for 1159 * the input keyword "collation". 1160 * <p> 1161 * When the specified keyword is unknown, but satisfies the BCP syntax, 1162 * then the pointer to the input keyword itself will be returned. 1163 * For example, 1164 * <code>uloc_toUnicodeLocaleKey("ZZ")</code> returns "ZZ". 1165 * 1166 * @param keyword the input locale keyword (either legacy key 1167 * such as "collation" or BCP 47 Unicode locale extension 1168 * key such as "co"). 1169 * @return the well-formed BCP 47 Unicode locale extension key, 1170 * or NULL if the specified locale keyword cannot be 1171 * mapped to a well-formed BCP 47 Unicode locale extension 1172 * key. 1173 * @see uloc_toLegacyKey 1174 * @draft ICU 54 1175 */ 1176 U_DRAFT const char* U_EXPORT2 1177 uloc_toUnicodeLocaleKey(const char* keyword); 1178 1179 /** 1180 * Converts the specified keyword value (legacy type, or BCP 47 1181 * Unicode locale extension type) to the well-formed BCP 47 Unicode locale 1182 * extension type for the specified keyword (category). For example, BCP 47 1183 * Unicode locale extension type "phonebk" is returned for the input 1184 * keyword value "phonebook", with the keyword "collation" (or "co"). 1185 * <p> 1186 * When the specified keyword is not recognized, but the specified value 1187 * satisfies the syntax of the BCP 47 Unicode locale extension type, 1188 * or when the specified keyword allows 'variable' type and the specified 1189 * value satisfies the syntax, then the pointer to the input type value itself 1190 * will be returned. 1191 * For example, 1192 * <code>uloc_toUnicodeLocaleType("Foo", "Bar")</code> returns "Bar", 1193 * <code>uloc_toUnicodeLocaleType("variableTop", "00A4")</code> returns "00A4". 1194 * 1195 * @param keyword the locale keyword (either legacy key such as 1196 * "collation" or BCP 47 Unicode locale extension 1197 * key such as "co"). 1198 * @param value the locale keyword value (either legacy type 1199 * such as "phonebook" or BCP 47 Unicode locale extension 1200 * type such as "phonebk"). 1201 * @return the well-formed BCP47 Unicode locale extension type, 1202 * or NULL if the locale keyword value cannot be mapped to 1203 * a well-formed BCP 47 Unicode locale extension type. 1204 * @see uloc_toLegacyType 1205 * @draft ICU 54 1206 */ 1207 U_DRAFT const char* U_EXPORT2 1208 uloc_toUnicodeLocaleType(const char* keyword, const char* value); 1209 1210 /** 1211 * Converts the specified keyword (BCP 47 Unicode locale extension key, or 1212 * legacy key) to the legacy key. For example, legacy key "collation" is 1213 * returned for the input BCP 47 Unicode locale extension key "co". 1214 * 1215 * @param keyword the input locale keyword (either BCP 47 Unicode locale 1216 * extension key or legacy key). 1217 * @return the well-formed legacy key, or NULL if the specified 1218 * keyword cannot be mapped to a well-formed legacy key. 1219 * @see toUnicodeLocaleKey 1220 * @draft ICU 54 1221 */ 1222 U_DRAFT const char* U_EXPORT2 1223 uloc_toLegacyKey(const char* keyword); 1224 1225 /** 1226 * Converts the specified keyword value (BCP 47 Unicode locale extension type, 1227 * or legacy type or type alias) to the canonical legacy type. For example, 1228 * the legacy type "phonebook" is returned for the input BCP 47 Unicode 1229 * locale extension type "phonebk" with the keyword "collation" (or "co"). 1230 * <p> 1231 * When the specified keyword is not recognized, but the specified value 1232 * satisfies the syntax of legacy key, or when the specified keyword 1233 * allows 'variable' type and the specified value satisfies the syntax, 1234 * then the pointer to the input type value itself will be returned. 1235 * For example, 1236 * <code>uloc_toLegacyType("Foo", "Bar")</code> returns "Bar", 1237 * <code>uloc_toLegacyType("vt", "00A4")</code> returns "00A4". 1238 * 1239 * @param keyword the locale keyword (either legacy keyword such as 1240 * "collation" or BCP 47 Unicode locale extension 1241 * key such as "co"). 1242 * @param value the locale keyword value (either BCP 47 Unicode locale 1243 * extension type such as "phonebk" or legacy keyword value 1244 * such as "phonebook"). 1245 * @return the well-formed legacy type, or NULL if the specified 1246 * keyword value cannot be mapped to a well-formed legacy 1247 * type. 1248 * @see toUnicodeLocaleType 1249 * @draft ICU 54 1250 */ 1251 U_DRAFT const char* U_EXPORT2 1252 uloc_toLegacyType(const char* keyword, const char* value); 1253 1254 #endif /* U_HIDE_DRAFT_API */ 1255 1135 1256 #endif /*_ULOC*/ -
trunk/Source/JavaScriptCore/icu/unicode/umachine.h
r196492 r215722 2 2 ****************************************************************************** 3 3 * 4 * Copyright (C) 1999-201 2, International Business Machines4 * Copyright (C) 1999-2014, International Business Machines 5 5 * Corporation and others. All Rights Reserved. 6 6 * … … 14 14 * created by: Markus W. Scherer 15 15 * 16 * This file defines basic types and constants for utf.hto be16 * This file defines basic types and constants for ICU to be 17 17 * platform-independent. umachine.h and utf.h are included into 18 18 * utypes.h to provide all the general definitions for ICU. … … 116 116 /** This is used to declare a function as an internal ICU C API */ 117 117 #define U_INTERNAL U_CAPI 118 119 /** 120 * \def U_OVERRIDE 121 * Defined to the C++11 "override" keyword if available. 122 * Denotes a class or member which is an override of the base class. 123 * May result in an error if it applied to something not an override. 124 * @internal 125 */ 126 127 /** 128 * \def U_FINAL 129 * Defined to the C++11 "final" keyword if available. 130 * Denotes a class or member which may not be overridden in subclasses. 131 * May result in an error if subclasses attempt to override. 132 * @internal 133 */ 134 135 #if defined(__cplusplus) && __cplusplus>=201103L 136 /* C++11 */ 137 #ifndef U_OVERRIDE 138 #define U_OVERRIDE override 139 #endif 140 #ifndef U_FINAL 141 #define U_FINAL final 142 #endif 143 #else 144 /* not C++11 - define to nothing */ 145 #ifndef U_OVERRIDE 146 #define U_OVERRIDE 147 #endif 148 #ifndef U_FINAL 149 #define U_FINAL 150 #endif 151 #endif 118 152 119 153 /*==========================================================================*/ -
trunk/Source/JavaScriptCore/icu/unicode/unum.h
r196492 r215722 1 1 /* 2 2 ******************************************************************************* 3 * Copyright (C) 1997-201 3, International Business Machines Corporation and others.3 * Copyright (C) 1997-2015, International Business Machines Corporation and others. 4 4 * All Rights Reserved. 5 5 * Modification History: … … 19 19 #include "unicode/localpointer.h" 20 20 #include "unicode/uloc.h" 21 #include "unicode/ucurr.h" 21 22 #include "unicode/umisc.h" 22 23 #include "unicode/parseerr.h" 23 24 #include "unicode/uformattable.h" 25 #include "unicode/udisplaycontext.h" 24 26 25 27 /** … … 150 152 * @stable ICU 2.0 151 153 */ 152 UNUM_CURRENCY ,154 UNUM_CURRENCY=2, 153 155 /** 154 156 * Percent format 155 157 * @stable ICU 2.0 156 158 */ 157 UNUM_PERCENT ,159 UNUM_PERCENT=3, 158 160 /** 159 161 * Scientific format 160 162 * @stable ICU 2.1 161 163 */ 162 UNUM_SCIENTIFIC, 163 /** 164 * Spellout rule-based format 164 UNUM_SCIENTIFIC=4, 165 /** 166 * Spellout rule-based format. The default ruleset can be specified/changed using 167 * unum_setTextAttribute with UNUM_DEFAULT_RULESET; the available public rulesets 168 * can be listed using unum_getTextAttribute with UNUM_PUBLIC_RULESETS. 165 169 * @stable ICU 2.0 166 170 */ 167 UNUM_SPELLOUT ,171 UNUM_SPELLOUT=5, 168 172 /** 169 * Ordinal rule-based format 173 * Ordinal rule-based format . The default ruleset can be specified/changed using 174 * unum_setTextAttribute with UNUM_DEFAULT_RULESET; the available public rulesets 175 * can be listed using unum_getTextAttribute with UNUM_PUBLIC_RULESETS. 170 176 * @stable ICU 3.0 171 177 */ 172 UNUM_ORDINAL ,178 UNUM_ORDINAL=6, 173 179 /** 174 180 * Duration rule-based format 175 181 * @stable ICU 3.0 176 182 */ 177 UNUM_DURATION ,183 UNUM_DURATION=7, 178 184 /** 179 185 * Numbering system rule-based format 180 186 * @stable ICU 4.2 181 187 */ 182 UNUM_NUMBERING_SYSTEM ,188 UNUM_NUMBERING_SYSTEM=8, 183 189 /** 184 190 * Rule-based format defined by a pattern string. 185 191 * @stable ICU 3.0 186 192 */ 187 UNUM_PATTERN_RULEBASED ,193 UNUM_PATTERN_RULEBASED=9, 188 194 /** 189 195 * Currency format with an ISO currency code, e.g., "USD1.00". 190 196 * @stable ICU 4.8 191 197 */ 192 UNUM_CURRENCY_ISO ,198 UNUM_CURRENCY_ISO=10, 193 199 /** 194 200 * Currency format with a pluralized currency name, … … 196 202 * @stable ICU 4.8 197 203 */ 198 UNUM_CURRENCY_PLURAL, 204 UNUM_CURRENCY_PLURAL=11, 205 /** 206 * Currency format for accounting, e.g., "($3.00)" for 207 * negative currency amount instead of "-$3.00" ({@link #UNUM_CURRENCY}). 208 * @stable ICU 53 209 */ 210 UNUM_CURRENCY_ACCOUNTING=12, 211 #ifndef U_HIDE_DRAFT_API 212 /** 213 * Currency format with a currency symbol given CASH usage, e.g., 214 * "NT$3" instead of "NT$3.23". 215 * @draft ICU 54 216 */ 217 UNUM_CASH_CURRENCY=13, 218 #endif /* U_HIDE_DRAFT_API */ 219 199 220 /** 200 221 * One more than the highest number format style constant. 201 222 * @stable ICU 4.8 202 223 */ 203 UNUM_FORMAT_STYLE_COUNT, 224 UNUM_FORMAT_STYLE_COUNT=14, 225 204 226 /** 205 227 * Default format … … 253 275 } UNumberFormatPadPosition; 254 276 255 #ifndef U_HIDE_DRAFT_API256 277 /** 257 278 * Constants for specifying short or long format. 258 * @ draftICU 51279 * @stable ICU 51 259 280 */ 260 281 typedef enum UNumberCompactStyle { 261 /** @ draftICU 51 */282 /** @stable ICU 51 */ 262 283 UNUM_SHORT, 263 /** @ draftICU 51 */284 /** @stable ICU 51 */ 264 285 UNUM_LONG 265 /** @ draftICU 51 */286 /** @stable ICU 51 */ 266 287 } UNumberCompactStyle; 267 #endif /* U_HIDE_DRAFT_API */268 288 269 289 /** … … 324 344 * used by this object. 325 345 * @param style The type of number format to open: one of 326 * UNUM_DECIMAL, UNUM_CURRENCY, UNUM_PERCENT, UNUM_SCIENTIFIC, UNUM_SPELLOUT, 346 * UNUM_DECIMAL, UNUM_CURRENCY, UNUM_PERCENT, UNUM_SCIENTIFIC, 347 * UNUM_CURRENCY_ISO, UNUM_CURRENCY_PLURAL, UNUM_SPELLOUT, 348 * UNUM_ORDINAL, UNUM_DURATION, UNUM_NUMBERING_SYSTEM, 327 349 * UNUM_PATTERN_DECIMAL, UNUM_PATTERN_RULEBASED, or UNUM_DEFAULT. 328 350 * If UNUM_PATTERN_DECIMAL or UNUM_PATTERN_RULEBASED is passed then the … … 563 585 UErrorCode* status); 564 586 565 #ifndef U_HIDE_DRAFT_API566 587 /** 567 588 * Format a UFormattable into a string. … … 582 603 * the output was truncated. Will return 0 on error. 583 604 * @see unum_parseToUFormattable 584 * @ draftICU 52585 */ 586 U_ DRAFTint32_t U_EXPORT2605 * @stable ICU 52 606 */ 607 U_STABLE int32_t U_EXPORT2 587 608 unum_formatUFormattable(const UNumberFormat* fmt, 588 609 const UFormattable *number, … … 591 612 UFieldPosition *pos, 592 613 UErrorCode *status); 593 #endif /* U_HIDE_DRAFT_API */594 614 595 615 /** … … 727 747 UErrorCode* status); 728 748 729 #ifndef U_HIDE_DRAFT_API730 749 /** 731 750 * Parse a UChar string into a UFormattable. … … 744 763 * @see ufmt_getType 745 764 * @see ufmt_close 746 * @ draftICU 52747 */ 748 U_ DRAFTUFormattable* U_EXPORT2765 * @stable ICU 52 766 */ 767 U_STABLE UFormattable* U_EXPORT2 749 768 unum_parseToUFormattable(const UNumberFormat* fmt, 750 769 UFormattable *result, … … 753 772 int32_t* parsePos, /* 0 = start */ 754 773 UErrorCode* status); 755 #endif /* U_HIDE_DRAFT_API */756 774 757 775 /** … … 806 824 807 825 #if UCONFIG_HAVE_PARSEALLINPUT 826 /* The UNumberFormatAttributeValue type cannot be #ifndef U_HIDE_INTERNAL_API, needed for .h variable declaration */ 808 827 /** 809 828 * @internal 810 829 */ 811 830 typedef enum UNumberFormatAttributeValue { 831 #ifndef U_HIDE_INTERNAL_API 812 832 /** @internal */ 813 833 UNUM_NO = 0, … … 816 836 /** @internal */ 817 837 UNUM_MAYBE = 2 838 #endif /* U_HIDE_INTERNAL_API */ 818 839 } UNumberFormatAttributeValue; 819 840 #endif … … 873 894 UNUM_PARSE_ALL_INPUT = UNUM_LENIENT_PARSE + 1, 874 895 #endif 875 #ifndef U_HIDE_DRAFT_API876 896 /** 877 897 * Scale, which adjusts the position of the … … 882 902 * <p>Example: setting the scale to -4, 123 formats as "0.0123" 883 903 * 884 * @ draftICU 51 */904 * @stable ICU 51 */ 885 905 UNUM_SCALE = UNUM_LENIENT_PARSE + 2, 886 #endif /* U_HIDE_DRAFT_API */887 906 888 907 #ifndef U_HIDE_INTERNAL_API … … 890 909 * @internal */ 891 910 UNUM_NUMERIC_ATTRIBUTE_COUNT = UNUM_LENIENT_PARSE + 3, 892 911 #endif /* U_HIDE_INTERNAL_API */ 912 913 #ifndef U_HIDE_DRAFT_API 914 /** 915 * if this attribute is set to 0, it is set to UNUM_CURRENCY_STANDARD purpose, 916 * otherwise it is UNUM_CURRENCY_CASH purpose 917 * Default: 0 (UNUM_CURRENCY_STANDARD purpose) 918 * @draft ICU 54 919 */ 920 UNUM_CURRENCY_USAGE = UNUM_LENIENT_PARSE + 4, 921 #endif /* U_HIDE_DRAFT_API */ 922 923 /* The following cannot be #ifndef U_HIDE_INTERNAL_API, needed in .h file variable declararions */ 893 924 /** One below the first bitfield-boolean item. 894 925 * All items after this one are stored in boolean form. 895 926 * @internal */ 896 927 UNUM_MAX_NONBOOLEAN_ATTRIBUTE = 0x0FFF, 897 #endif /* U_HIDE_INTERNAL_API */898 928 899 929 /** If 1, specifies that if setting the "max integer digits" attribute would truncate a value, set an error status rather than silently truncating. … … 911 941 UNUM_PARSE_NO_EXPONENT, 912 942 913 #ifndef U_HIDE_INTERNAL_API 943 #ifndef U_HIDE_DRAFT_API 944 /** 945 * if this attribute is set to 1, specifies that, if the pattern contains a 946 * decimal mark the input is required to have one. If this attribute is set to 0, 947 * specifies that input does not have to contain a decimal mark. 948 * Has no effect on formatting. 949 * Default: 0 (unset) 950 * @draft ICU 54 951 */ 952 UNUM_PARSE_DECIMAL_MARK_REQUIRED = UNUM_PARSE_NO_EXPONENT+1, 953 #endif /* U_HIDE_DRAFT_API */ 954 955 /* The following cannot be #ifndef U_HIDE_INTERNAL_API, needed in .h file variable declararions */ 914 956 /** Limit of boolean attributes. 915 957 * @internal */ 916 UNUM_LIMIT_BOOLEAN_ATTRIBUTE 917 #endif /* U_HIDE_INTERNAL_API */ 958 UNUM_LIMIT_BOOLEAN_ATTRIBUTE = UNUM_PARSE_NO_EXPONENT+2 918 959 } UNumberFormatAttribute; 919 960 … … 1016 1057 UNUM_CURRENCY_CODE, 1017 1058 /** 1018 * The default rule set. This is only available with rule-based formatters. 1059 * The default rule set, such as "%spellout-numbering-year:", "%spellout-cardinal:", 1060 * "%spellout-ordinal-masculine-plural:", "%spellout-ordinal-feminine:", or 1061 * "%spellout-ordinal-neuter:". The available public rulesets can be listed using 1062 * unum_getTextAttribute with UNUM_PUBLIC_RULESETS. This is only available with 1063 * rule-based formatters. 1019 1064 * @stable ICU 3.0 1020 1065 */ … … 1023 1068 * The public rule sets. This is only available with rule-based formatters. 1024 1069 * This is a read-only attribute. The public rulesets are returned as a 1025 * single string, with each ruleset name delimited by ';' (semicolon). 1070 * single string, with each ruleset name delimited by ';' (semicolon). See the 1071 * CLDR LDML spec for more information about RBNF rulesets: 1072 * http://www.unicode.org/reports/tr35/tr35-numbers.html#Rule-Based_Number_Formatting 1026 1073 * @stable ICU 3.0 1027 1074 */ … … 1181 1228 */ 1182 1229 UNUM_NINE_DIGIT_SYMBOL = 26, 1230 1231 #ifndef U_HIDE_DRAFT_API 1232 /** Multiplication sign 1233 * @draft ICU 54 1234 */ 1235 UNUM_EXPONENT_MULTIPLICATION_SYMBOL = 27, 1236 #endif /* U_HIDE_DRAFT_API */ 1237 1183 1238 /** count symbol constants */ 1184 UNUM_FORMAT_SYMBOL_COUNT = 2 71239 UNUM_FORMAT_SYMBOL_COUNT = 28 1185 1240 } UNumberFormatSymbol; 1186 1241 … … 1243 1298 UErrorCode* status); 1244 1299 1300 /** 1301 * Set a particular UDisplayContext value in the formatter, such as 1302 * UDISPCTX_CAPITALIZATION_FOR_STANDALONE. 1303 * @param fmt The formatter for which to set a UDisplayContext value. 1304 * @param value The UDisplayContext value to set. 1305 * @param status A pointer to an UErrorCode to receive any errors 1306 * @stable ICU 53 1307 */ 1308 U_STABLE void U_EXPORT2 1309 unum_setContext(UNumberFormat* fmt, UDisplayContext value, UErrorCode* status); 1310 1311 /** 1312 * Get the formatter's UDisplayContext value for the specified UDisplayContextType, 1313 * such as UDISPCTX_TYPE_CAPITALIZATION. 1314 * @param fmt The formatter to query. 1315 * @param type The UDisplayContextType whose value to return 1316 * @param status A pointer to an UErrorCode to receive any errors 1317 * @return The UDisplayContextValue for the specified type. 1318 * @stable ICU 53 1319 */ 1320 U_STABLE UDisplayContext U_EXPORT2 1321 unum_getContext(const UNumberFormat *fmt, UDisplayContextType type, UErrorCode* status); 1322 1245 1323 #endif /* #if !UCONFIG_NO_FORMATTING */ 1246 1324 -
trunk/Source/JavaScriptCore/icu/unicode/unumsys.h
r194387 r215722 1 1 /* 2 2 ***************************************************************************************** 3 * Copyright (C) 2013 , International Business Machines3 * Copyright (C) 2013-2014, International Business Machines 4 4 * Corporation and others. All Rights Reserved. 5 5 ***************************************************************************************** … … 35 35 */ 36 36 37 #ifndef U_HIDE_DRAFT_API38 39 37 /** 40 38 * Opaque UNumberingSystem object for use in C programs. 41 * @ draftICU 5239 * @stable ICU 52 42 40 */ 43 41 struct UNumberingSystem; 44 typedef struct UNumberingSystem UNumberingSystem; /**< C typedef for struct UNumberingSystem. @ draftICU 52 */42 typedef struct UNumberingSystem UNumberingSystem; /**< C typedef for struct UNumberingSystem. @stable ICU 52 */ 45 43 46 44 /** … … 53 51 * @return A UNumberingSystem for the specified locale, or NULL if an error 54 52 * occurred. 55 * @ draftICU 5253 * @stable ICU 52 56 54 */ 57 U_ DRAFTUNumberingSystem * U_EXPORT255 U_STABLE UNumberingSystem * U_EXPORT2 58 56 unumsys_open(const char *locale, UErrorCode *status); 59 57 … … 74 72 * @return A UNumberingSystem for the specified name, or NULL if an error 75 73 * occurred. 76 * @ draftICU 5274 * @stable ICU 52 77 75 */ 78 U_ DRAFTUNumberingSystem * U_EXPORT276 U_STABLE UNumberingSystem * U_EXPORT2 79 77 unumsys_openByName(const char *name, UErrorCode *status); 80 78 … … 82 80 * Close a UNumberingSystem object. Once closed it may no longer be used. 83 81 * @param unumsys The UNumberingSystem object to close. 84 * @ draftICU 5282 * @stable ICU 52 85 83 */ 86 U_ DRAFTvoid U_EXPORT284 U_STABLE void U_EXPORT2 87 85 unumsys_close(UNumberingSystem *unumsys); 88 86 … … 96 94 * @see LocalPointerBase 97 95 * @see LocalPointer 98 * @ draftICU 5296 * @stable ICU 52 99 97 */ 100 98 U_DEFINE_LOCAL_OPEN_POINTER(LocalUNumberingSystemPointer, UNumberingSystem, unumsys_close); … … 109 107 * @return A pointer to a UEnumeration that must be closed with uenum_close(), 110 108 * or NULL if an error occurred. 111 * @ draftICU 52109 * @stable ICU 52 112 110 */ 113 U_ DRAFTUEnumeration * U_EXPORT2111 U_STABLE UEnumeration * U_EXPORT2 114 112 unumsys_openAvailableNames(UErrorCode *status); 115 113 … … 121 119 * NULL if the name is not one of the ICU predefined names. The pointer 122 120 * is only valid for the lifetime of the UNumberingSystem object. 123 * @ draftICU 52121 * @stable ICU 52 124 122 */ 125 U_ DRAFTconst char * U_EXPORT2123 U_STABLE const char * U_EXPORT2 126 124 unumsys_getName(const UNumberingSystem *unumsys); 127 125 … … 132 130 * @return TRUE if the specified UNumberingSystem object is for an algorithmic 133 131 * system. 134 * @ draftICU 52132 * @stable ICU 52 135 133 */ 136 U_ DRAFTUBool U_EXPORT2134 U_STABLE UBool U_EXPORT2 137 135 unumsys_isAlgorithmic(const UNumberingSystem *unumsys); 138 136 … … 143 141 * @param unumsys The UNumberingSystem whose radix is desired. 144 142 * @return The radix of the specified UNumberingSystem object. 145 * @ draftICU 52143 * @stable ICU 52 146 144 */ 147 U_ DRAFTint32_t U_EXPORT2145 U_STABLE int32_t U_EXPORT2 148 146 unumsys_getRadix(const UNumberingSystem *unumsys); 149 147 … … 162 160 * @return The total buffer size needed; if greater than resultLength, the 163 161 * output was truncated. 164 * @ draftICU 52162 * @stable ICU 52 165 163 */ 166 U_ DRAFTint32_t U_EXPORT2164 U_STABLE int32_t U_EXPORT2 167 165 unumsys_getDescription(const UNumberingSystem *unumsys, UChar *result, 168 166 int32_t resultLength, UErrorCode *status); 169 170 #endif /* U_HIDE_DRAFT_API */171 167 172 168 #endif /* #if !UCONFIG_NO_FORMATTING */ -
trunk/Source/JavaScriptCore/icu/unicode/urename.h
r196492 r215722 1 1 /* 2 2 ******************************************************************************* 3 * Copyright (C) 2002-201 3, International Business Machines3 * Copyright (C) 2002-2015, International Business Machines 4 4 * Corporation and others. All Rights Reserved. 5 5 ******************************************************************************* … … 105 105 #define _UTF8Data U_ICU_ENTRY_POINT_RENAME(_UTF8Data) 106 106 #define cmemory_cleanup U_ICU_ENTRY_POINT_RENAME(cmemory_cleanup) 107 #define cmemory_inUse U_ICU_ENTRY_POINT_RENAME(cmemory_inUse)107 #define gTimeZoneFilesInitOnce U_ICU_ENTRY_POINT_RENAME(gTimeZoneFilesInitOnce) 108 108 #define izrule_clone U_ICU_ENTRY_POINT_RENAME(izrule_clone) 109 109 #define izrule_close U_ICU_ENTRY_POINT_RENAME(izrule_close) … … 204 204 #define u_austrcpy U_ICU_ENTRY_POINT_RENAME(u_austrcpy) 205 205 #define u_austrncpy U_ICU_ENTRY_POINT_RENAME(u_austrncpy) 206 #define u_caseInsensitivePrefixMatch U_ICU_ENTRY_POINT_RENAME(u_caseInsensitivePrefixMatch) 206 207 #define u_catclose U_ICU_ENTRY_POINT_RENAME(u_catclose) 207 208 #define u_catgets U_ICU_ENTRY_POINT_RENAME(u_catgets) … … 240 241 #define u_foldCase U_ICU_ENTRY_POINT_RENAME(u_foldCase) 241 242 #define u_fopen U_ICU_ENTRY_POINT_RENAME(u_fopen) 243 #define u_fopen_u U_ICU_ENTRY_POINT_RENAME(u_fopen_u) 242 244 #define u_forDigit U_ICU_ENTRY_POINT_RENAME(u_forDigit) 243 245 #define u_formatMessage U_ICU_ENTRY_POINT_RENAME(u_formatMessage) … … 271 273 #define u_getPropertyValueEnum U_ICU_ENTRY_POINT_RENAME(u_getPropertyValueEnum) 272 274 #define u_getPropertyValueName U_ICU_ENTRY_POINT_RENAME(u_getPropertyValueName) 275 #define u_getTimeZoneFilesDirectory U_ICU_ENTRY_POINT_RENAME(u_getTimeZoneFilesDirectory) 273 276 #define u_getUnicodeProperties U_ICU_ENTRY_POINT_RENAME(u_getUnicodeProperties) 274 277 #define u_getUnicodeVersion U_ICU_ENTRY_POINT_RENAME(u_getUnicodeVersion) … … 332 335 #define u_setMemoryFunctions U_ICU_ENTRY_POINT_RENAME(u_setMemoryFunctions) 333 336 #define u_setMutexFunctions U_ICU_ENTRY_POINT_RENAME(u_setMutexFunctions) 337 #define u_setTimeZoneFilesDirectory U_ICU_ENTRY_POINT_RENAME(u_setTimeZoneFilesDirectory) 334 338 #define u_shapeArabic U_ICU_ENTRY_POINT_RENAME(u_shapeArabic) 335 339 #define u_snprintf U_ICU_ENTRY_POINT_RENAME(u_snprintf) … … 414 418 #define u_vsscanf U_ICU_ENTRY_POINT_RENAME(u_vsscanf) 415 419 #define u_vsscanf_u U_ICU_ENTRY_POINT_RENAME(u_vsscanf_u) 416 #define u_writeDiff U_ICU_ENTRY_POINT_RENAME(u_writeDiff)417 420 #define u_writeIdenticalLevelRun U_ICU_ENTRY_POINT_RENAME(u_writeIdenticalLevelRun) 418 #define u_writeIdenticalLevelRunTwoChars U_ICU_ENTRY_POINT_RENAME(u_writeIdenticalLevelRunTwoChars)419 421 #define ubidi_addPropertyStarts U_ICU_ENTRY_POINT_RENAME(ubidi_addPropertyStarts) 420 422 #define ubidi_close U_ICU_ENTRY_POINT_RENAME(ubidi_close) … … 495 497 #define ubrk_setUText U_ICU_ENTRY_POINT_RENAME(ubrk_setUText) 496 498 #define ubrk_swap U_ICU_ENTRY_POINT_RENAME(ubrk_swap) 499 #define ucache_compareKeys U_ICU_ENTRY_POINT_RENAME(ucache_compareKeys) 500 #define ucache_deleteKey U_ICU_ENTRY_POINT_RENAME(ucache_deleteKey) 501 #define ucache_hashKeys U_ICU_ENTRY_POINT_RENAME(ucache_hashKeys) 497 502 #define ucal_add U_ICU_ENTRY_POINT_RENAME(ucal_add) 498 503 #define ucal_clear U_ICU_ENTRY_POINT_RENAME(ucal_clear) … … 691 696 #define ucnvsel_selectForUTF8 U_ICU_ENTRY_POINT_RENAME(ucnvsel_selectForUTF8) 692 697 #define ucnvsel_serialize U_ICU_ENTRY_POINT_RENAME(ucnvsel_serialize) 693 #define ucol_allocWeights U_ICU_ENTRY_POINT_RENAME(ucol_allocWeights)694 #define ucol_assembleTailoringTable U_ICU_ENTRY_POINT_RENAME(ucol_assembleTailoringTable)695 #define ucol_buildPermutationTable U_ICU_ENTRY_POINT_RENAME(ucol_buildPermutationTable)696 #define ucol_calcSortKey U_ICU_ENTRY_POINT_RENAME(ucol_calcSortKey)697 #define ucol_calcSortKeySimpleTertiary U_ICU_ENTRY_POINT_RENAME(ucol_calcSortKeySimpleTertiary)698 698 #define ucol_cloneBinary U_ICU_ENTRY_POINT_RENAME(ucol_cloneBinary) 699 699 #define ucol_close U_ICU_ENTRY_POINT_RENAME(ucol_close) 700 700 #define ucol_closeElements U_ICU_ENTRY_POINT_RENAME(ucol_closeElements) 701 701 #define ucol_countAvailable U_ICU_ENTRY_POINT_RENAME(ucol_countAvailable) 702 #define ucol_createElements U_ICU_ENTRY_POINT_RENAME(ucol_createElements)703 #define ucol_doCE U_ICU_ENTRY_POINT_RENAME(ucol_doCE)704 702 #define ucol_equal U_ICU_ENTRY_POINT_RENAME(ucol_equal) 705 703 #define ucol_equals U_ICU_ENTRY_POINT_RENAME(ucol_equals) 706 #define ucol_findReorderingEntry U_ICU_ENTRY_POINT_RENAME(ucol_findReorderingEntry)707 #define ucol_forceHanImplicit U_ICU_ENTRY_POINT_RENAME(ucol_forceHanImplicit)708 #define ucol_forgetUCA U_ICU_ENTRY_POINT_RENAME(ucol_forgetUCA)709 #define ucol_freeOffsetBuffer U_ICU_ENTRY_POINT_RENAME(ucol_freeOffsetBuffer)710 704 #define ucol_getAttribute U_ICU_ENTRY_POINT_RENAME(ucol_getAttribute) 711 #define ucol_getAttributeOrDefault U_ICU_ENTRY_POINT_RENAME(ucol_getAttributeOrDefault)712 705 #define ucol_getAvailable U_ICU_ENTRY_POINT_RENAME(ucol_getAvailable) 713 706 #define ucol_getBound U_ICU_ENTRY_POINT_RENAME(ucol_getBound) 714 #define ucol_getCEStrengthDifference U_ICU_ENTRY_POINT_RENAME(ucol_getCEStrengthDifference)715 #define ucol_getCollationKey U_ICU_ENTRY_POINT_RENAME(ucol_getCollationKey)716 707 #define ucol_getContractions U_ICU_ENTRY_POINT_RENAME(ucol_getContractions) 717 708 #define ucol_getContractionsAndExpansions U_ICU_ENTRY_POINT_RENAME(ucol_getContractionsAndExpansions) 718 709 #define ucol_getDisplayName U_ICU_ENTRY_POINT_RENAME(ucol_getDisplayName) 719 710 #define ucol_getEquivalentReorderCodes U_ICU_ENTRY_POINT_RENAME(ucol_getEquivalentReorderCodes) 720 #define ucol_getFirstCE U_ICU_ENTRY_POINT_RENAME(ucol_getFirstCE)721 711 #define ucol_getFunctionalEquivalent U_ICU_ENTRY_POINT_RENAME(ucol_getFunctionalEquivalent) 722 712 #define ucol_getKeywordValues U_ICU_ENTRY_POINT_RENAME(ucol_getKeywordValues) 723 713 #define ucol_getKeywordValuesForLocale U_ICU_ENTRY_POINT_RENAME(ucol_getKeywordValuesForLocale) 724 714 #define ucol_getKeywords U_ICU_ENTRY_POINT_RENAME(ucol_getKeywords) 725 #define ucol_getLeadBytesForReorderCode U_ICU_ENTRY_POINT_RENAME(ucol_getLeadBytesForReorderCode)726 715 #define ucol_getLocale U_ICU_ENTRY_POINT_RENAME(ucol_getLocale) 727 716 #define ucol_getLocaleByType U_ICU_ENTRY_POINT_RENAME(ucol_getLocaleByType) 728 717 #define ucol_getMaxExpansion U_ICU_ENTRY_POINT_RENAME(ucol_getMaxExpansion) 729 #define ucol_get NextCE U_ICU_ENTRY_POINT_RENAME(ucol_getNextCE)718 #define ucol_getMaxVariable U_ICU_ENTRY_POINT_RENAME(ucol_getMaxVariable) 730 719 #define ucol_getOffset U_ICU_ENTRY_POINT_RENAME(ucol_getOffset) 731 #define ucol_getPrevCE U_ICU_ENTRY_POINT_RENAME(ucol_getPrevCE)732 720 #define ucol_getReorderCodes U_ICU_ENTRY_POINT_RENAME(ucol_getReorderCodes) 733 #define ucol_getReorderCodesForLeadByte U_ICU_ENTRY_POINT_RENAME(ucol_getReorderCodesForLeadByte)734 721 #define ucol_getRules U_ICU_ENTRY_POINT_RENAME(ucol_getRules) 735 722 #define ucol_getRulesEx U_ICU_ENTRY_POINT_RENAME(ucol_getRulesEx) … … 744 731 #define ucol_greater U_ICU_ENTRY_POINT_RENAME(ucol_greater) 745 732 #define ucol_greaterOrEqual U_ICU_ENTRY_POINT_RENAME(ucol_greaterOrEqual) 746 #define ucol_initBuffers U_ICU_ENTRY_POINT_RENAME(ucol_initBuffers)747 #define ucol_initCollator U_ICU_ENTRY_POINT_RENAME(ucol_initCollator)748 #define ucol_initInverseUCA U_ICU_ENTRY_POINT_RENAME(ucol_initInverseUCA)749 #define ucol_initUCA U_ICU_ENTRY_POINT_RENAME(ucol_initUCA)750 #define ucol_inv_getNextCE U_ICU_ENTRY_POINT_RENAME(ucol_inv_getNextCE)751 #define ucol_inv_getPrevCE U_ICU_ENTRY_POINT_RENAME(ucol_inv_getPrevCE)752 #define ucol_isTailored U_ICU_ENTRY_POINT_RENAME(ucol_isTailored)753 733 #define ucol_keyHashCode U_ICU_ENTRY_POINT_RENAME(ucol_keyHashCode) 754 734 #define ucol_looksLikeCollationBinary U_ICU_ENTRY_POINT_RENAME(ucol_looksLikeCollationBinary) 755 735 #define ucol_mergeSortkeys U_ICU_ENTRY_POINT_RENAME(ucol_mergeSortkeys) 756 736 #define ucol_next U_ICU_ENTRY_POINT_RENAME(ucol_next) 757 #define ucol_nextProcessed U_ICU_ENTRY_POINT_RENAME(ucol_nextProcessed)758 737 #define ucol_nextSortKeyPart U_ICU_ENTRY_POINT_RENAME(ucol_nextSortKeyPart) 759 #define ucol_nextWeight U_ICU_ENTRY_POINT_RENAME(ucol_nextWeight)760 738 #define ucol_normalizeShortDefinitionString U_ICU_ENTRY_POINT_RENAME(ucol_normalizeShortDefinitionString) 761 739 #define ucol_open U_ICU_ENTRY_POINT_RENAME(ucol_open) … … 765 743 #define ucol_openFromShortString U_ICU_ENTRY_POINT_RENAME(ucol_openFromShortString) 766 744 #define ucol_openRules U_ICU_ENTRY_POINT_RENAME(ucol_openRules) 767 #define ucol_openRulesForImport U_ICU_ENTRY_POINT_RENAME(ucol_openRulesForImport)768 #define ucol_open_internal U_ICU_ENTRY_POINT_RENAME(ucol_open_internal)769 745 #define ucol_prepareShortStringOpen U_ICU_ENTRY_POINT_RENAME(ucol_prepareShortStringOpen) 770 746 #define ucol_previous U_ICU_ENTRY_POINT_RENAME(ucol_previous) 771 #define ucol_previousProcessed U_ICU_ENTRY_POINT_RENAME(ucol_previousProcessed)772 747 #define ucol_primaryOrder U_ICU_ENTRY_POINT_RENAME(ucol_primaryOrder) 773 #define ucol_prv_getSpecialCE U_ICU_ENTRY_POINT_RENAME(ucol_prv_getSpecialCE)774 #define ucol_prv_getSpecialPrevCE U_ICU_ENTRY_POINT_RENAME(ucol_prv_getSpecialPrevCE)775 748 #define ucol_reset U_ICU_ENTRY_POINT_RENAME(ucol_reset) 776 749 #define ucol_restoreVariableTop U_ICU_ENTRY_POINT_RENAME(ucol_restoreVariableTop) … … 778 751 #define ucol_secondaryOrder U_ICU_ENTRY_POINT_RENAME(ucol_secondaryOrder) 779 752 #define ucol_setAttribute U_ICU_ENTRY_POINT_RENAME(ucol_setAttribute) 753 #define ucol_setMaxVariable U_ICU_ENTRY_POINT_RENAME(ucol_setMaxVariable) 780 754 #define ucol_setOffset U_ICU_ENTRY_POINT_RENAME(ucol_setOffset) 781 #define ucol_setOptionsFromHeader U_ICU_ENTRY_POINT_RENAME(ucol_setOptionsFromHeader)782 755 #define ucol_setReorderCodes U_ICU_ENTRY_POINT_RENAME(ucol_setReorderCodes) 783 #define ucol_setReqValidLocales U_ICU_ENTRY_POINT_RENAME(ucol_setReqValidLocales)784 756 #define ucol_setStrength U_ICU_ENTRY_POINT_RENAME(ucol_setStrength) 785 757 #define ucol_setText U_ICU_ENTRY_POINT_RENAME(ucol_setText) … … 789 761 #define ucol_strcollUTF8 U_ICU_ENTRY_POINT_RENAME(ucol_strcollUTF8) 790 762 #define ucol_swap U_ICU_ENTRY_POINT_RENAME(ucol_swap) 791 #define ucol_swapBinary U_ICU_ENTRY_POINT_RENAME(ucol_swapBinary)792 763 #define ucol_swapInverseUCA U_ICU_ENTRY_POINT_RENAME(ucol_swapInverseUCA) 793 764 #define ucol_tertiaryOrder U_ICU_ENTRY_POINT_RENAME(ucol_tertiaryOrder) 794 #define ucol_tok_assembleTokenList U_ICU_ENTRY_POINT_RENAME(ucol_tok_assembleTokenList)795 #define ucol_tok_closeTokenList U_ICU_ENTRY_POINT_RENAME(ucol_tok_closeTokenList)796 #define ucol_tok_getNextArgument U_ICU_ENTRY_POINT_RENAME(ucol_tok_getNextArgument)797 #define ucol_tok_getRulesFromBundle U_ICU_ENTRY_POINT_RENAME(ucol_tok_getRulesFromBundle)798 #define ucol_tok_initTokenList U_ICU_ENTRY_POINT_RENAME(ucol_tok_initTokenList)799 #define ucol_tok_parseNextToken U_ICU_ENTRY_POINT_RENAME(ucol_tok_parseNextToken)800 #define ucol_updateInternalState U_ICU_ENTRY_POINT_RENAME(ucol_updateInternalState)801 765 #define ucsdet_close U_ICU_ENTRY_POINT_RENAME(ucsdet_close) 802 766 #define ucsdet_detect U_ICU_ENTRY_POINT_RENAME(ucsdet_detect) … … 818 782 #define ucurr_forLocaleAndDate U_ICU_ENTRY_POINT_RENAME(ucurr_forLocaleAndDate) 819 783 #define ucurr_getDefaultFractionDigits U_ICU_ENTRY_POINT_RENAME(ucurr_getDefaultFractionDigits) 784 #define ucurr_getDefaultFractionDigitsForUsage U_ICU_ENTRY_POINT_RENAME(ucurr_getDefaultFractionDigitsForUsage) 820 785 #define ucurr_getKeywordValuesForLocale U_ICU_ENTRY_POINT_RENAME(ucurr_getKeywordValuesForLocale) 821 786 #define ucurr_getName U_ICU_ENTRY_POINT_RENAME(ucurr_getName) … … 823 788 #define ucurr_getPluralName U_ICU_ENTRY_POINT_RENAME(ucurr_getPluralName) 824 789 #define ucurr_getRoundingIncrement U_ICU_ENTRY_POINT_RENAME(ucurr_getRoundingIncrement) 790 #define ucurr_getRoundingIncrementForUsage U_ICU_ENTRY_POINT_RENAME(ucurr_getRoundingIncrementForUsage) 825 791 #define ucurr_isAvailable U_ICU_ENTRY_POINT_RENAME(ucurr_isAvailable) 826 792 #define ucurr_openISOCurrencies U_ICU_ENTRY_POINT_RENAME(ucurr_openISOCurrencies) 827 793 #define ucurr_register U_ICU_ENTRY_POINT_RENAME(ucurr_register) 828 794 #define ucurr_unregister U_ICU_ENTRY_POINT_RENAME(ucurr_unregister) 795 #define udat_adoptNumberFormat U_ICU_ENTRY_POINT_RENAME(udat_adoptNumberFormat) 796 #define udat_adoptNumberFormatForFields U_ICU_ENTRY_POINT_RENAME(udat_adoptNumberFormatForFields) 829 797 #define udat_applyPattern U_ICU_ENTRY_POINT_RENAME(udat_applyPattern) 830 798 #define udat_applyPatternRelative U_ICU_ENTRY_POINT_RENAME(udat_applyPatternRelative) … … 834 802 #define udat_countSymbols U_ICU_ENTRY_POINT_RENAME(udat_countSymbols) 835 803 #define udat_format U_ICU_ENTRY_POINT_RENAME(udat_format) 804 #define udat_formatCalendar U_ICU_ENTRY_POINT_RENAME(udat_formatCalendar) 805 #define udat_formatCalendarForFields U_ICU_ENTRY_POINT_RENAME(udat_formatCalendarForFields) 806 #define udat_formatForFields U_ICU_ENTRY_POINT_RENAME(udat_formatForFields) 836 807 #define udat_get2DigitYearStart U_ICU_ENTRY_POINT_RENAME(udat_get2DigitYearStart) 837 808 #define udat_getAvailable U_ICU_ENTRY_POINT_RENAME(udat_getAvailable) 809 #define udat_getBooleanAttribute U_ICU_ENTRY_POINT_RENAME(udat_getBooleanAttribute) 838 810 #define udat_getCalendar U_ICU_ENTRY_POINT_RENAME(udat_getCalendar) 839 811 #define udat_getContext U_ICU_ENTRY_POINT_RENAME(udat_getContext) 840 812 #define udat_getLocaleByType U_ICU_ENTRY_POINT_RENAME(udat_getLocaleByType) 841 813 #define udat_getNumberFormat U_ICU_ENTRY_POINT_RENAME(udat_getNumberFormat) 814 #define udat_getNumberFormatForField U_ICU_ENTRY_POINT_RENAME(udat_getNumberFormatForField) 842 815 #define udat_getSymbols U_ICU_ENTRY_POINT_RENAME(udat_getSymbols) 843 816 #define udat_isLenient U_ICU_ENTRY_POINT_RENAME(udat_isLenient) … … 847 820 #define udat_registerOpener U_ICU_ENTRY_POINT_RENAME(udat_registerOpener) 848 821 #define udat_set2DigitYearStart U_ICU_ENTRY_POINT_RENAME(udat_set2DigitYearStart) 822 #define udat_setBooleanAttribute U_ICU_ENTRY_POINT_RENAME(udat_setBooleanAttribute) 849 823 #define udat_setCalendar U_ICU_ENTRY_POINT_RENAME(udat_setCalendar) 850 824 #define udat_setContext U_ICU_ENTRY_POINT_RENAME(udat_setContext) … … 914 888 #define uenum_unext U_ICU_ENTRY_POINT_RENAME(uenum_unext) 915 889 #define uenum_unextDefault U_ICU_ENTRY_POINT_RENAME(uenum_unextDefault) 890 #define ufieldpositer_close U_ICU_ENTRY_POINT_RENAME(ufieldpositer_close) 891 #define ufieldpositer_next U_ICU_ENTRY_POINT_RENAME(ufieldpositer_next) 892 #define ufieldpositer_open U_ICU_ENTRY_POINT_RENAME(ufieldpositer_open) 916 893 #define ufile_close_translit U_ICU_ENTRY_POINT_RENAME(ufile_close_translit) 917 894 #define ufile_fill_uchar_buffer U_ICU_ENTRY_POINT_RENAME(ufile_fill_uchar_buffer) … … 1039 1016 #define ulist_resetList U_ICU_ENTRY_POINT_RENAME(ulist_resetList) 1040 1017 #define ulist_reset_keyword_values_iterator U_ICU_ENTRY_POINT_RENAME(ulist_reset_keyword_values_iterator) 1018 #define ulistfmt_close U_ICU_ENTRY_POINT_RENAME(ulistfmt_close) 1019 #define ulistfmt_format U_ICU_ENTRY_POINT_RENAME(ulistfmt_format) 1020 #define ulistfmt_open U_ICU_ENTRY_POINT_RENAME(ulistfmt_open) 1041 1021 #define uloc_acceptLanguage U_ICU_ENTRY_POINT_RENAME(uloc_acceptLanguage) 1042 1022 #define uloc_acceptLanguageFromHTTP U_ICU_ENTRY_POINT_RENAME(uloc_acceptLanguageFromHTTP) … … 1074 1054 #define uloc_getTableStringWithFallback U_ICU_ENTRY_POINT_RENAME(uloc_getTableStringWithFallback) 1075 1055 #define uloc_getVariant U_ICU_ENTRY_POINT_RENAME(uloc_getVariant) 1056 #define uloc_isRightToLeft U_ICU_ENTRY_POINT_RENAME(uloc_isRightToLeft) 1076 1057 #define uloc_minimizeSubtags U_ICU_ENTRY_POINT_RENAME(uloc_minimizeSubtags) 1077 1058 #define uloc_openKeywordList U_ICU_ENTRY_POINT_RENAME(uloc_openKeywordList) … … 1080 1061 #define uloc_setKeywordValue U_ICU_ENTRY_POINT_RENAME(uloc_setKeywordValue) 1081 1062 #define uloc_toLanguageTag U_ICU_ENTRY_POINT_RENAME(uloc_toLanguageTag) 1063 #define uloc_toLegacyKey U_ICU_ENTRY_POINT_RENAME(uloc_toLegacyKey) 1064 #define uloc_toLegacyType U_ICU_ENTRY_POINT_RENAME(uloc_toLegacyType) 1065 #define uloc_toUnicodeLocaleKey U_ICU_ENTRY_POINT_RENAME(uloc_toUnicodeLocaleKey) 1066 #define uloc_toUnicodeLocaleType U_ICU_ENTRY_POINT_RENAME(uloc_toUnicodeLocaleType) 1082 1067 #define ulocdata_close U_ICU_ENTRY_POINT_RENAME(ulocdata_close) 1083 1068 #define ulocdata_getCLDRVersion U_ICU_ENTRY_POINT_RENAME(ulocdata_getCLDRVersion) … … 1094 1079 #define ulocimp_getLanguage U_ICU_ENTRY_POINT_RENAME(ulocimp_getLanguage) 1095 1080 #define ulocimp_getScript U_ICU_ENTRY_POINT_RENAME(ulocimp_getScript) 1081 #define ulocimp_toBcpKey U_ICU_ENTRY_POINT_RENAME(ulocimp_toBcpKey) 1082 #define ulocimp_toBcpType U_ICU_ENTRY_POINT_RENAME(ulocimp_toBcpType) 1083 #define ulocimp_toLegacyKey U_ICU_ENTRY_POINT_RENAME(ulocimp_toLegacyKey) 1084 #define ulocimp_toLegacyType U_ICU_ENTRY_POINT_RENAME(ulocimp_toLegacyType) 1085 #define ultag_isUnicodeLocaleKey U_ICU_ENTRY_POINT_RENAME(ultag_isUnicodeLocaleKey) 1086 #define ultag_isUnicodeLocaleType U_ICU_ENTRY_POINT_RENAME(ultag_isUnicodeLocaleType) 1096 1087 #define umsg_applyPattern U_ICU_ENTRY_POINT_RENAME(umsg_applyPattern) 1097 1088 #define umsg_autoQuoteApostrophe U_ICU_ENTRY_POINT_RENAME(umsg_autoQuoteApostrophe) … … 1106 1097 #define umsg_vformat U_ICU_ENTRY_POINT_RENAME(umsg_vformat) 1107 1098 #define umsg_vparse U_ICU_ENTRY_POINT_RENAME(umsg_vparse) 1099 #define umtx_condBroadcast U_ICU_ENTRY_POINT_RENAME(umtx_condBroadcast) 1100 #define umtx_condSignal U_ICU_ENTRY_POINT_RENAME(umtx_condSignal) 1101 #define umtx_condWait U_ICU_ENTRY_POINT_RENAME(umtx_condWait) 1108 1102 #define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock) 1109 1103 #define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock) … … 1131 1125 #define unorm2_spanQuickCheckYes U_ICU_ENTRY_POINT_RENAME(unorm2_spanQuickCheckYes) 1132 1126 #define unorm2_swap U_ICU_ENTRY_POINT_RENAME(unorm2_swap) 1133 #define unorm_closeIter U_ICU_ENTRY_POINT_RENAME(unorm_closeIter)1134 1127 #define unorm_compare U_ICU_ENTRY_POINT_RENAME(unorm_compare) 1135 1128 #define unorm_concatenate U_ICU_ENTRY_POINT_RENAME(unorm_concatenate) … … 1140 1133 #define unorm_next U_ICU_ENTRY_POINT_RENAME(unorm_next) 1141 1134 #define unorm_normalize U_ICU_ENTRY_POINT_RENAME(unorm_normalize) 1142 #define unorm_openIter U_ICU_ENTRY_POINT_RENAME(unorm_openIter)1143 1135 #define unorm_previous U_ICU_ENTRY_POINT_RENAME(unorm_previous) 1144 1136 #define unorm_quickCheck U_ICU_ENTRY_POINT_RENAME(unorm_quickCheck) 1145 1137 #define unorm_quickCheckWithOptions U_ICU_ENTRY_POINT_RENAME(unorm_quickCheckWithOptions) 1146 #define unorm_setIter U_ICU_ENTRY_POINT_RENAME(unorm_setIter)1147 1138 #define unum_applyPattern U_ICU_ENTRY_POINT_RENAME(unum_applyPattern) 1148 1139 #define unum_clone U_ICU_ENTRY_POINT_RENAME(unum_clone) … … 1157 1148 #define unum_getAttribute U_ICU_ENTRY_POINT_RENAME(unum_getAttribute) 1158 1149 #define unum_getAvailable U_ICU_ENTRY_POINT_RENAME(unum_getAvailable) 1150 #define unum_getContext U_ICU_ENTRY_POINT_RENAME(unum_getContext) 1159 1151 #define unum_getDoubleAttribute U_ICU_ENTRY_POINT_RENAME(unum_getDoubleAttribute) 1160 1152 #define unum_getLocaleByType U_ICU_ENTRY_POINT_RENAME(unum_getLocaleByType) … … 1169 1161 #define unum_parseToUFormattable U_ICU_ENTRY_POINT_RENAME(unum_parseToUFormattable) 1170 1162 #define unum_setAttribute U_ICU_ENTRY_POINT_RENAME(unum_setAttribute) 1163 #define unum_setContext U_ICU_ENTRY_POINT_RENAME(unum_setContext) 1171 1164 #define unum_setDoubleAttribute U_ICU_ENTRY_POINT_RENAME(unum_setDoubleAttribute) 1172 1165 #define unum_setSymbol U_ICU_ENTRY_POINT_RENAME(unum_setSymbol) … … 1215 1208 #define uprv_calloc U_ICU_ENTRY_POINT_RENAME(uprv_calloc) 1216 1209 #define uprv_ceil U_ICU_ENTRY_POINT_RENAME(uprv_ceil) 1217 #define uprv_cnttab_addContraction U_ICU_ENTRY_POINT_RENAME(uprv_cnttab_addContraction)1218 #define uprv_cnttab_changeContraction U_ICU_ENTRY_POINT_RENAME(uprv_cnttab_changeContraction)1219 #define uprv_cnttab_changeLastCE U_ICU_ENTRY_POINT_RENAME(uprv_cnttab_changeLastCE)1220 #define uprv_cnttab_clone U_ICU_ENTRY_POINT_RENAME(uprv_cnttab_clone)1221 #define uprv_cnttab_close U_ICU_ENTRY_POINT_RENAME(uprv_cnttab_close)1222 #define uprv_cnttab_constructTable U_ICU_ENTRY_POINT_RENAME(uprv_cnttab_constructTable)1223 #define uprv_cnttab_findCE U_ICU_ENTRY_POINT_RENAME(uprv_cnttab_findCE)1224 #define uprv_cnttab_findCP U_ICU_ENTRY_POINT_RENAME(uprv_cnttab_findCP)1225 #define uprv_cnttab_getCE U_ICU_ENTRY_POINT_RENAME(uprv_cnttab_getCE)1226 #define uprv_cnttab_insertContraction U_ICU_ENTRY_POINT_RENAME(uprv_cnttab_insertContraction)1227 #define uprv_cnttab_isTailored U_ICU_ENTRY_POINT_RENAME(uprv_cnttab_isTailored)1228 #define uprv_cnttab_open U_ICU_ENTRY_POINT_RENAME(uprv_cnttab_open)1229 #define uprv_cnttab_setContraction U_ICU_ENTRY_POINT_RENAME(uprv_cnttab_setContraction)1230 #define uprv_collIterateAtEnd U_ICU_ENTRY_POINT_RENAME(uprv_collIterateAtEnd)1231 1210 #define uprv_compareASCIIPropertyNames U_ICU_ENTRY_POINT_RENAME(uprv_compareASCIIPropertyNames) 1232 1211 #define uprv_compareEBCDICPropertyNames U_ICU_ENTRY_POINT_RENAME(uprv_compareEBCDICPropertyNames) … … 1315 1294 #define uprv_decNumberXor U_ICU_ENTRY_POINT_RENAME(uprv_decNumberXor) 1316 1295 #define uprv_decNumberZero U_ICU_ENTRY_POINT_RENAME(uprv_decNumberZero) 1296 #define uprv_deleteConditionalCE32 U_ICU_ENTRY_POINT_RENAME(uprv_deleteConditionalCE32) 1317 1297 #define uprv_deleteUObject U_ICU_ENTRY_POINT_RENAME(uprv_deleteUObject) 1318 #define uprv_delete_collIterate U_ICU_ENTRY_POINT_RENAME(uprv_delete_collIterate)1319 1298 #define uprv_dl_close U_ICU_ENTRY_POINT_RENAME(uprv_dl_close) 1320 1299 #define uprv_dl_open U_ICU_ENTRY_POINT_RENAME(uprv_dl_open) … … 1341 1320 #define uprv_getUTCtime U_ICU_ENTRY_POINT_RENAME(uprv_getUTCtime) 1342 1321 #define uprv_haveProperties U_ICU_ENTRY_POINT_RENAME(uprv_haveProperties) 1343 #define uprv_init_collIterate U_ICU_ENTRY_POINT_RENAME(uprv_init_collIterate)1344 #define uprv_init_pce U_ICU_ENTRY_POINT_RENAME(uprv_init_pce)1345 1322 #define uprv_int32Comparator U_ICU_ENTRY_POINT_RENAME(uprv_int32Comparator) 1346 1323 #define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter) … … 1360 1337 #define uprv_min U_ICU_ENTRY_POINT_RENAME(uprv_min) 1361 1338 #define uprv_modf U_ICU_ENTRY_POINT_RENAME(uprv_modf) 1362 #define uprv_new_collIterate U_ICU_ENTRY_POINT_RENAME(uprv_new_collIterate)1363 1339 #define uprv_parseCurrency U_ICU_ENTRY_POINT_RENAME(uprv_parseCurrency) 1364 1340 #define uprv_pathIsAbsolute U_ICU_ENTRY_POINT_RENAME(uprv_pathIsAbsolute) … … 1380 1356 #define uprv_tzname U_ICU_ENTRY_POINT_RENAME(uprv_tzname) 1381 1357 #define uprv_tzset U_ICU_ENTRY_POINT_RENAME(uprv_tzset) 1382 #define uprv_uca_addAnElement U_ICU_ENTRY_POINT_RENAME(uprv_uca_addAnElement)1383 #define uprv_uca_assembleTable U_ICU_ENTRY_POINT_RENAME(uprv_uca_assembleTable)1384 #define uprv_uca_canonicalClosure U_ICU_ENTRY_POINT_RENAME(uprv_uca_canonicalClosure)1385 #define uprv_uca_closeTempTable U_ICU_ENTRY_POINT_RENAME(uprv_uca_closeTempTable)1386 #define uprv_uca_getCodePointFromRaw U_ICU_ENTRY_POINT_RENAME(uprv_uca_getCodePointFromRaw)1387 #define uprv_uca_getImplicitFromRaw U_ICU_ENTRY_POINT_RENAME(uprv_uca_getImplicitFromRaw)1388 #define uprv_uca_getRawFromCodePoint U_ICU_ENTRY_POINT_RENAME(uprv_uca_getRawFromCodePoint)1389 #define uprv_uca_getRawFromImplicit U_ICU_ENTRY_POINT_RENAME(uprv_uca_getRawFromImplicit)1390 #define uprv_uca_initImplicitConstants U_ICU_ENTRY_POINT_RENAME(uprv_uca_initImplicitConstants)1391 #define uprv_uca_initTempTable U_ICU_ENTRY_POINT_RENAME(uprv_uca_initTempTable)1392 1358 #define uprv_uint16Comparator U_ICU_ENTRY_POINT_RENAME(uprv_uint16Comparator) 1393 1359 #define uprv_uint32Comparator U_ICU_ENTRY_POINT_RENAME(uprv_uint32Comparator) … … 1423 1389 #define uregex_group U_ICU_ENTRY_POINT_RENAME(uregex_group) 1424 1390 #define uregex_groupCount U_ICU_ENTRY_POINT_RENAME(uregex_groupCount) 1391 #define uregex_groupNumberFromCName U_ICU_ENTRY_POINT_RENAME(uregex_groupNumberFromCName) 1392 #define uregex_groupNumberFromName U_ICU_ENTRY_POINT_RENAME(uregex_groupNumberFromName) 1425 1393 #define uregex_groupUText U_ICU_ENTRY_POINT_RENAME(uregex_groupUText) 1426 #define uregex_groupUTextDeep U_ICU_ENTRY_POINT_RENAME(uregex_groupUTextDeep)1427 1394 #define uregex_hasAnchoringBounds U_ICU_ENTRY_POINT_RENAME(uregex_hasAnchoringBounds) 1428 1395 #define uregex_hasTransparentBounds U_ICU_ENTRY_POINT_RENAME(uregex_hasTransparentBounds) … … 1519 1486 #define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect) 1520 1487 #define ures_openFillIn U_ICU_ENTRY_POINT_RENAME(ures_openFillIn) 1488 #define ures_openNoDefault U_ICU_ENTRY_POINT_RENAME(ures_openNoDefault) 1521 1489 #define ures_openU U_ICU_ENTRY_POINT_RENAME(ures_openU) 1522 1490 #define ures_resetIterator U_ICU_ENTRY_POINT_RENAME(ures_resetIterator) … … 1723 1691 #define utrans_getAvailableID U_ICU_ENTRY_POINT_RENAME(utrans_getAvailableID) 1724 1692 #define utrans_getID U_ICU_ENTRY_POINT_RENAME(utrans_getID) 1693 #define utrans_getSourceSet U_ICU_ENTRY_POINT_RENAME(utrans_getSourceSet) 1725 1694 #define utrans_getUnicodeID U_ICU_ENTRY_POINT_RENAME(utrans_getUnicodeID) 1726 1695 #define utrans_open U_ICU_ENTRY_POINT_RENAME(utrans_open) … … 1732 1701 #define utrans_setFilter U_ICU_ENTRY_POINT_RENAME(utrans_setFilter) 1733 1702 #define utrans_stripRules U_ICU_ENTRY_POINT_RENAME(utrans_stripRules) 1703 #define utrans_toRules U_ICU_ENTRY_POINT_RENAME(utrans_toRules) 1734 1704 #define utrans_trans U_ICU_ENTRY_POINT_RENAME(utrans_trans) 1735 1705 #define utrans_transIncremental U_ICU_ENTRY_POINT_RENAME(utrans_transIncremental) -
trunk/Source/JavaScriptCore/icu/unicode/uscript.h
r196492 r215722 1 1 /* 2 2 ********************************************************************** 3 * Copyright (C) 1997-201 3, International Business Machines3 * Copyright (C) 1997-2015, International Business Machines 4 4 * Corporation and others. All Rights Reserved. 5 5 ********************************************************************** … … 22 22 * \brief C API: Unicode Script Information 23 23 */ 24 24 25 25 /** 26 26 * Constants for ISO 15924 script codes. 27 27 * 28 * Many of these script codes - those from Unicode's ScriptNames.txt - 29 * are character property values for Unicode's Script property. 30 * See UAX #24 Script Names (http://www.unicode.org/reports/tr24/). 28 * The current set of script code constants supports at least all scripts 29 * that are encoded in the version of Unicode which ICU currently supports. 30 * The names of the constants are usually derived from the 31 * Unicode script property value aliases. 32 * See UAX #24 Unicode Script Property (http://www.unicode.org/reports/tr24/) 33 * and http://www.unicode.org/Public/UCD/latest/ucd/PropertyValueAliases.txt . 31 34 * 32 35 * Starting with ICU 3.6, constants for most ISO 15924 script codes 33 * are included (currently excluding private-use codes Qaaa..Qabx). 34 * For scripts for which there are codes in ISO 15924 but which are not 35 * used in the Unicode Character Database (UCD), there are no Unicode characters 36 * associated with those scripts. 37 * 38 * For example, there are no characters that have a UCD script code of 39 * Hans or Hant. All Han ideographs have the Hani script code. 40 * The Hans and Hant script codes are used with CLDR data. 41 * 42 * ISO 15924 script codes are included for use with CLDR and similar. 36 * are included, for use with language tags, CLDR data, and similar. 37 * Some of those codes are not used in the Unicode Character Database (UCD). 38 * For example, there are no characters that have a UCD script property value of 39 * Hans or Hant. All Han ideographs have the Hani script property value in Unicode. 40 * 41 * Private-use codes Qaaa..Qabx are not included. 42 * 43 * Starting with ICU 55, script codes are only added when their scripts 44 * have been or will certainly be encoded in Unicode, 45 * and have been assigned Unicode script property value aliases, 46 * to ensure that their script names are stable and match the names of the constants. 47 * Script codes like Latf and Aran that are not subject to separate encoding 48 * may be added at any time. 43 49 * 44 50 * @stable ICU 2.2 … … 187 193 USCRIPT_OLD_PERSIAN = 61, /* Xpeo */ 188 194 189 /* New script codes from ISO 15924 */195 /* New script codes from Unicode and ISO 15924 */ 190 196 /** @stable ICU 3.6 */ 191 197 USCRIPT_BALINESE = 62, /* Bali */ … … 279 285 USCRIPT_UNKNOWN = 103,/* Zzzz */ /* Unknown="Code for uncoded script", for unassigned code points */ 280 286 281 /* New script codes from ISO 15924 */282 287 /** @stable ICU 3.8 */ 283 288 USCRIPT_CARIAN = 104,/* Cari */ … … 305 310 USCRIPT_MEITEI_MAYEK = 115,/* Mtei */ 306 311 307 /* New script codes from ISO 15924 */308 312 /** @stable ICU 4.0 */ 309 313 USCRIPT_IMPERIAL_ARAMAIC = 116,/* Armi */ … … 335 339 USCRIPT_SYMBOLS = 129,/* Zsym */ 336 340 337 /* New script codes from ISO 15924 */338 341 /** @stable ICU 4.4 */ 339 342 USCRIPT_BAMUM = 130,/* Bamu */ … … 345 348 USCRIPT_OLD_SOUTH_ARABIAN = 133,/* Sarb */ 346 349 347 /* New script codes from ISO 15924 */348 350 /** @stable ICU 4.6 */ 349 351 USCRIPT_BASSA_VAH = 134,/* Bass */ 350 /** @stable ICU 4.6 */ 351 USCRIPT_DUPLOYAN_SHORTAND = 135,/* Dupl */ 352 /** @stable ICU 54 */ 353 USCRIPT_DUPLOYAN = 135,/* Dupl */ 354 #ifndef U_HIDE_DEPRECATED_API 355 /** @deprecated ICU 54 Typo, use USCRIPT_DUPLOYAN */ 356 USCRIPT_DUPLOYAN_SHORTAND = USCRIPT_DUPLOYAN, 357 #endif /* U_HIDE_DEPRECATED_API */ 352 358 /** @stable ICU 4.6 */ 353 359 USCRIPT_ELBASAN = 136,/* Elba */ … … 358 364 /** @stable ICU 4.6 */ 359 365 USCRIPT_LOMA = 139,/* Loma */ 360 /** @stable ICU 4.6 */366 /** Mende Kikakui @stable ICU 4.6 */ 361 367 USCRIPT_MENDE = 140,/* Mend */ 362 368 /** @stable ICU 4.6 */ … … 368 374 /** @stable ICU 4.6 */ 369 375 USCRIPT_PALMYRENE = 144,/* Palm */ 370 /** @stable ICU 4.6 */ 371 USCRIPT_SINDHI = 145,/* Sind */ 376 /** @stable ICU 54 */ 377 USCRIPT_KHUDAWADI = 145,/* Sind */ 378 /** @stable ICU 4.6 */ 379 USCRIPT_SINDHI = USCRIPT_KHUDAWADI, 372 380 /** @stable ICU 4.6 */ 373 381 USCRIPT_WARANG_CITI = 146,/* Wara */ … … 404 412 USCRIPT_MAHAJANI = 160,/* Mahj */ 405 413 406 /* Private use codes from Qaaa - Qabx are not supported */ 407 408 /** @stable ICU 2.2 */ 409 USCRIPT_CODE_LIMIT = 161 414 /** @stable ICU 54 */ 415 USCRIPT_AHOM = 161,/* Ahom */ 416 /** @stable ICU 54 */ 417 USCRIPT_HATRAN = 162,/* Hatr */ 418 /** @stable ICU 54 */ 419 USCRIPT_MODI = 163,/* Modi */ 420 /** @stable ICU 54 */ 421 USCRIPT_MULTANI = 164,/* Mult */ 422 /** @stable ICU 54 */ 423 USCRIPT_PAU_CIN_HAU = 165,/* Pauc */ 424 /** @stable ICU 54 */ 425 USCRIPT_SIDDHAM = 166,/* Sidd */ 426 427 /** 428 * One higher than the last script code constant. 429 * This value increases as constants for script codes are added. 430 * 431 * There are constants for Unicode 7 script property values. 432 * There are constants for ISO 15924 script codes assigned on or before 2013-10-12. 433 * There are no constants for private use codes from Qaaa - Qabx 434 * except as used in the UCD. 435 * 436 * @stable ICU 2.2 437 */ 438 USCRIPT_CODE_LIMIT = 167 410 439 } UScriptCode; 411 440 412 441 /** 413 * Gets script codes associated with the given locale or ISO 15924 abbreviation or name.442 * Gets the script codes associated with the given locale or ISO 15924 abbreviation or name. 414 443 * Fills in USCRIPT_MALAYALAM given "Malayam" OR "Mlym". 415 444 * Fills in USCRIPT_LATIN given "en" OR "en_US" 416 * If required capacity is greater than capacity of the destination buffer then the error code417 * is set to U_BUFFER_OVERFLOW_ERROR and the required capacity is returned445 * If the required capacity is greater than the capacity of the destination buffer, 446 * then the error code is set to U_BUFFER_OVERFLOW_ERROR and the required capacity is returned. 418 447 * 419 448 * <p>Note: To search by short or long script alias only, use 420 * u_getPropertyValueEnum(UCHAR_SCRIPT, alias) instead. Th isdoes449 * u_getPropertyValueEnum(UCHAR_SCRIPT, alias) instead. That does 421 450 * a fast lookup with no access of the locale data. 451 * 422 452 * @param nameOrAbbrOrLocale name of the script, as given in 423 453 * PropertyValueAliases.txt, or ISO 15924 code or locale … … 432 462 433 463 /** 434 * Gets a script name associated with the given script code. 435 * Returns "Malayam" given USCRIPT_MALAYALAM 464 * Returns the long Unicode script name, if there is one. 465 * Otherwise returns the 4-letter ISO 15924 script code. 466 * Returns "Malayam" given USCRIPT_MALAYALAM. 467 * 436 468 * @param scriptCode UScriptCode enum 437 * @return script long name as given in438 * PropertyValueAliases.txt,or NULL if scriptCode is invalid469 * @return long script name as given in PropertyValueAliases.txt, or the 4-letter code, 470 * or NULL if scriptCode is invalid 439 471 * @stable ICU 2.4 440 472 */ … … 443 475 444 476 /** 445 * Gets a script name associated with the given script code. 446 * Returns "Mlym" given USCRIPT_MALAYALAM 477 * Returns the 4-letter ISO 15924 script code, 478 * which is the same as the short Unicode script name if Unicode has names for the script. 479 * Returns "Mlym" given USCRIPT_MALAYALAM. 480 * 447 481 * @param scriptCode UScriptCode enum 448 * @return script abbreviated name as given in 449 * PropertyValueAliases.txt, or NULL if scriptCode is invalid 482 * @return short script name (4-letter code), or NULL if scriptCode is invalid 450 483 * @stable ICU 2.4 451 484 */ … … 518 551 UErrorCode *errorCode); 519 552 520 #ifndef U_HIDE_DRAFT_API521 522 553 /** 523 554 * Script usage constants. … … 525 556 * http://www.unicode.org/reports/tr31/#Table_Candidate_Characters_for_Exclusion_from_Identifiers 526 557 * 527 * @ draftICU 51558 * @stable ICU 51 528 559 */ 529 560 typedef enum UScriptUsage { 530 /** Not encoded in Unicode. @ draftICU 51 */561 /** Not encoded in Unicode. @stable ICU 51 */ 531 562 USCRIPT_USAGE_NOT_ENCODED, 532 /** Unknown script usage. @ draftICU 51 */563 /** Unknown script usage. @stable ICU 51 */ 533 564 USCRIPT_USAGE_UNKNOWN, 534 /** Candidate for Exclusion from Identifiers. @ draftICU 51 */565 /** Candidate for Exclusion from Identifiers. @stable ICU 51 */ 535 566 USCRIPT_USAGE_EXCLUDED, 536 /** Limited Use script. @ draftICU 51 */567 /** Limited Use script. @stable ICU 51 */ 537 568 USCRIPT_USAGE_LIMITED_USE, 538 /** Aspirational Use script. @ draftICU 51 */569 /** Aspirational Use script. @stable ICU 51 */ 539 570 USCRIPT_USAGE_ASPIRATIONAL, 540 /** Recommended script. @ draftICU 51 */571 /** Recommended script. @stable ICU 51 */ 541 572 USCRIPT_USAGE_RECOMMENDED 542 573 } UScriptUsage; … … 552 583 * @param pErrorCode standard ICU in/out error code, must pass U_SUCCESS() on input 553 584 * @return the string length, even if U_BUFFER_OVERFLOW_ERROR 554 * @ draftICU 51555 */ 556 U_ DRAFTint32_t U_EXPORT2585 * @stable ICU 51 586 */ 587 U_STABLE int32_t U_EXPORT2 557 588 uscript_getSampleString(UScriptCode script, UChar *dest, int32_t capacity, UErrorCode *pErrorCode); 558 589 … … 570 601 * @param script script code 571 602 * @return the sample character string 572 * @ draftICU 51603 * @stable ICU 51 573 604 */ 574 605 U_COMMON_API icu::UnicodeString U_EXPORT2 … … 584 615 * @return script usage 585 616 * @see UScriptUsage 586 * @ draftICU 51587 */ 588 U_ DRAFTUScriptUsage U_EXPORT2617 * @stable ICU 51 618 */ 619 U_STABLE UScriptUsage U_EXPORT2 589 620 uscript_getUsage(UScriptCode script); 590 621 … … 595 626 * @param script script code 596 627 * @return TRUE if the script is right-to-left 597 * @ draftICU 51598 */ 599 U_ DRAFTUBool U_EXPORT2628 * @stable ICU 51 629 */ 630 U_STABLE UBool U_EXPORT2 600 631 uscript_isRightToLeft(UScriptCode script); 601 632 … … 607 638 * @param script script code 608 639 * @return TRUE if the script allows line breaks between letters 609 * @ draftICU 51610 */ 611 U_ DRAFTUBool U_EXPORT2640 * @stable ICU 51 641 */ 642 U_STABLE UBool U_EXPORT2 612 643 uscript_breaksBetweenLetters(UScriptCode script); 613 644 … … 618 649 * @param script script code 619 650 * @return TRUE if the script is cased 620 * @ draftICU 51621 */ 622 U_ DRAFTUBool U_EXPORT2651 * @stable ICU 51 652 */ 653 U_STABLE UBool U_EXPORT2 623 654 uscript_isCased(UScriptCode script); 624 655 625 #endif /* U_HIDE_DRAFT_API */626 627 656 #endif -
trunk/Source/JavaScriptCore/icu/unicode/uset.h
r196492 r215722 2 2 ******************************************************************************* 3 3 * 4 * Copyright (C) 2002-201 2, International Business Machines4 * Copyright (C) 2002-2014, International Business Machines 5 5 * Corporation and others. All Rights Reserved. 6 6 * … … 99 99 * The functionality is straightforward for sets with only single code points, 100 100 * without strings (which is the common case): 101 * - USET_SPAN_CONTAINED and USET_SPAN_SIMPLE 102 * work the same.101 * - USET_SPAN_CONTAINED and USET_SPAN_SIMPLE work the same. 102 * - USET_SPAN_CONTAINED and USET_SPAN_SIMPLE are inverses of USET_SPAN_NOT_CONTAINED. 103 103 * - span() and spanBack() partition any string the same way when 104 104 * alternating between span(USET_SPAN_NOT_CONTAINED) and … … 150 150 typedef enum USetSpanCondition { 151 151 /** 152 * Continue a span() while there is no set element at the current position. 152 * Continues a span() while there is no set element at the current position. 153 * Increments by one code point at a time. 153 154 * Stops before the first set element (character or string). 154 155 * (For code points only, this is like while contains(current)==FALSE). … … 162 163 USET_SPAN_NOT_CONTAINED = 0, 163 164 /** 164 * Continue a span() while there is a set element at the current position.165 * Spans the longest substring that is a concatenation of set elements (characters or strings). 165 166 * (For characters only, this is like while contains(current)==TRUE). 166 167 * … … 168 169 * it returned consists only of set elements (characters or strings) that are in the set. 169 170 * 170 * If a set contains strings, then the span will be the longest substring 171 * matching any of the possible concatenationsof set elements (characters or strings).172 * (There must be a single, non-overlapping concatenation of characters or strings.)173 * This is equivalent to a POSIX regular expression for (OR of each set element)*.171 * If a set contains strings, then the span will be the longest substring for which there 172 * exists at least one non-overlapping concatenation of set elements (characters or strings). 173 * This is equivalent to a POSIX regular expression for <code>(OR of each set element)*</code>. 174 * (Java/ICU/Perl regex stops at the first match of an OR.) 174 175 * 175 176 * @stable ICU 3.8 … … 177 178 USET_SPAN_CONTAINED = 1, 178 179 /** 179 * Continue a span() while there is a set element at the current position. 180 * Continues a span() while there is a set element at the current position. 181 * Increments by the longest matching element at each position. 180 182 * (For characters only, this is like while contains(current)==TRUE). 181 183 * -
trunk/Source/JavaScriptCore/icu/unicode/ustring.h
r196492 r215722 1 1 /* 2 2 ********************************************************************** 3 * Copyright (C) 1998-201 2, International Business Machines3 * Copyright (C) 1998-2014, International Business Machines 4 4 * Corporation and others. All Rights Reserved. 5 5 ********************************************************************** … … 1312 1312 /** 1313 1313 * Convert a UTF-16 string to UTF-8. 1314 * If the input string is not well-formed, then the U_INVALID_CHAR_FOUND error code is set.1315 1314 * 1316 1315 * Same as u_strToUTF8() except for the additional subchar which is output for … … 1357 1356 /** 1358 1357 * Convert a UTF-8 string to UTF-16. 1359 * If the input string is not well-formed, then the U_INVALID_CHAR_FOUND error code is set.1360 1358 * 1361 1359 * Same as u_strFromUTF8() except for the additional subchar which is output for … … 1522 1520 /** 1523 1521 * Convert a UTF-16 string to UTF-32. 1524 * If the input string is not well-formed, then the U_INVALID_CHAR_FOUND error code is set.1525 1522 * 1526 1523 * Same as u_strToUTF32() except for the additional subchar which is output for … … 1567 1564 /** 1568 1565 * Convert a UTF-32 string to UTF-16. 1569 * If the input string is not well-formed, then the U_INVALID_CHAR_FOUND error code is set.1570 1566 * 1571 1567 * Same as u_strFromUTF32() except for the additional subchar which is output for … … 1653 1649 /** 1654 1650 * Convert a Java Modified UTF-8 string to a 16-bit Unicode string. 1655 * If the input string is not well-formed, then the U_INVALID_CHAR_FOUND error code is set. 1651 * If the input string is not well-formed and no substitution char is specified, 1652 * then the U_INVALID_CHAR_FOUND error code is set. 1656 1653 * 1657 1654 * This function behaves according to the documentation for Java DataInput.readUTF() -
trunk/Source/JavaScriptCore/icu/unicode/utf8.h
r196492 r215722 2 2 ******************************************************************************* 3 3 * 4 * Copyright (C) 1999-201 3, International Business Machines4 * Copyright (C) 1999-2014, International Business Machines 5 5 * Corporation and others. All Rights Reserved. 6 6 * … … 79 79 */ 80 80 #define U8_COUNT_TRAIL_BYTES(leadByte) \ 81 (( leadByte)<0xf0 ? \82 (( leadByte)>=0xc0)+((leadByte)>=0xe0) : \83 ( leadByte)<0xfe ? 3+((leadByte)>=0xf8)+((leadByte)>=0xfc) : 0)81 ((uint8_t)(leadByte)<0xf0 ? \ 82 ((uint8_t)(leadByte)>=0xc0)+((uint8_t)(leadByte)>=0xe0) : \ 83 (uint8_t)(leadByte)<0xfe ? 3+((uint8_t)(leadByte)>=0xf8)+((uint8_t)(leadByte)>=0xfc) : 0) 84 84 85 85 /** … … 254 254 } 255 255 256 #ifndef U_HIDE_DRAFT_API257 256 /** 258 257 * Get a code point from a string at a random-access offset, … … 278 277 * @param c output UChar32 variable, set to U+FFFD in case of an error 279 278 * @see U8_GET 280 * @ draftICU 51279 * @stable ICU 51 281 280 */ 282 281 #define U8_GET_OR_FFFD(s, start, i, length, c) { \ … … 285 284 U8_NEXT_OR_FFFD(s, _u8_get_index, length, c); \ 286 285 } 287 #endif /* U_HIDE_DRAFT_API */288 286 289 287 /* definitions with forward iteration --------------------------------------- */ … … 369 367 } 370 368 371 #ifndef U_HIDE_DRAFT_API372 369 /** 373 370 * Get a code point from a string at a code point boundary offset, … … 392 389 * @param c output UChar32 variable, set to U+FFFD in case of an error 393 390 * @see U8_NEXT 394 * @ draftICU 51391 * @stable ICU 51 395 392 */ 396 393 #define U8_NEXT_OR_FFFD(s, i, length, c) { \ … … 420 417 } \ 421 418 } 422 #endif /* U_HIDE_DRAFT_API */423 419 424 420 /** … … 677 673 } 678 674 679 #ifndef U_HIDE_DRAFT_API680 675 /** 681 676 * Move the string offset from one code point boundary to the previous one … … 700 695 * @param c output UChar32 variable, set to U+FFFD in case of an error 701 696 * @see U8_PREV 702 * @ draftICU 51697 * @stable ICU 51 703 698 */ 704 699 #define U8_PREV_OR_FFFD(s, start, i, c) { \ … … 708 703 } \ 709 704 } 710 #endif /* U_HIDE_DRAFT_API */711 705 712 706 /** -
trunk/Source/JavaScriptCore/icu/unicode/utypes.h
r196492 r215722 1 1 /* 2 2 ********************************************************************** 3 * Copyright (C) 1996-201 2, International Business Machines3 * Copyright (C) 1996-2015, International Business Machines 4 4 * Corporation and others. All Rights Reserved. 5 5 ********************************************************************** … … 642 642 U_REGEX_LOOK_BEHIND_LIMIT, /**< Look-Behind pattern matches must have a bounded maximum length. */ 643 643 U_REGEX_SET_CONTAINS_STRING, /**< Regexps cannot have UnicodeSets containing strings.*/ 644 U_REGEX_OCTAL_TOO_BIG, /**< Octal character constants must be <= 0377. */ 645 U_REGEX_MISSING_CLOSE_BRACKET, /**< Missing closing bracket on a bracket expression. */ 644 #ifndef U_HIDE_DEPRECATED_API 645 U_REGEX_OCTAL_TOO_BIG, /**< Octal character constants must be <= 0377. @deprecated ICU 54. This error cannot occur. */ 646 #endif /* U_HIDE_DEPRECATED_API */ 647 U_REGEX_MISSING_CLOSE_BRACKET=U_REGEX_SET_CONTAINS_STRING+2, /**< Missing closing bracket on a bracket expression. */ 646 648 U_REGEX_INVALID_RANGE, /**< In a character range [x-y], x is greater than y. */ 647 649 U_REGEX_STACK_OVERFLOW, /**< Regular expression backtrack stack overflow. */ 648 650 U_REGEX_TIME_OUT, /**< Maximum allowed match time exceeded */ 649 651 U_REGEX_STOPPED_BY_CALLER, /**< Matching operation aborted by user callback fn. */ 650 U_REGEX_ERROR_LIMIT, /**< This must always be the last value to indicate the limit for regexp errors */ 652 #ifndef U_HIDE_DRAFT_API 653 U_REGEX_PATTERN_TOO_BIG, /**< Pattern exceeds limits on size or complexity. @draft ICU 55 */ 654 U_REGEX_INVALID_CAPTURE_GROUP_NAME, /**< Invalid capture group name. @draft ICU 55 */ 655 #endif /* U_HIDE_DRAFT_API */ 656 U_REGEX_ERROR_LIMIT=U_REGEX_STOPPED_BY_CALLER+3, /**< This must always be the last value to indicate the limit for regexp errors */ 651 657 652 658 /*
Note:
See TracChangeset
for help on using the changeset viewer.