Lines Matching refs:resultLen

608     int32_t resultLen = 0;  in UCharsToEscapedAscii()  local
618 for(i=0;i<limit && resultLen<buflen;++i) { in UCharsToEscapedAscii()
627 if(resultLen>escapeLimit1) { in UCharsToEscapedAscii()
630 resultChars[resultLen++]='\\'; in UCharsToEscapedAscii()
631 resultChars[resultLen++]=ESCAPE_MAP[j].escapedChar; in UCharsToEscapedAscii()
635 u_austrncpy(resultChars + resultLen, &uc, 1); in UCharsToEscapedAscii()
636 resultLen++; in UCharsToEscapedAscii()
640 if(resultLen>escapeLimit2) { in UCharsToEscapedAscii()
645 resultChars[resultLen++]='\\'; in UCharsToEscapedAscii()
646 resultChars[resultLen++]='u'; in UCharsToEscapedAscii()
647 resultChars[resultLen++]=HEX_DIGITS[(uc>>12)&0xff]; in UCharsToEscapedAscii()
648 resultChars[resultLen++]=HEX_DIGITS[(uc>>8)&0xff]; in UCharsToEscapedAscii()
649 resultChars[resultLen++]=HEX_DIGITS[(uc>>4)&0xff]; in UCharsToEscapedAscii()
650 resultChars[resultLen++]=HEX_DIGITS[uc&0xff]; in UCharsToEscapedAscii()
653 if(resultLen<buflen) { in UCharsToEscapedAscii()
654 resultChars[resultLen] = 0; in UCharsToEscapedAscii()
657 return resultLen; in UCharsToEscapedAscii()
1734 int32_t resultLen = 0; in TestKeywordVariants() local
1777 resultLen = uloc_getName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1794 resultLen = uloc_getBaseName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1811 resultLen = uloc_canonicalize(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1844 int32_t resultLen = 0; in TestKeywordVariantParsing() local
1850resultLen = uloc_getKeywordValue(testCases[i].localeID, testCases[i].keyword, buffer, 256, &status… in TestKeywordVariantParsing()
1851 (void)resultLen; /* Suppress set but not used warning. */ in TestKeywordVariantParsing()
1958 int32_t resultLen = 0; in TestKeywordSet() local
1980resultLen = uloc_setKeywordValue(kwSetTestCases[i].k, kwSetTestCases[i].v, buffer, 1023, &status); in TestKeywordSet()
1983 } else if(strcmp(buffer,kwSetTestCases[i].x) || ((int32_t)strlen(buffer)!=resultLen)) { in TestKeywordSet()
1985 kwSetTestCases[i].v, buffer, resultLen, kwSetTestCases[i].x, strlen(buffer)); in TestKeywordSet()
1992resultLen = uloc_getKeywordValue(kwSetTestCases[i].x, kwSetTestCases[i].k, buffer, 1023, &status); in TestKeywordSet()
1995 …} else if (resultLen != uprv_strlen(kwSetTestCases[i].v) || uprv_strcmp(buffer, kwSetTestCases[i].… in TestKeywordSet()
1996 … log_err("FAIL: #%d getKeywordValue: got %s (%d) expected %s (%d)\n", i, buffer, resultLen, in TestKeywordSet()
2003resultLen = uloc_setKeywordValue(kwSetTestCases[i].k, kwSetTestCases[i].v, buffer, 1023, &status); in TestKeywordSet()
2005 …case %d for setKeywordValue: expected to fail but succeeded, got %s (%d)\n", i, buffer, resultLen); in TestKeywordSet()
2011 resultLen = uloc_getKeywordValue(cbuffer, kwSetTestCases[i].k, buffer, 1023, &status); in TestKeywordSet()
2210 int32_t i, j, resultLen = 0, origResultLen; in TestCanonicalization() local
2231 resultLen = _canonicalize(j, testCases[i].localeID, buffer, sizeof(buffer), &status); in TestCanonicalization()
2244 if (resultLen != (int32_t)strlen(buffer)) { in TestCanonicalization()
2246 label[j], testCases[i].localeID, resultLen, strlen(buffer)); in TestCanonicalization()
2248 if (origResultLen != resultLen) { in TestCanonicalization()
2250 label[j], testCases[i].localeID, origResultLen, resultLen); in TestCanonicalization()