Lines Matching full:substr
254 // substr() method with pos, using len=npos.
255 sp=abcd.substr(-1);
257 errln("abcd.substr(-1) failed");
259 sp=abcd.substr(5);
261 errln("abcd.substr(5) failed");
263 sp=abcd.substr(2);
265 errln("abcd.substr(-1) failed");
267 // substr() method with pos and len.
268 sp=abcd.substr(-1, 8);
270 errln("abcd.substr(-1, 8) failed");
272 sp=abcd.substr(5, 8);
274 errln("abcd.substr(5, 8) failed");
276 sp=abcd.substr(2, 8);
278 errln("abcd.substr(-1) failed");
280 sp=abcd.substr(2, -1);
282 errln("abcd.substr(5, -1) failed");