Lines Matching refs:resultChars
588 static int32_t UCharsToEscapedAscii(const UChar* utext, int32_t len, char* resultChars, int32_t buf… in UCharsToEscapedAscii() argument
614 if(utext==NULL || resultChars==NULL || buflen<0) { 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()
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()
654 resultChars[resultLen] = 0; in UCharsToEscapedAscii()
767 char* resultChars=(char*)malloc(cap); in TestDisplayNames() local
768 int32_t resultCharsLen=UCharsToEscapedAscii(result, len, resultChars, cap); in TestDisplayNames()
773 locale, displayLocale, resultChars, expectedChars); in TestDisplayNames()
775 free(resultChars); in TestDisplayNames()
776 resultChars=NULL; in TestDisplayNames()