File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
tensorflow_text/core/kernels Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 17
17
#include < iterator>
18
18
#include < string>
19
19
20
- #include " icu4c/source/common/unicode/appendable.h"
21
20
#include " icu4c/source/common/unicode/bytestream.h"
22
21
#include " icu4c/source/common/unicode/edits.h"
23
22
#include " icu4c/source/common/unicode/normalizer2.h"
@@ -40,11 +39,10 @@ namespace text {
40
39
41
40
std::string BuildWhitespaceString () {
42
41
icu::UnicodeString unicode_string;
43
- icu::UnicodeStringAppendable appendable_unicode_string (unicode_string);
44
42
// The maximum codepoint in Unicode is 0x0010FFFF.
45
43
for (UChar32 cp = 0 ; cp <= 0x0010FFFF ; ++cp) {
46
44
if (U_IS_UNICODE_CHAR (cp) && u_isUWhiteSpace (cp)) {
47
- appendable_unicode_string. appendCodePoint (cp);
45
+ unicode_string. append (cp);
48
46
}
49
47
}
50
48
std::string str;
You can’t perform that action at this time.
0 commit comments