OLD | NEW |
1 /* | 1 /* |
2 ****************************************************************************** | 2 ****************************************************************************** |
3 * Copyright (C) 1996-2014, International Business Machines Corporation and | 3 * Copyright (C) 1996-2015, International Business Machines Corporation and |
4 * others. All Rights Reserved. | 4 * others. All Rights Reserved. |
5 ****************************************************************************** | 5 ****************************************************************************** |
6 */ | 6 */ |
7 | 7 |
8 /** | 8 /** |
9 * \file | 9 * \file |
10 * \brief C++ API: The RuleBasedCollator class implements the Collator abstract
base class. | 10 * \brief C++ API: The RuleBasedCollator class implements the Collator abstract
base class. |
11 */ | 11 */ |
12 | 12 |
13 /** | 13 /** |
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 * If that attribute is set to UCOL_NON_IGNORABLE, then the variable top has
no effect. | 524 * If that attribute is set to UCOL_NON_IGNORABLE, then the variable top has
no effect. |
525 * @param group one of UCOL_REORDER_CODE_SPACE, UCOL_REORDER_CODE_PUNCTUATIO
N, | 525 * @param group one of UCOL_REORDER_CODE_SPACE, UCOL_REORDER_CODE_PUNCTUATIO
N, |
526 * UCOL_REORDER_CODE_SYMBOL, UCOL_REORDER_CODE_CURRENCY; | 526 * UCOL_REORDER_CODE_SYMBOL, UCOL_REORDER_CODE_CURRENCY; |
527 * or UCOL_REORDER_CODE_DEFAULT to restore the default max vari
able group | 527 * or UCOL_REORDER_CODE_DEFAULT to restore the default max vari
able group |
528 * @param errorCode Standard ICU error code. Its input value must | 528 * @param errorCode Standard ICU error code. Its input value must |
529 * pass the U_SUCCESS() test, or else the function returns | 529 * pass the U_SUCCESS() test, or else the function returns |
530 * immediately. Check for U_FAILURE() on output or use with | 530 * immediately. Check for U_FAILURE() on output or use with |
531 * function chaining. (See User Guide for details.) | 531 * function chaining. (See User Guide for details.) |
532 * @return *this | 532 * @return *this |
533 * @see getMaxVariable | 533 * @see getMaxVariable |
534 * @draft ICU 53 | 534 * @stable ICU 53 |
535 */ | 535 */ |
536 virtual Collator &setMaxVariable(UColReorderCode group, UErrorCode &errorCod
e); | 536 virtual Collator &setMaxVariable(UColReorderCode group, UErrorCode &errorCod
e); |
537 | 537 |
538 /** | 538 /** |
539 * Returns the maximum reordering group whose characters are affected by UCO
L_ALTERNATE_HANDLING. | 539 * Returns the maximum reordering group whose characters are affected by UCO
L_ALTERNATE_HANDLING. |
540 * @return the maximum variable reordering group. | 540 * @return the maximum variable reordering group. |
541 * @see setMaxVariable | 541 * @see setMaxVariable |
542 * @draft ICU 53 | 542 * @stable ICU 53 |
543 */ | 543 */ |
544 virtual UColReorderCode getMaxVariable() const; | 544 virtual UColReorderCode getMaxVariable() const; |
545 | 545 |
546 /** | 546 /** |
547 * Sets the variable top to the primary weight of the specified string. | 547 * Sets the variable top to the primary weight of the specified string. |
548 * | 548 * |
549 * Beginning with ICU 53, the variable top is pinned to | 549 * Beginning with ICU 53, the variable top is pinned to |
550 * the top of one of the supported reordering groups, | 550 * the top of one of the supported reordering groups, |
551 * and it must not be beyond the last of those groups. | 551 * and it must not be beyond the last of those groups. |
552 * See setMaxVariable(). | 552 * See setMaxVariable(). |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 * @return Number of bytes needed for storing the sort key | 644 * @return Number of bytes needed for storing the sort key |
645 * @stable ICU 2.2 | 645 * @stable ICU 2.2 |
646 */ | 646 */ |
647 virtual int32_t getSortKey(const UChar *source, int32_t sourceLength, | 647 virtual int32_t getSortKey(const UChar *source, int32_t sourceLength, |
648 uint8_t *result, int32_t resultLength) const; | 648 uint8_t *result, int32_t resultLength) const; |
649 | 649 |
650 /** | 650 /** |
651 * Retrieves the reordering codes for this collator. | 651 * Retrieves the reordering codes for this collator. |
652 * @param dest The array to fill with the script ordering. | 652 * @param dest The array to fill with the script ordering. |
653 * @param destCapacity The length of dest. If it is 0, then dest may be NULL
and the function | 653 * @param destCapacity The length of dest. If it is 0, then dest may be NULL
and the function |
654 * will only return the length of the result without writing any of the res
ult string (pre-flighting). | 654 * will only return the length of the result without writing any codes (pre
-flighting). |
655 * @param status A reference to an error code value, which must not indicate | 655 * @param status A reference to an error code value, which must not indicate |
656 * a failure before the function call. | 656 * a failure before the function call. |
657 * @return The length of the script ordering array. | 657 * @return The length of the script ordering array. |
658 * @see ucol_setReorderCodes | 658 * @see ucol_setReorderCodes |
659 * @see Collator#getEquivalentReorderCodes | 659 * @see Collator#getEquivalentReorderCodes |
660 * @see Collator#setReorderCodes | 660 * @see Collator#setReorderCodes |
661 * @stable ICU 4.8 | 661 * @stable ICU 4.8 |
662 */ | 662 */ |
663 virtual int32_t getReorderCodes(int32_t *dest, | 663 virtual int32_t getReorderCodes(int32_t *dest, |
664 int32_t destCapacity, | 664 int32_t destCapacity, |
665 UErrorCode& status) const; | 665 UErrorCode& status) const; |
666 | 666 |
667 /** | 667 /** |
668 * Sets the ordering of scripts for this collator. | 668 * Sets the ordering of scripts for this collator. |
669 * @param reorderCodes An array of script codes in the new order. This can b
e NULL if the | 669 * @param reorderCodes An array of script codes in the new order. This can b
e NULL if the |
670 * length is also set to 0. An empty array will clear any reordering codes o
n the collator. | 670 * length is also set to 0. An empty array will clear any reordering codes o
n the collator. |
671 * @param reorderCodesLength The length of reorderCodes. | 671 * @param reorderCodesLength The length of reorderCodes. |
672 * @param status error code | 672 * @param status error code |
| 673 * @see ucol_setReorderCodes |
673 * @see Collator#getReorderCodes | 674 * @see Collator#getReorderCodes |
674 * @see Collator#getEquivalentReorderCodes | 675 * @see Collator#getEquivalentReorderCodes |
675 * @stable ICU 4.8 | 676 * @stable ICU 4.8 |
676 */ | 677 */ |
677 virtual void setReorderCodes(const int32_t* reorderCodes, | 678 virtual void setReorderCodes(const int32_t* reorderCodes, |
678 int32_t reorderCodesLength, | 679 int32_t reorderCodesLength, |
679 UErrorCode& status) ; | 680 UErrorCode& status) ; |
680 | 681 |
681 /** | 682 /** |
682 * Implements ucol_strcollUTF8(). | 683 * Implements ucol_strcollUTF8(). |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
864 Locale validLocale; | 865 Locale validLocale; |
865 uint32_t explicitlySetAttributes; | 866 uint32_t explicitlySetAttributes; |
866 | 867 |
867 UBool actualLocaleIsSameAsValid; | 868 UBool actualLocaleIsSameAsValid; |
868 }; | 869 }; |
869 | 870 |
870 U_NAMESPACE_END | 871 U_NAMESPACE_END |
871 | 872 |
872 #endif // !UCONFIG_NO_COLLATION | 873 #endif // !UCONFIG_NO_COLLATION |
873 #endif // TBLCOLL_H | 874 #endif // TBLCOLL_H |
OLD | NEW |