ICU-2707 true/false -> TRUE/FALSE
X-SVN-Rev: 12437
This commit is contained in:
parent
5020c4ab6d
commit
0cf7d03b0a
@ -121,7 +121,7 @@ private:
|
||||
// spaceCount - the number of UChars in the spaces array
|
||||
// noSpaces - the address of the UChar array for the text without spaces
|
||||
// noSpaceCount - the number of UChars in the noSpaces array
|
||||
// returns - true if all breaks match, false otherwise
|
||||
// returns - true if all breaks match, FALSE otherwise
|
||||
UBool compareWordBreaks(const UChar *spaces, int32_t spaceCount,
|
||||
const UChar *noSpaces, int32_t noSpaceCount);
|
||||
|
||||
@ -209,7 +209,7 @@ inline int32_t ThaiWordbreakTest::getWordCount()
|
||||
UBool ThaiWordbreakTest::compareWordBreaks(const UChar *spaces, int32_t spaceCount,
|
||||
const UChar *noSpaces, int32_t noSpaceCount)
|
||||
{
|
||||
UBool result = true;
|
||||
UBool result = TRUE;
|
||||
Locale thai("th");
|
||||
UCharCharacterIterator *noSpaceIter = new UCharCharacterIterator(noSpaces, noSpaceCount);
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
@ -223,7 +223,7 @@ UBool ThaiWordbreakTest::compareWordBreaks(const UChar *spaces, int32_t spaceCou
|
||||
int32_t nextSpaceBreak = 0;
|
||||
int32_t iterCount = 0;
|
||||
|
||||
while (true) {
|
||||
while (TRUE) {
|
||||
nextSpaceBreak = spaceIter.next();
|
||||
nextBreak = breakIter->next();
|
||||
|
||||
@ -241,11 +241,11 @@ UBool ThaiWordbreakTest::compareWordBreaks(const UChar *spaces, int32_t spaceCou
|
||||
nextSpaceBreak != BreakIterator::DONE && nextBreak != BreakIterator::DONE) {
|
||||
if (nextSpaceBreak < nextBreak) {
|
||||
breakNotFound(nextSpaceBreak);
|
||||
result = false;
|
||||
result = FALSE;
|
||||
nextSpaceBreak = spaceIter.next();
|
||||
} else if (nextSpaceBreak > nextBreak) {
|
||||
foundInvalidBreak(nextBreak);
|
||||
result = false;
|
||||
result = FALSE;
|
||||
nextBreak = breakIter->next();
|
||||
}
|
||||
}
|
||||
@ -394,10 +394,10 @@ int main(int argc, char **argv)
|
||||
{
|
||||
char *fileName = "space.txt";
|
||||
int arg = 1;
|
||||
UBool verbose = false;
|
||||
UBool verbose = FALSE;
|
||||
|
||||
if (argc >= 2 && strcmp(argv[1], "-verbose") == 0) {
|
||||
verbose = true;
|
||||
verbose = TRUE;
|
||||
arg += 1;
|
||||
}
|
||||
|
||||
@ -439,7 +439,7 @@ int main(int argc, char **argv)
|
||||
* word instance of a BreakIterator.
|
||||
*/
|
||||
SpaceBreakIterator::SpaceBreakIterator(const UChar *text, int32_t count)
|
||||
: fBreakIter(0), fText(text), fTextCount(count), fWordCount(0), fSpaceCount(0), fDone(false)
|
||||
: fBreakIter(0), fText(text), fTextCount(count), fWordCount(0), fSpaceCount(0), fDone(FALSE)
|
||||
{
|
||||
UCharCharacterIterator *iter = new UCharCharacterIterator(text, count);
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
@ -474,7 +474,7 @@ int32_t SpaceBreakIterator::next()
|
||||
int32_t nextBreak = fBreakIter->next();
|
||||
|
||||
if (nextBreak == BreakIterator::DONE) {
|
||||
fDone = true;
|
||||
fDone = TRUE;
|
||||
return BreakIterator::DONE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user