OLD | NEW |
1 /* | 1 /* |
2 ****************************************************************************** | 2 ****************************************************************************** |
3 * Copyright (C) 1996-2013, International Business Machines Corporation and other
s. | 3 * Copyright (C) 1996-2014, International Business Machines Corporation and other
s. |
4 * All Rights Reserved. | 4 * All Rights Reserved. |
5 ****************************************************************************** | 5 ****************************************************************************** |
6 */ | 6 */ |
7 | 7 |
8 #ifndef UBRK_H | 8 #ifndef UBRK_H |
9 #define UBRK_H | 9 #define UBRK_H |
10 | 10 |
11 #include "unicode/utypes.h" | 11 #include "unicode/utypes.h" |
12 #include "unicode/uloc.h" | 12 #include "unicode/uloc.h" |
13 #include "unicode/utext.h" | 13 #include "unicode/utext.h" |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 * @param bi The break iterator to use. | 371 * @param bi The break iterator to use. |
372 * @return The character index of the preceding text boundary, or UBRK_DONE | 372 * @return The character index of the preceding text boundary, or UBRK_DONE |
373 * if all text boundaries have been returned. | 373 * if all text boundaries have been returned. |
374 * @see ubrk_next | 374 * @see ubrk_next |
375 * @stable ICU 2.0 | 375 * @stable ICU 2.0 |
376 */ | 376 */ |
377 U_STABLE int32_t U_EXPORT2 | 377 U_STABLE int32_t U_EXPORT2 |
378 ubrk_previous(UBreakIterator *bi); | 378 ubrk_previous(UBreakIterator *bi); |
379 | 379 |
380 /** | 380 /** |
381 * Set the iterator position to the index of the first character in the text bei
ng scanned. | 381 * Set the iterator position to zero, the start of the text being scanned. |
382 * This is not always the same as index 0 of the text. | |
383 * @param bi The break iterator to use. | 382 * @param bi The break iterator to use. |
384 * @return The character index of the first character in the text being scanned. | 383 * @return The new iterator position (zero). |
385 * @see ubrk_last | 384 * @see ubrk_last |
386 * @stable ICU 2.0 | 385 * @stable ICU 2.0 |
387 */ | 386 */ |
388 U_STABLE int32_t U_EXPORT2 | 387 U_STABLE int32_t U_EXPORT2 |
389 ubrk_first(UBreakIterator *bi); | 388 ubrk_first(UBreakIterator *bi); |
390 | 389 |
391 /** | 390 /** |
392 * Set the iterator position to the index immediately <EM>beyond</EM> the last c
haracter in the text being scanned. | 391 * Set the iterator position to the index immediately <EM>beyond</EM> the last c
haracter in the text being scanned. |
393 * This is not the same as the last character. | 392 * This is not the same as the last character. |
394 * @param bi The break iterator to use. | 393 * @param bi The break iterator to use. |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 * @stable ICU 49 | 531 * @stable ICU 49 |
533 */ | 532 */ |
534 U_STABLE void U_EXPORT2 | 533 U_STABLE void U_EXPORT2 |
535 ubrk_refreshUText(UBreakIterator *bi, | 534 ubrk_refreshUText(UBreakIterator *bi, |
536 UText *text, | 535 UText *text, |
537 UErrorCode *status); | 536 UErrorCode *status); |
538 | 537 |
539 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */ | 538 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */ |
540 | 539 |
541 #endif | 540 #endif |
OLD | NEW |