equal
deleted
inserted
replaced
644 // Static Utility methods |
644 // Static Utility methods |
645 //-------------------------------------------------------------------------- |
645 //-------------------------------------------------------------------------- |
646 |
646 |
647 /** |
647 /** |
648 * Compose a string. |
648 * Compose a string. |
649 * The string will be composed to according the the specified mode. |
649 * The string will be composed according to the specified mode. |
650 * @param str The string to compose. |
650 * @param str The string to compose. |
651 * @param compat If true the string will be composed accoding to |
651 * @param compat If true the string will be composed according to |
652 * NFKC rules and if false will be composed according to |
652 * NFKC rules and if false will be composed according to |
653 * NFC rules. |
653 * NFC rules. |
654 * @param options The only recognized option is UNICODE_3_2 |
654 * @param options The only recognized option is UNICODE_3_2 |
655 * @return String The composed string |
655 * @return String The composed string |
656 * @stable ICU 2.6 |
656 * @stable ICU 2.6 |
692 private static final int MAX_BUF_SIZE_COMPOSE = 2; |
692 private static final int MAX_BUF_SIZE_COMPOSE = 2; |
693 private static final int MAX_BUF_SIZE_DECOMPOSE = 3; |
693 private static final int MAX_BUF_SIZE_DECOMPOSE = 3; |
694 |
694 |
695 /** |
695 /** |
696 * Decompose a string. |
696 * Decompose a string. |
697 * The string will be decomposed to according the the specified mode. |
697 * The string will be decomposed according to the specified mode. |
698 * @param str The string to decompose. |
698 * @param str The string to decompose. |
699 * @param compat If true the string will be decomposed accoding to NFKD |
699 * @param compat If true the string will be decomposed according to NFKD |
700 * rules and if false will be decomposed according to NFD |
700 * rules and if false will be decomposed according to NFD |
701 * rules. |
701 * rules. |
702 * @return String The decomposed string |
702 * @return String The decomposed string |
703 * @stable ICU 2.8 |
703 * @stable ICU 2.8 |
704 */ |
704 */ |
706 return decompose(str,compat,UNICODE_LATEST); |
706 return decompose(str,compat,UNICODE_LATEST); |
707 } |
707 } |
708 |
708 |
709 /** |
709 /** |
710 * Decompose a string. |
710 * Decompose a string. |
711 * The string will be decomposed to according the the specified mode. |
711 * The string will be decomposed according to the specified mode. |
712 * @param str The string to decompose. |
712 * @param str The string to decompose. |
713 * @param compat If true the string will be decomposed accoding to NFKD |
713 * @param compat If true the string will be decomposed according to NFKD |
714 * rules and if false will be decomposed according to NFD |
714 * rules and if false will be decomposed according to NFD |
715 * rules. |
715 * rules. |
716 * @param options The normalization options, ORed together (0 for no options). |
716 * @param options The normalization options, ORed together (0 for no options). |
717 * @return String The decomposed string |
717 * @return String The decomposed string |
718 * @stable ICU 2.6 |
718 * @stable ICU 2.6 |
754 } |
754 } |
755 } |
755 } |
756 |
756 |
757 /** |
757 /** |
758 * Normalize a string. |
758 * Normalize a string. |
759 * The string will be normalized according the the specified normalization |
759 * The string will be normalized according to the specified normalization |
760 * mode and options. |
760 * mode and options. |
761 * @param src The char array to compose. |
761 * @param src The char array to compose. |
762 * @param srcStart Start index of the source |
762 * @param srcStart Start index of the source |
763 * @param srcLimit Limit index of the source |
763 * @param srcLimit Limit index of the source |
764 * @param dest The char buffer to fill in |
764 * @param dest The char buffer to fill in |