Lines Matching refs:chStr
500 CharString chStr(longStr, errorCode); in TestCharString() local
501 if (0 != strcmp(longStr, chStr.data()) || (int32_t)strlen(longStr) != chStr.length()) { in TestCharString()
506 copy.copyFrom(chStr, errorCode); in TestCharString()
510 StringPiece sp(chStr.toStringPiece()); in TestCharString()
512 chStr.append(sp, errorCode).append(chStr, errorCode); in TestCharString()
517 if (0 != strcmp(expected, chStr.data()) || (int32_t)strlen(expected) != chStr.length()) { in TestCharString()
520 chStr.clear().append("abc", errorCode).append("defghij", 3, errorCode); in TestCharString()
521 if (0 != strcmp("abcdef", chStr.data()) || 6 != chStr.length()) { in TestCharString()
524 chStr.appendInvariantChars(UNICODE_STRING_SIMPLE( in TestCharString()
529 if (0 != strcmp(expected, chStr.data()) || (int32_t)strlen(expected) != chStr.length()) { in TestCharString()
533 char *buffer = chStr.getAppendBuffer(5, 10, appendCapacity, errorCode); in TestCharString()
538 chStr.append(buffer, 5, errorCode); in TestCharString()
539 chStr.truncate(chStr.length()-3); in TestCharString()
541 if (0 != strcmp(expected, chStr.data()) || (int32_t)strlen(expected) != chStr.length()) { in TestCharString()
546 chStr.clear(); in TestCharString()
547 chStr.appendInvariantChars(UnicodeString("The '@' character is not invariant."), ec); in TestCharString()
551 if (chStr.length() != 0) { in TestCharString()
552 errln("%s:%d expected length() = 0, got %d", __FILE__, __LINE__, chStr.length()); in TestCharString()