Lines Matching refs:spaces
95 …ThaiWordbreakTest(const UChar *spaces, int32_t spaceCount, const UChar *noSpaces, int32_t noSpaceC…
120 static const UChar *crunchSpaces(const UChar *spaces, int32_t count, int32_t &nonSpaceCount);
132 UBool compareWordBreaks(const UChar *spaces, int32_t spaceCount,
161 ThaiWordbreakTest::ThaiWordbreakTest(const UChar *spaces, int32_t spaceCount, in ThaiWordbreakTest() argument
165 compareWordBreaks(spaces, spaceCount, noSpaces, noSpaceCount); in ThaiWordbreakTest()
216 UBool ThaiWordbreakTest::compareWordBreaks(const UChar *spaces, int32_t spaceCount, in compareWordBreaks() argument
227 SpaceBreakIterator spaceIter(spaces, spaceCount); in compareWordBreaks()
368 const UChar *ThaiWordbreakTest::crunchSpaces(const UChar *spaces, int32_t count, int32_t &nonSpaceC… in crunchSpaces() argument
374 if (spaces[i] == 0x0020 /*Unicode::isSpaceChar(spaces[i])*/) { in crunchSpaces()
388 if (spaces[i] != 0x0020 /*! Unicode::isSpaceChar(spaces[i])*/) { in crunchSpaces()
389 noSpaces[out++] = spaces[i]; in crunchSpaces()
467 const UChar *spaces, *noSpaces; in main() local
469 spaces = ThaiWordbreakTest::readFile(fileName, spaceCount); in main()
471 if (spaces == 0) { in main()
476 return generateFile(spaces, spaceCount); in main()
479 noSpaces = ThaiWordbreakTest::crunchSpaces(spaces, spaceCount, nonSpaceCount); in main()
485 ThaiWordbreakTest test(spaces, spaceCount, noSpaces, nonSpaceCount, verbose); in main()