Lines Matching refs:substr
218 /* substr() and substrCP() functions */
220 CHECK_EQUAL(strTest.substr(0), "");
222 CHECK_EQUAL(strTest.substr(1), "");
229 CHECK_EQUAL(strTest.substr(0), strTest.c_str());
232 CHECK_EQUAL(strTest.substr(2), "cdefßäbcdef");
235 CHECK_EQUAL(strTest.substr(2, 2), "cd");
238 CHECK_EQUAL(strTest.substr(6), "ßäbcdef");
241 CHECK_EQUAL(strTest.substr(6, 2), "ß"); // UTF-8 "ß" consumes two bytes
244 CHECK_EQUAL(strTest.substr(8), "äbcdef"); // UTF-8 "ß" consumes two bytes
247 CHECK_EQUAL(strTest.substr(8, 3), "äb"); // UTF-8 "ä" consumes two bytes
250 CHECK_EQUAL(strTest.substr(14, 1), "f");
253 CHECK_EQUAL(strTest.substr(15, 1), "");
256 CHECK_EQUAL(strTest.substr(16, 1), "");
261 CHECK_EQUAL(strTest.substr(pos), "ßäbcdef");
269 CHECK_EQUAL_I(strTest.substr(pos).find("d"), 6);