Lines Matching refs:resultLen
631 int32_t resultLen = 0; in UCharsToEscapedAscii() local
641 for(i=0;i<limit && resultLen<buflen;++i) { in UCharsToEscapedAscii()
650 if(resultLen>escapeLimit1) { in UCharsToEscapedAscii()
653 resultChars[resultLen++]='\\'; in UCharsToEscapedAscii()
654 resultChars[resultLen++]=ESCAPE_MAP[j].escapedChar; in UCharsToEscapedAscii()
658 u_austrncpy(resultChars + resultLen, &uc, 1); in UCharsToEscapedAscii()
659 resultLen++; in UCharsToEscapedAscii()
663 if(resultLen>escapeLimit2) { in UCharsToEscapedAscii()
668 resultChars[resultLen++]='\\'; in UCharsToEscapedAscii()
669 resultChars[resultLen++]='u'; in UCharsToEscapedAscii()
670 resultChars[resultLen++]=HEX_DIGITS[(uc>>12)&0xff]; in UCharsToEscapedAscii()
671 resultChars[resultLen++]=HEX_DIGITS[(uc>>8)&0xff]; in UCharsToEscapedAscii()
672 resultChars[resultLen++]=HEX_DIGITS[(uc>>4)&0xff]; in UCharsToEscapedAscii()
673 resultChars[resultLen++]=HEX_DIGITS[uc&0xff]; in UCharsToEscapedAscii()
676 if(resultLen<buflen) { in UCharsToEscapedAscii()
677 resultChars[resultLen] = 0; in UCharsToEscapedAscii()
680 return resultLen; in UCharsToEscapedAscii()
1924 int32_t resultLen = 0; in TestKeywordVariants() local
1967 resultLen = uloc_getName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1968 (void)resultLen; in TestKeywordVariants()
1969 U_ASSERT(resultLen < 256); in TestKeywordVariants()
1986 resultLen = uloc_getBaseName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1987 U_ASSERT(resultLen < 256); in TestKeywordVariants()
2004 resultLen = uloc_canonicalize(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
2005 U_ASSERT(resultLen < 256); in TestKeywordVariants()
2038 int32_t resultLen = 0; in TestKeywordVariantParsing() local
2044 …resultLen = uloc_getKeywordValue(testCases[i].localeID, testCases[i].keyword, buffer, 256, &status… in TestKeywordVariantParsing()
2045 (void)resultLen; /* Suppress set but not used warning. */ in TestKeywordVariantParsing()
2152 int32_t resultLen = 0; in TestKeywordSet() local
2174 … resultLen = uloc_setKeywordValue(kwSetTestCases[i].k, kwSetTestCases[i].v, buffer, 1023, &status); in TestKeywordSet()
2177 } else if(strcmp(buffer,kwSetTestCases[i].x) || ((int32_t)strlen(buffer)!=resultLen)) { in TestKeywordSet()
2179 kwSetTestCases[i].v, buffer, resultLen, kwSetTestCases[i].x, strlen(buffer)); in TestKeywordSet()
2186 … resultLen = uloc_getKeywordValue(kwSetTestCases[i].x, kwSetTestCases[i].k, buffer, 1023, &status); in TestKeywordSet()
2189 …} else if (resultLen != (int32_t)uprv_strlen(kwSetTestCases[i].v) || uprv_strcmp(buffer, kwSetTest… in TestKeywordSet()
2190 … log_err("FAIL: #%d getKeywordValue: got %s (%d) expected %s (%d)\n", i, buffer, resultLen, in TestKeywordSet()
2197 … resultLen = uloc_setKeywordValue(kwSetTestCases[i].k, kwSetTestCases[i].v, buffer, 1023, &status); in TestKeywordSet()
2199 …case %d for setKeywordValue: expected to fail but succeeded, got %s (%d)\n", i, buffer, resultLen); in TestKeywordSet()
2205 resultLen = uloc_getKeywordValue(cbuffer, kwSetTestCases[i].k, buffer, 1023, &status); in TestKeywordSet()
2408 int32_t i, j, resultLen = 0, origResultLen; in TestCanonicalization() local
2429 resultLen = _canonicalize(j, testCases[i].localeID, buffer, sizeof(buffer), &status); in TestCanonicalization()
2442 if (resultLen != (int32_t)strlen(buffer)) { in TestCanonicalization()
2444 label[j], testCases[i].localeID, resultLen, strlen(buffer)); in TestCanonicalization()
2446 if (origResultLen != resultLen) { in TestCanonicalization()
2448 label[j], testCases[i].localeID, origResultLen, resultLen); in TestCanonicalization()