Home | History | Annotate | Download | only in intltest

Lines Matching refs:buffer

357     char buffer[20];
358 buffer[4] = '!';
359 SimpleByteSink sink(buffer);
362 if(!(sink.length() == 4 && 0 == memcmp("abcz", buffer, 4) && buffer[4] == '!')) {
380 errln("ByteSink.GetAppendBuffer() did not properly return the scratch buffer");
386 char buffer[20]; // < 26 for the test code to work
387 buffer[3] = '!';
388 CheckedArrayByteSink sink(buffer, (int32_t)sizeof(buffer));
391 0 == memcmp("abc", buffer, 3) && buffer[3] == '!') &&
410 if(dest != buffer + 3 || capacity != (int32_t)sizeof(buffer) - 3) {
411 errln("CheckedArrayByteSink.GetAppendBuffer() did not properly return its own buffer");
417 0 == memcmp("abcdefghijklm", buffer, 13) &&
420 errln("CheckedArrayByteSink did not Append(its own buffer) as expected");
425 errln("CheckedArrayByteSink.GetAppendBuffer() did not properly return the scratch buffer");
430 sink.NumberOfBytesWritten() == (int32_t)sizeof(buffer) &&
431 0 == memcmp("abcdefghijklmnopqrstuvwxyz", buffer, (int32_t)sizeof(buffer)) &&
434 errln("CheckedArrayByteSink did not Append(scratch buffer) as expected");
439 0 == memcmp("123defghijklmnopqrstuvwxyz", buffer, (int32_t)sizeof(buffer)) &&
479 "This is a long string that is meant to cause reallocation of the internal buffer of CharString.";
505 "This is a long string that is meant to cause reallocation of the internal buffer of CharString."),
513 char *buffer = chStr.getAppendBuffer(5, 10, appendCapacity, errorCode);
517 memcpy(buffer, "*****", 5);
518 chStr.append(buffer, 5, errorCode);