Lines Matching refs:chStr
482 CharString chStr(longStr, errorCode); in TestCharString() local
483 if (0 != strcmp(longStr, chStr.data()) || (int32_t)strlen(longStr) != chStr.length()) { in TestCharString()
488 copy.copyFrom(chStr, errorCode); in TestCharString()
492 StringPiece sp(chStr.toStringPiece()); in TestCharString()
494 chStr.append(sp, errorCode).append(chStr, errorCode); in TestCharString()
499 if (0 != strcmp(expected, chStr.data()) || (int32_t)strlen(expected) != chStr.length()) { in TestCharString()
502 chStr.clear().append("abc", errorCode).append("defghij", 3, errorCode); in TestCharString()
503 if (0 != strcmp("abcdef", chStr.data()) || 6 != chStr.length()) { in TestCharString()
506 chStr.appendInvariantChars(UNICODE_STRING_SIMPLE( in TestCharString()
511 if (0 != strcmp(expected, chStr.data()) || (int32_t)strlen(expected) != chStr.length()) { in TestCharString()
515 char *buffer = chStr.getAppendBuffer(5, 10, appendCapacity, errorCode); in TestCharString()
520 chStr.append(buffer, 5, errorCode); in TestCharString()
521 chStr.truncate(chStr.length()-3); in TestCharString()
523 if (0 != strcmp(expected, chStr.data()) || (int32_t)strlen(expected) != chStr.length()) { in TestCharString()
528 chStr.clear(); in TestCharString()
529 chStr.appendInvariantChars(UnicodeString("The '@' character is not invariant."), ec); in TestCharString()
533 if (chStr.length() != 0) { in TestCharString()
534 errln("%s:%d expected length() = 0, got %d", __FILE__, __LINE__, chStr.length()); in TestCharString()