• Home
  • Raw
  • Download

Lines Matching refs:resultLen

630     int32_t resultLen = 0;  in UCharsToEscapedAscii()  local
640 for(i=0;i<limit && resultLen<buflen;++i) { in UCharsToEscapedAscii()
649 if(resultLen>escapeLimit1) { in UCharsToEscapedAscii()
652 resultChars[resultLen++]='\\'; in UCharsToEscapedAscii()
653 resultChars[resultLen++]=ESCAPE_MAP[j].escapedChar; in UCharsToEscapedAscii()
657 u_austrncpy(resultChars + resultLen, &uc, 1); in UCharsToEscapedAscii()
658 resultLen++; in UCharsToEscapedAscii()
662 if(resultLen>escapeLimit2) { in UCharsToEscapedAscii()
667 resultChars[resultLen++]='\\'; in UCharsToEscapedAscii()
668 resultChars[resultLen++]='u'; in UCharsToEscapedAscii()
669 resultChars[resultLen++]=HEX_DIGITS[(uc>>12)&0xff]; in UCharsToEscapedAscii()
670 resultChars[resultLen++]=HEX_DIGITS[(uc>>8)&0xff]; in UCharsToEscapedAscii()
671 resultChars[resultLen++]=HEX_DIGITS[(uc>>4)&0xff]; in UCharsToEscapedAscii()
672 resultChars[resultLen++]=HEX_DIGITS[uc&0xff]; in UCharsToEscapedAscii()
675 if(resultLen<buflen) { in UCharsToEscapedAscii()
676 resultChars[resultLen] = 0; in UCharsToEscapedAscii()
679 return resultLen; in UCharsToEscapedAscii()
1923 int32_t resultLen = 0; in TestKeywordVariants() local
1966 resultLen = uloc_getName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1967 (void)resultLen; in TestKeywordVariants()
1968 U_ASSERT(resultLen < 256); in TestKeywordVariants()
1985 resultLen = uloc_getBaseName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1986 U_ASSERT(resultLen < 256); in TestKeywordVariants()
2003 resultLen = uloc_canonicalize(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
2004 U_ASSERT(resultLen < 256); in TestKeywordVariants()
2037 int32_t resultLen = 0; in TestKeywordVariantParsing() local
2043resultLen = uloc_getKeywordValue(testCases[i].localeID, testCases[i].keyword, buffer, 256, &status… in TestKeywordVariantParsing()
2044 (void)resultLen; /* Suppress set but not used warning. */ in TestKeywordVariantParsing()
2151 int32_t resultLen = 0; in TestKeywordSet() local
2173resultLen = uloc_setKeywordValue(kwSetTestCases[i].k, kwSetTestCases[i].v, buffer, 1023, &status); in TestKeywordSet()
2176 } else if(strcmp(buffer,kwSetTestCases[i].x) || ((int32_t)strlen(buffer)!=resultLen)) { in TestKeywordSet()
2178 kwSetTestCases[i].v, buffer, resultLen, kwSetTestCases[i].x, strlen(buffer)); in TestKeywordSet()
2185resultLen = uloc_getKeywordValue(kwSetTestCases[i].x, kwSetTestCases[i].k, buffer, 1023, &status); in TestKeywordSet()
2188 …} else if (resultLen != (int32_t)uprv_strlen(kwSetTestCases[i].v) || uprv_strcmp(buffer, kwSetTest… in TestKeywordSet()
2189 … log_err("FAIL: #%d getKeywordValue: got %s (%d) expected %s (%d)\n", i, buffer, resultLen, in TestKeywordSet()
2196resultLen = uloc_setKeywordValue(kwSetTestCases[i].k, kwSetTestCases[i].v, buffer, 1023, &status); in TestKeywordSet()
2198 …case %d for setKeywordValue: expected to fail but succeeded, got %s (%d)\n", i, buffer, resultLen); in TestKeywordSet()
2204 resultLen = uloc_getKeywordValue(cbuffer, kwSetTestCases[i].k, buffer, 1023, &status); in TestKeywordSet()
2407 int32_t i, j, resultLen = 0, origResultLen; in TestCanonicalization() local
2428 resultLen = _canonicalize(j, testCases[i].localeID, buffer, sizeof(buffer), &status); in TestCanonicalization()
2441 if (resultLen != (int32_t)strlen(buffer)) { in TestCanonicalization()
2443 label[j], testCases[i].localeID, resultLen, strlen(buffer)); in TestCanonicalization()
2445 if (origResultLen != resultLen) { in TestCanonicalization()
2447 label[j], testCases[i].localeID, origResultLen, resultLen); in TestCanonicalization()