OLD | NEW |
1 /* | 1 /* |
2 ******************************************************************************* | 2 ******************************************************************************* |
3 * Copyright (C) 1997-2011,2014 International Business Machines | 3 * Copyright (C) 1997-2011,2014-2015 International Business Machines |
4 * Corporation and others. All Rights Reserved. | 4 * Corporation and others. All Rights Reserved. |
5 ******************************************************************************* | 5 ******************************************************************************* |
6 * Date Name Description | 6 * Date Name Description |
7 * 06/21/00 aliu Creation. | 7 * 06/21/00 aliu Creation. |
8 ******************************************************************************* | 8 ******************************************************************************* |
9 */ | 9 */ |
10 | 10 |
11 #ifndef UTRANS_H | 11 #ifndef UTRANS_H |
12 #define UTRANS_H | 12 #define UTRANS_H |
13 | 13 |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 * @stable ICU 2.0 | 502 * @stable ICU 2.0 |
503 */ | 503 */ |
504 U_STABLE void U_EXPORT2 | 504 U_STABLE void U_EXPORT2 |
505 utrans_transIncrementalUChars(const UTransliterator* trans, | 505 utrans_transIncrementalUChars(const UTransliterator* trans, |
506 UChar* text, | 506 UChar* text, |
507 int32_t* textLength, | 507 int32_t* textLength, |
508 int32_t textCapacity, | 508 int32_t textCapacity, |
509 UTransPosition* pos, | 509 UTransPosition* pos, |
510 UErrorCode* status); | 510 UErrorCode* status); |
511 | 511 |
512 #ifndef U_HIDE_DRAFT_API | |
513 /** | 512 /** |
514 * Create a rule string that can be passed to utrans_openU to recreate this | 513 * Create a rule string that can be passed to utrans_openU to recreate this |
515 * transliterator. | 514 * transliterator. |
516 * | 515 * |
517 * @param trans The transliterator | 516 * @param trans The transliterator |
518 * @param escapeUnprintable if TRUE then convert unprintable characters to their | 517 * @param escapeUnprintable if TRUE then convert unprintable characters to their |
519 * hex escape representations, \\uxxxx or \\Uxxxxxxxx. | 518 * hex escape representations, \\uxxxx or \\Uxxxxxxxx. |
520 * Unprintable characters are those other than | 519 * Unprintable characters are those other than |
521 * U+000A, U+0020..U+007E. | 520 * U+000A, U+0020..U+007E. |
522 * @param result A pointer to a buffer to receive the rules. | 521 * @param result A pointer to a buffer to receive the rules. |
523 * @param resultLength The maximum size of result. | 522 * @param resultLength The maximum size of result. |
524 * @param status A pointer to the UErrorCode. In case of error status, the | 523 * @param status A pointer to the UErrorCode. In case of error status, the |
525 * contents of result are undefined. | 524 * contents of result are undefined. |
526 * @return int32_t The length of the rule string (may be greater than resultLe
ngth, | 525 * @return int32_t The length of the rule string (may be greater than resultLe
ngth, |
527 * in which case an error is returned). | 526 * in which case an error is returned). |
528 * @draft ICU 53 | 527 * @stable ICU 53 |
529 */ | 528 */ |
530 U_DRAFT int32_t U_EXPORT2 | 529 U_STABLE int32_t U_EXPORT2 |
531 utrans_toRules( const UTransliterator* trans, | 530 utrans_toRules( const UTransliterator* trans, |
532 UBool escapeUnprintable, | 531 UBool escapeUnprintable, |
533 UChar* result, int32_t resultLength, | 532 UChar* result, int32_t resultLength, |
534 UErrorCode* status); | 533 UErrorCode* status); |
535 | 534 |
536 /** | 535 /** |
537 * Returns the set of all characters that may be modified in the input text by | 536 * Returns the set of all characters that may be modified in the input text by |
538 * this UTransliterator, optionally ignoring the transliterator's current filter
. | 537 * this UTransliterator, optionally ignoring the transliterator's current filter
. |
539 * @param trans The transliterator. | 538 * @param trans The transliterator. |
540 * @param ignoreFilter If FALSE, the returned set incorporates the | 539 * @param ignoreFilter If FALSE, the returned set incorporates the |
541 * UTransliterator's current filter; if the filter is changed, | 540 * UTransliterator's current filter; if the filter is changed, |
542 * the return value of this function will change. If TRUE, the | 541 * the return value of this function will change. If TRUE, the |
543 * returned set ignores the effect of the UTransliterator's | 542 * returned set ignores the effect of the UTransliterator's |
544 * current filter. | 543 * current filter. |
545 * @param fillIn Pointer to a USet object to receive the modifiable character
s | 544 * @param fillIn Pointer to a USet object to receive the modifiable character
s |
546 * set. Previous contents of fillIn are lost. <em>If fillIn is | 545 * set. Previous contents of fillIn are lost. <em>If fillIn is |
547 * NULL, then a new USet is created and returned. The caller | 546 * NULL, then a new USet is created and returned. The caller |
548 * owns the result and must dispose of it by calling uset_close
.</em> | 547 * owns the result and must dispose of it by calling uset_close
.</em> |
549 * @param status A pointer to the UErrorCode. | 548 * @param status A pointer to the UErrorCode. |
550 * @return USet* Either fillIn, or if fillIn is NULL, a pointer to a | 549 * @return USet* Either fillIn, or if fillIn is NULL, a pointer to a |
551 * newly-allocated USet that the user must close. In case of | 550 * newly-allocated USet that the user must close. In case of |
552 * error, NULL is returned. | 551 * error, NULL is returned. |
553 * @draft ICU 53 | 552 * @stable ICU 53 |
554 */ | 553 */ |
555 U_DRAFT USet* U_EXPORT2 | 554 U_STABLE USet* U_EXPORT2 |
556 utrans_getSourceSet(const UTransliterator* trans, | 555 utrans_getSourceSet(const UTransliterator* trans, |
557 UBool ignoreFilter, | 556 UBool ignoreFilter, |
558 USet* fillIn, | 557 USet* fillIn, |
559 UErrorCode* status); | 558 UErrorCode* status); |
560 #endif /* U_HIDE_DRAFT_API */ | |
561 | 559 |
562 /* deprecated API ----------------------------------------------------------- */ | 560 /* deprecated API ----------------------------------------------------------- */ |
563 | 561 |
564 #ifndef U_HIDE_DEPRECATED_API | 562 #ifndef U_HIDE_DEPRECATED_API |
565 | 563 |
566 /* see utrans.h documentation for why these functions are deprecated */ | 564 /* see utrans.h documentation for why these functions are deprecated */ |
567 | 565 |
568 /** | 566 /** |
569 * Deprecated, use utrans_openU() instead. | 567 * Deprecated, use utrans_openU() instead. |
570 * Open a custom transliterator, given a custom rules string | 568 * Open a custom transliterator, given a custom rules string |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 U_DEPRECATED int32_t U_EXPORT2 | 647 U_DEPRECATED int32_t U_EXPORT2 |
650 utrans_getAvailableID(int32_t index, | 648 utrans_getAvailableID(int32_t index, |
651 char* buf, | 649 char* buf, |
652 int32_t bufCapacity); | 650 int32_t bufCapacity); |
653 | 651 |
654 #endif /* U_HIDE_DEPRECATED_API */ | 652 #endif /* U_HIDE_DEPRECATED_API */ |
655 | 653 |
656 #endif /* #if !UCONFIG_NO_TRANSLITERATION */ | 654 #endif /* #if !UCONFIG_NO_TRANSLITERATION */ |
657 | 655 |
658 #endif | 656 #endif |
OLD | NEW |