Lines Matching refs:rTest
162 void doComplexCharSetTest(ComplexCharSetTest const & rTest) { in doComplexCharSetTest() argument
163 if (rTest.m_bForward) { in doComplexCharSetTest()
166 = rtl_createTextToUnicodeConverter(rTest.m_nEncoding); in doComplexCharSetTest()
175 reinterpret_cast< sal_Char const * >(rTest.m_pText), in doComplexCharSetTest()
176 rTest.m_nTextSize, aUnicode, TEST_STRING_SIZE, in doComplexCharSetTest()
181 | (rTest.m_bGlobalSignature ? in doComplexCharSetTest()
184 ASSERT_TRUE((nSize == rTest.m_nUnicodeSize && nInfo == 0 in doComplexCharSetTest()
185 && nConverted == rTest.m_nTextSize)) << "failure #11"; in doComplexCharSetTest()
189 for (sal_Size i = 0; i < rTest.m_nUnicodeSize; ++i) { in doComplexCharSetTest()
190 if (aUnicode[i] != rTest.m_aUnicode[i]) { in doComplexCharSetTest()
197 if (rTest.m_bForward) { in doComplexCharSetTest()
200 = rtl_createTextToUnicodeConverter(rTest.m_nEncoding); in doComplexCharSetTest()
207 for (bool bFlush = true; nInput < rTest.m_nTextSize || bFlush;) { in doComplexCharSetTest()
213 | (rTest.m_bGlobalSignature ? in doComplexCharSetTest()
215 if (nInput >= rTest.m_nTextSize) { in doComplexCharSetTest()
224 reinterpret_cast< sal_Char const * >(rTest.m_pText + nInput), in doComplexCharSetTest()
231 … ASSERT_TRUE(nOutput == rTest.m_nUnicodeSize && nInput == rTest.m_nTextSize) << "failure #15"; in doComplexCharSetTest()
233 for (sal_Size i = 0; i < rTest.m_nUnicodeSize; ++i) { in doComplexCharSetTest()
234 if (aUnicode[i] != rTest.m_aUnicode[i]) { in doComplexCharSetTest()
244 if (rTest.m_bNoContext && rTest.m_bForward) { in doComplexCharSetTest()
248 = rtl_createTextToUnicodeConverter(rTest.m_nEncoding); in doComplexCharSetTest()
251 if (i == rTest.m_nTextSize) { in doComplexCharSetTest()
254 sal_Char c1 = rTest.m_pText[i++]; in doComplexCharSetTest()
263 | (rTest.m_bGlobalSignature ? in doComplexCharSetTest()
273 if (i == rTest.m_nTextSize) { in doComplexCharSetTest()
276 c1 = rTest.m_pText[i++]; in doComplexCharSetTest()
283 | (rTest.m_bGlobalSignature ? in doComplexCharSetTest()
316 for (sal_Size i = 0; i < rTest.m_nUnicodeSize; ++i) { in doComplexCharSetTest()
317 if (aUnicode[i] != rTest.m_aUnicode[i]) { in doComplexCharSetTest()
324 if (rTest.m_bReverse) { in doComplexCharSetTest()
327 = rtl_createUnicodeToTextConverter(rTest.m_nEncoding); in doComplexCharSetTest()
335 aConverter, aContext, rTest.m_aUnicode, rTest.m_nUnicodeSize, aText, in doComplexCharSetTest()
337 (rTest.m_nReverseUndefined | RTL_UNICODETOTEXT_FLAGS_INVALID_ERROR in doComplexCharSetTest()
339 | (rTest.m_bGlobalSignature ? in doComplexCharSetTest()
342 ASSERT_TRUE((nSize == rTest.m_nTextSize in doComplexCharSetTest()
345 && (rTest.m_nReverseUndefined in doComplexCharSetTest()
347 && nConverted == rTest.m_nUnicodeSize)) << "failure #20"; in doComplexCharSetTest()
351 for (sal_Size i = 0; i < rTest.m_nTextSize; ++i) { in doComplexCharSetTest()
352 if (aText[i] != rTest.m_pText[i]) { in doComplexCharSetTest()
361 void doComplexCharSetCutTest(ComplexCharSetTest const & rTest) { in doComplexCharSetCutTest() argument
362 if (rTest.m_bNoContext) { in doComplexCharSetCutTest()
365 = rtl_createTextToUnicodeConverter(rTest.m_nEncoding); in doComplexCharSetCutTest()
371 aConverter, 0, reinterpret_cast< sal_Char const * >(rTest.m_pText), in doComplexCharSetCutTest()
372 rTest.m_nTextSize, aUnicode, TEST_STRING_SIZE, in doComplexCharSetCutTest()
377 ASSERT_TRUE((nSize <= rTest.m_nUnicodeSize in doComplexCharSetCutTest()
382 && nConverted < rTest.m_nTextSize)) << "failure #23"; in doComplexCharSetCutTest()
386 if (aUnicode[i] != rTest.m_aUnicode[i]) { in doComplexCharSetCutTest()