mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-11248 promote FilteredBreakIterator to draft
X-SVN-Rev: 37948
This commit is contained in:
parent
69543d559e
commit
9bb043757a
1 changed files with 8 additions and 10 deletions
|
@ -12,7 +12,6 @@
|
|||
#include "unicode/brkiter.h"
|
||||
|
||||
#if !UCONFIG_NO_BREAK_ITERATION && !UCONFIG_NO_FILTERED_BREAK_ITERATION
|
||||
#ifndef U_HIDE_INTERNAL_API
|
||||
|
||||
U_NAMESPACE_BEGIN
|
||||
|
||||
|
@ -30,13 +29,13 @@ U_NAMESPACE_BEGIN
|
|||
* but with "Mr." as an exception, a filtered break iterator
|
||||
* would consider the string "Mr. Smith" to be a single segment.
|
||||
*
|
||||
* @internal technology preview
|
||||
* @draft ICU 56
|
||||
*/
|
||||
class U_COMMON_API FilteredBreakIteratorBuilder : public UObject {
|
||||
public:
|
||||
/**
|
||||
* destructor.
|
||||
* @internal technology preview
|
||||
* @draft ICU 56
|
||||
*/
|
||||
virtual ~FilteredBreakIteratorBuilder();
|
||||
|
||||
|
@ -50,7 +49,7 @@ class U_COMMON_API FilteredBreakIteratorBuilder : public UObject {
|
|||
* @param where the locale.
|
||||
* @param status The error code.
|
||||
* @return the new builder
|
||||
* @internal technology preview
|
||||
* @draft ICU 56
|
||||
*/
|
||||
static FilteredBreakIteratorBuilder *createInstance(const Locale& where, UErrorCode& status);
|
||||
|
||||
|
@ -59,7 +58,7 @@ class U_COMMON_API FilteredBreakIteratorBuilder : public UObject {
|
|||
* In this state, it will not suppress any segment boundaries.
|
||||
* @param status The error code.
|
||||
* @return the new builder
|
||||
* @internal technology preview
|
||||
* @draft ICU 56
|
||||
*/
|
||||
static FilteredBreakIteratorBuilder *createInstance(UErrorCode &status);
|
||||
|
||||
|
@ -71,7 +70,7 @@ class U_COMMON_API FilteredBreakIteratorBuilder : public UObject {
|
|||
* @param status error code
|
||||
* @return returns TRUE if the string was not present and now added,
|
||||
* FALSE if the call was a no-op because the string was already being suppressed.
|
||||
* @internal technology preview
|
||||
* @draft ICU 56
|
||||
*/
|
||||
virtual UBool suppressBreakAfter(const UnicodeString& string, UErrorCode& status) = 0;
|
||||
|
||||
|
@ -84,7 +83,7 @@ class U_COMMON_API FilteredBreakIteratorBuilder : public UObject {
|
|||
* @param status error code
|
||||
* @return returns TRUE if the string was present and now removed,
|
||||
* FALSE if the call was a no-op because the string was not being suppressed.
|
||||
* @internal technology preview
|
||||
* @draft ICU 56
|
||||
*/
|
||||
virtual UBool unsuppressBreakAfter(const UnicodeString& string, UErrorCode& status) = 0;
|
||||
|
||||
|
@ -98,14 +97,14 @@ class U_COMMON_API FilteredBreakIteratorBuilder : public UObject {
|
|||
* @param adoptBreakIterator the break iterator to adopt
|
||||
* @param status error code
|
||||
* @return the new BreakIterator, owned by the caller.
|
||||
* @internal technology preview
|
||||
* @draft ICU 56
|
||||
*/
|
||||
virtual BreakIterator *build(BreakIterator* adoptBreakIterator, UErrorCode& status) = 0;
|
||||
|
||||
protected:
|
||||
/**
|
||||
* For subclass use
|
||||
* @internal technology preview
|
||||
* @draft ICU 56
|
||||
*/
|
||||
FilteredBreakIteratorBuilder();
|
||||
};
|
||||
|
@ -113,7 +112,6 @@ class U_COMMON_API FilteredBreakIteratorBuilder : public UObject {
|
|||
|
||||
U_NAMESPACE_END
|
||||
|
||||
#endif /* U_HIDE_INTERNAL_API */
|
||||
#endif // #if !UCONFIG_NO_BREAK_ITERATION && !UCONFIG_NO_FILTERED_BREAK_ITERATION
|
||||
|
||||
#endif // #ifndef FILTEREDBRK_H
|
||||
|
|
Loading…
Add table
Reference in a new issue