Lines Matching refs:chStr
480 CharString chStr(longStr, errorCode); in TestCharString() local
481 if (0 != strcmp(longStr, chStr.data()) || (int32_t)strlen(longStr) != chStr.length()) { in TestCharString()
486 copy.copyFrom(chStr, errorCode); in TestCharString()
490 StringPiece sp(chStr.toStringPiece()); in TestCharString()
492 chStr.append(sp, errorCode).append(chStr, errorCode); in TestCharString()
497 if (0 != strcmp(expected, chStr.data()) || (int32_t)strlen(expected) != chStr.length()) { in TestCharString()
500 chStr.clear().append("abc", errorCode).append("defghij", 3, errorCode); in TestCharString()
501 if (0 != strcmp("abcdef", chStr.data()) || 6 != chStr.length()) { in TestCharString()
504 chStr.appendInvariantChars(UNICODE_STRING_SIMPLE( in TestCharString()
509 if (0 != strcmp(expected, chStr.data()) || (int32_t)strlen(expected) != chStr.length()) { in TestCharString()
513 char *buffer = chStr.getAppendBuffer(5, 10, appendCapacity, errorCode); in TestCharString()
518 chStr.append(buffer, 5, errorCode); in TestCharString()
519 chStr.truncate(chStr.length()-3); in TestCharString()
521 if (0 != strcmp(expected, chStr.data()) || (int32_t)strlen(expected) != chStr.length()) { in TestCharString()