ICU 54.1 54.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
filteredbrk.h
Go to the documentation of this file.
1 /*
2 ********************************************************************************
3 * Copyright (C) 1997-2014, 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 #ifndef U_HIDE_INTERNAL_API
16
17 U_NAMESPACE_BEGIN
18
47 class U_I18N_API FilteredBreakIteratorBuilder : public UObject {
48 public:
53 virtual ~FilteredBreakIteratorBuilder();
54
67 static FilteredBreakIteratorBuilder *createInstance(const Locale& where, UErrorCode& status);
68
76 static FilteredBreakIteratorBuilder *createInstance(UErrorCode &status);
77
88 virtual UBool suppressBreakAfter(const UnicodeString& string, UErrorCode& status) = 0;
89
101 virtual UBool unsuppressBreakAfter(const UnicodeString& string, UErrorCode& status) = 0;
102
115 virtual BreakIterator *build(BreakIterator* adoptBreakIterator, UErrorCode& status) = 0;
116
117 protected:
122 FilteredBreakIteratorBuilder();
123 };
124
125
126 U_NAMESPACE_END
127
128 #endif /* U_HIDE_INTERNAL_API */
129 #endif // #if !UCONFIG_NO_BREAK_ITERATION && !UCONFIG_NO_FILTERED_BREAK_ITERATION
130
131 #endif // #ifndef FILTEREDBRK_H