@@ -20,7 +20,7 @@ U_NAMESPACE_BEGIN
20
20
UBool
21
21
ByteSinkUtil::appendChange (int32_t length, const char16_t *s16, int32_t s16Length,
22
22
ByteSink &sink, Edits *edits, UErrorCode &errorCode) {
23
- if (U_FAILURE (errorCode)) { return FALSE ; }
23
+ if (U_FAILURE (errorCode)) { return false ; }
24
24
char scratch[200 ];
25
25
int32_t s8Length = 0 ;
26
26
for (int32_t i = 0 ; i < s16Length;) {
@@ -44,25 +44,25 @@ ByteSinkUtil::appendChange(int32_t length, const char16_t *s16, int32_t s16Lengt
44
44
}
45
45
if (j > (INT32_MAX - s8Length)) {
46
46
errorCode = U_INDEX_OUTOFBOUNDS_ERROR;
47
- return FALSE ;
47
+ return false ;
48
48
}
49
49
sink.Append (buffer, j);
50
50
s8Length += j;
51
51
}
52
52
if (edits != nullptr ) {
53
53
edits->addReplace (length, s8Length);
54
54
}
55
- return TRUE ;
55
+ return true ;
56
56
}
57
57
58
58
UBool
59
59
ByteSinkUtil::appendChange (const uint8_t *s, const uint8_t *limit,
60
60
const char16_t *s16, int32_t s16Length,
61
61
ByteSink &sink, Edits *edits, UErrorCode &errorCode) {
62
- if (U_FAILURE (errorCode)) { return FALSE ; }
62
+ if (U_FAILURE (errorCode)) { return false ; }
63
63
if ((limit - s) > INT32_MAX) {
64
64
errorCode = U_INDEX_OUTOFBOUNDS_ERROR;
65
- return FALSE ;
65
+ return false ;
66
66
}
67
67
return appendChange ((int32_t )(limit - s), s16, s16Length, sink, edits, errorCode);
68
68
}
@@ -109,16 +109,16 @@ UBool
109
109
ByteSinkUtil::appendUnchanged (const uint8_t *s, const uint8_t *limit,
110
110
ByteSink &sink, uint32_t options, Edits *edits,
111
111
UErrorCode &errorCode) {
112
- if (U_FAILURE (errorCode)) { return FALSE ; }
112
+ if (U_FAILURE (errorCode)) { return false ; }
113
113
if ((limit - s) > INT32_MAX) {
114
114
errorCode = U_INDEX_OUTOFBOUNDS_ERROR;
115
- return FALSE ;
115
+ return false ;
116
116
}
117
117
int32_t length = (int32_t )(limit - s);
118
118
if (length > 0 ) {
119
119
appendNonEmptyUnchanged (s, length, sink, options, edits);
120
120
}
121
- return TRUE ;
121
+ return true ;
122
122
}
123
123
124
124
CharStringByteSink::CharStringByteSink (CharString* dest) : dest_(*dest) {
0 commit comments