• Home
  • Raw
  • Download

Lines Matching refs:resultLen

617     int32_t resultLen = 0;  in UCharsToEscapedAscii()  local
627 for(i=0;i<limit && resultLen<buflen;++i) { in UCharsToEscapedAscii()
636 if(resultLen>escapeLimit1) { in UCharsToEscapedAscii()
639 resultChars[resultLen++]='\\'; in UCharsToEscapedAscii()
640 resultChars[resultLen++]=ESCAPE_MAP[j].escapedChar; in UCharsToEscapedAscii()
644 u_austrncpy(resultChars + resultLen, &uc, 1); in UCharsToEscapedAscii()
645 resultLen++; in UCharsToEscapedAscii()
649 if(resultLen>escapeLimit2) { in UCharsToEscapedAscii()
654 resultChars[resultLen++]='\\'; in UCharsToEscapedAscii()
655 resultChars[resultLen++]='u'; in UCharsToEscapedAscii()
656 resultChars[resultLen++]=HEX_DIGITS[(uc>>12)&0xff]; in UCharsToEscapedAscii()
657 resultChars[resultLen++]=HEX_DIGITS[(uc>>8)&0xff]; in UCharsToEscapedAscii()
658 resultChars[resultLen++]=HEX_DIGITS[(uc>>4)&0xff]; in UCharsToEscapedAscii()
659 resultChars[resultLen++]=HEX_DIGITS[uc&0xff]; in UCharsToEscapedAscii()
662 if(resultLen<buflen) { in UCharsToEscapedAscii()
663 resultChars[resultLen] = 0; in UCharsToEscapedAscii()
666 return resultLen; in UCharsToEscapedAscii()
1814 int32_t resultLen = 0; in TestKeywordVariants() local
1857 resultLen = uloc_getName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1858 (void)resultLen; in TestKeywordVariants()
1859 U_ASSERT(resultLen < 256); in TestKeywordVariants()
1876 resultLen = uloc_getBaseName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1877 U_ASSERT(resultLen < 256); in TestKeywordVariants()
1894 resultLen = uloc_canonicalize(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1895 U_ASSERT(resultLen < 256); in TestKeywordVariants()
1928 int32_t resultLen = 0; in TestKeywordVariantParsing() local
1934resultLen = uloc_getKeywordValue(testCases[i].localeID, testCases[i].keyword, buffer, 256, &status… in TestKeywordVariantParsing()
1935 (void)resultLen; /* Suppress set but not used warning. */ in TestKeywordVariantParsing()
2042 int32_t resultLen = 0; in TestKeywordSet() local
2064resultLen = uloc_setKeywordValue(kwSetTestCases[i].k, kwSetTestCases[i].v, buffer, 1023, &status); in TestKeywordSet()
2067 } else if(strcmp(buffer,kwSetTestCases[i].x) || ((int32_t)strlen(buffer)!=resultLen)) { in TestKeywordSet()
2069 kwSetTestCases[i].v, buffer, resultLen, kwSetTestCases[i].x, strlen(buffer)); in TestKeywordSet()
2076resultLen = uloc_getKeywordValue(kwSetTestCases[i].x, kwSetTestCases[i].k, buffer, 1023, &status); in TestKeywordSet()
2079 …} else if (resultLen != (int32_t)uprv_strlen(kwSetTestCases[i].v) || uprv_strcmp(buffer, kwSetTest… in TestKeywordSet()
2080 … log_err("FAIL: #%d getKeywordValue: got %s (%d) expected %s (%d)\n", i, buffer, resultLen, in TestKeywordSet()
2087resultLen = uloc_setKeywordValue(kwSetTestCases[i].k, kwSetTestCases[i].v, buffer, 1023, &status); in TestKeywordSet()
2089 …case %d for setKeywordValue: expected to fail but succeeded, got %s (%d)\n", i, buffer, resultLen); in TestKeywordSet()
2095 resultLen = uloc_getKeywordValue(cbuffer, kwSetTestCases[i].k, buffer, 1023, &status); in TestKeywordSet()
2298 int32_t i, j, resultLen = 0, origResultLen; in TestCanonicalization() local
2319 resultLen = _canonicalize(j, testCases[i].localeID, buffer, sizeof(buffer), &status); in TestCanonicalization()
2332 if (resultLen != (int32_t)strlen(buffer)) { in TestCanonicalization()
2334 label[j], testCases[i].localeID, resultLen, strlen(buffer)); in TestCanonicalization()
2336 if (origResultLen != resultLen) { in TestCanonicalization()
2338 label[j], testCases[i].localeID, origResultLen, resultLen); in TestCanonicalization()