OLD | NEW |
1 /* | 1 /* |
2 *************************************************************************** | 2 *************************************************************************** |
3 * Copyright (C) 1999-2013 International Business Machines Corporation * | 3 * Copyright (C) 1999-2014 International Business Machines Corporation * |
4 * and others. All rights reserved. * | 4 * and others. All rights reserved. * |
5 *************************************************************************** | 5 *************************************************************************** |
6 | 6 |
7 ********************************************************************** | 7 ********************************************************************** |
8 * Date Name Description | 8 * Date Name Description |
9 * 10/22/99 alan Creation. | 9 * 10/22/99 alan Creation. |
10 * 11/11/99 rgillam Complete port from Java. | 10 * 11/11/99 rgillam Complete port from Java. |
11 ********************************************************************** | 11 ********************************************************************** |
12 */ | 12 */ |
13 | 13 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 * and then used via the abstract API in class BreakIterator</p> | 55 * and then used via the abstract API in class BreakIterator</p> |
56 * | 56 * |
57 * <p>See the ICU User Guide for information on Break Iterator Rules.</p> | 57 * <p>See the ICU User Guide for information on Break Iterator Rules.</p> |
58 * | 58 * |
59 * <p>This class is not intended to be subclassed. (Class DictionaryBasedBreakI
terator | 59 * <p>This class is not intended to be subclassed. (Class DictionaryBasedBreakI
terator |
60 * is a subclass, but that relationship is effectively internal to the ICU | 60 * is a subclass, but that relationship is effectively internal to the ICU |
61 * implementation. The subclassing interface to RulesBasedBreakIterator is | 61 * implementation. The subclassing interface to RulesBasedBreakIterator is |
62 * not part of the ICU API, and may not remain stable.</p> | 62 * not part of the ICU API, and may not remain stable.</p> |
63 * | 63 * |
64 */ | 64 */ |
65 class U_COMMON_API RuleBasedBreakIterator : public BreakIterator { | 65 class U_COMMON_API RuleBasedBreakIterator /*U_FINAL*/ : public BreakIterator { |
66 | 66 |
67 protected: | 67 protected: |
68 /** | 68 /** |
69 * The UText through which this BreakIterator accesses the text | 69 * The UText through which this BreakIterator accesses the text |
70 * @internal | 70 * @internal |
71 */ | 71 */ |
72 UText *fText; | 72 UText *fText; |
73 | 73 |
74 /** | 74 /** |
75 * A character iterator that refers to the same text as the UText, above. | 75 * A character iterator that refers to the same text as the UText, above. |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 * Utext that was passed as a parameter, but that the underlying text itself | 416 * Utext that was passed as a parameter, but that the underlying text itself |
417 * must not be altered while being referenced by the break iterator. | 417 * must not be altered while being referenced by the break iterator. |
418 * | 418 * |
419 * @param text The UText used to change the text. | 419 * @param text The UText used to change the text. |
420 * @param status Receives any error codes. | 420 * @param status Receives any error codes. |
421 * @stable ICU 3.4 | 421 * @stable ICU 3.4 |
422 */ | 422 */ |
423 virtual void setText(UText *text, UErrorCode &status); | 423 virtual void setText(UText *text, UErrorCode &status); |
424 | 424 |
425 /** | 425 /** |
426 * Sets the current iteration position to the beginning of the text. | 426 * Sets the current iteration position to the beginning of the text, positio
n zero. |
427 * @return The offset of the beginning of the text. | 427 * @return The offset of the beginning of the text, zero. |
428 * @stable ICU 2.0 | 428 * @stable ICU 2.0 |
429 */ | 429 */ |
430 virtual int32_t first(void); | 430 virtual int32_t first(void); |
431 | 431 |
432 /** | 432 /** |
433 * Sets the current iteration position to the end of the text. | 433 * Sets the current iteration position to the end of the text. |
434 * @return The text's past-the-end offset. | 434 * @return The text's past-the-end offset. |
435 * @stable ICU 2.0 | 435 * @stable ICU 2.0 |
436 */ | 436 */ |
437 virtual int32_t last(void); | 437 virtual int32_t last(void); |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 | 773 |
774 inline UBool RuleBasedBreakIterator::operator!=(const BreakIterator& that) const
{ | 774 inline UBool RuleBasedBreakIterator::operator!=(const BreakIterator& that) const
{ |
775 return !operator==(that); | 775 return !operator==(that); |
776 } | 776 } |
777 | 777 |
778 U_NAMESPACE_END | 778 U_NAMESPACE_END |
779 | 779 |
780 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */ | 780 #endif /* #if !UCONFIG_NO_BREAK_ITERATION */ |
781 | 781 |
782 #endif | 782 #endif |
OLD | NEW |