Lines Matching full:truncate
336 test2.truncate(1); // change only the length, not the buffer
914 returnVal = test1.truncate(15);
917 errln("truncate() failed: expected \"" + expectedValue + "\", got \"" + test1 + "\".");
919 returnVal = test2.truncate(15);
922 errln("truncate() failed: expected \"" + expectedValue + "\", got \"" + test2 + "\".");
924 returnVal = test3.truncate(15);
927 errln("truncate() failed: expected \"" + expectedValue + "\", got \"" + test3 + "\".");
1154 test1.truncate(36); // ensure length()<getCapacity()
1156 test1.truncate(5);
1158 errln("UnicodeString(shared buffer).truncate() failed");
1161 errln("UnicodeString(shared buffer).truncate().getTerminatedBuffer() "
1165 test1.truncate(36); // ensure length()<getCapacity()
1508 if(test3.truncate(1) || !test3.isBogus() || !test3.isEmpty()) {
1509 errln("bogus.truncate(1) revived bogus but must not");
1589 if(test3.truncate(0) || test3.isBogus() || !test3.isEmpty()) {
1590 errln("bogus.truncate(0) failed");
1946 alias.truncate(1);
1948 errln("UnicodeString(read-only-alias).truncate() did not preserve aliasing as expected.");
1951 errln("UnicodeString(read-only-alias).truncate().getTerminatedBuffer() "
1955 errln("UnicodeString(read-only-alias).truncate().getTerminatedBuffer() "
1959 errln("UnicodeString(read-only-alias).truncate().getTerminatedBuffer() "