ICU 56.1  56.1
filteredbrk.h
Go to the documentation of this file.
1 /*
2 ********************************************************************************
3 * Copyright (C) 1997-2015, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 ********************************************************************************
6 */
7 
8 #ifndef FILTEREDBRK_H
9 #define FILTEREDBRK_H
10 
11 #include "unicode/utypes.h"
12 #include "unicode/brkiter.h"
13 
14 #if !UCONFIG_NO_BREAK_ITERATION && !UCONFIG_NO_FILTERED_BREAK_ITERATION
15 
16 #ifndef U_HIDE_DRAFT_API
17 
19 
37  public:
43 
56  static FilteredBreakIteratorBuilder *createInstance(const Locale& where, UErrorCode& status);
57 
65  static FilteredBreakIteratorBuilder *createInstance(UErrorCode &status);
66 
77  virtual UBool suppressBreakAfter(const UnicodeString& string, UErrorCode& status) = 0;
78 
90  virtual UBool unsuppressBreakAfter(const UnicodeString& string, UErrorCode& status) = 0;
91 
104  virtual BreakIterator *build(BreakIterator* adoptBreakIterator, UErrorCode& status) = 0;
105 
106  protected:
112 };
113 
114 
116 
117 #endif /* U_HIDE_DRAFT_API */
118 
119 #endif // #if !UCONFIG_NO_BREAK_ITERATION && !UCONFIG_NO_FILTERED_BREAK_ITERATION
120 
121 #endif // #ifndef FILTEREDBRK_H
C++ API: Break Iterator.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition: uversion.h:129
The BreakIterator class implements methods for finding the location of boundaries in text...
Definition: brkiter.h:100
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition: uversion.h:130
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Definition: utypes.h:476
Basic definitions for ICU, for both C and C++ APIs.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside...
Definition: utypes.h:357
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
Definition: unistr.h:293
The BreakIteratorFilter is used to modify the behavior of a BreakIterator by constructing a new Break...
Definition: filteredbrk.h:36
UObject is the common ICU "boilerplate" class.
Definition: uobject.h:221
int8_t UBool
The ICU boolean type.
Definition: umachine.h:234
A Locale object represents a specific geographical, political, or cultural region.
Definition: locid.h:185