• Home
  • Raw
  • Download

Lines Matching refs:resultLen

598     int32_t resultLen = 0;  in UCharsToEscapedAscii()  local
608 for(i=0;i<limit && resultLen<buflen;++i) { in UCharsToEscapedAscii()
617 if(resultLen>escapeLimit1) { in UCharsToEscapedAscii()
620 resultChars[resultLen++]='\\'; in UCharsToEscapedAscii()
621 resultChars[resultLen++]=ESCAPE_MAP[j].escapedChar; in UCharsToEscapedAscii()
625 u_austrncpy(resultChars + resultLen, &uc, 1); in UCharsToEscapedAscii()
626 resultLen++; in UCharsToEscapedAscii()
630 if(resultLen>escapeLimit2) { in UCharsToEscapedAscii()
635 resultChars[resultLen++]='\\'; in UCharsToEscapedAscii()
636 resultChars[resultLen++]='u'; in UCharsToEscapedAscii()
637 resultChars[resultLen++]=HEX_DIGITS[(uc>>12)&0xff]; in UCharsToEscapedAscii()
638 resultChars[resultLen++]=HEX_DIGITS[(uc>>8)&0xff]; in UCharsToEscapedAscii()
639 resultChars[resultLen++]=HEX_DIGITS[(uc>>4)&0xff]; in UCharsToEscapedAscii()
640 resultChars[resultLen++]=HEX_DIGITS[uc&0xff]; in UCharsToEscapedAscii()
643 if(resultLen<buflen) { in UCharsToEscapedAscii()
644 resultChars[resultLen] = 0; in UCharsToEscapedAscii()
647 return resultLen; in UCharsToEscapedAscii()
1724 int32_t resultLen = 0; in TestKeywordVariants() local
1767 resultLen = uloc_getName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1784 resultLen = uloc_getBaseName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1801 resultLen = uloc_canonicalize(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1835 int32_t resultLen = 0; in TestKeywordVariantParsing() local
1840resultLen = uloc_getKeywordValue(testCases[i].localeID, testCases[i].keyword, buffer, 256, &status… in TestKeywordVariantParsing()
1841 (void)resultLen; /* Suppress set but not used warning. */ in TestKeywordVariantParsing()
1904 int32_t resultLen = 0; in TestKeywordSet() local
1924resultLen = uloc_setKeywordValue(kwSetTestCases[i].k, kwSetTestCases[i].v, buffer, 1023, &status); in TestKeywordSet()
1929 if(strcmp(buffer,kwSetTestCases[i].x) || ((int32_t)strlen(buffer)!=resultLen)) { in TestKeywordSet()
1931 kwSetTestCases[i].v, buffer, resultLen, kwSetTestCases[i].x, strlen(buffer)); in TestKeywordSet()
2128 int32_t i, j, resultLen = 0, origResultLen; in TestCanonicalization() local
2149 resultLen = _canonicalize(j, testCases[i].localeID, buffer, sizeof(buffer), &status); in TestCanonicalization()
2162 if (resultLen != (int32_t)strlen(buffer)) { in TestCanonicalization()
2164 label[j], testCases[i].localeID, resultLen, strlen(buffer)); in TestCanonicalization()
2166 if (origResultLen != resultLen) { in TestCanonicalization()
2168 label[j], testCases[i].localeID, origResultLen, resultLen); in TestCanonicalization()