Lines Matching refs:str1

266     string str1(short_str1);  in short_string()  local
267 str1 = long_str1; in short_string()
268 CPPUNIT_ASSERT(str1 == ref_long_str1); in short_string()
272 string str1(long_str1); in short_string() local
273 str1 = short_str1; in short_string()
274 CPPUNIT_ASSERT(str1 == ref_short_str1); in short_string()
503 string str1; in insert() local
506 str1.insert(pos, nb, '1'); in insert()
508 CPPUNIT_ASSERT( str1 == "11" ); in insert()
510 str0.insert(0, str1); in insert()
517 str1.insert(str1.begin() + 1, 2, '2'); in insert()
518 CPPUNIT_ASSERT( str1 == "1221" ); in insert()
520 str1.insert(2, "333333", 3); in insert()
521 CPPUNIT_ASSERT( str1 == "1233321" ); in insert()
523 str1.insert(4, "4444"); in insert()
524 CPPUNIT_ASSERT( str1 == "12334444321" ); in insert()
526 str1.insert(str1.begin() + 6, '5'); in insert()
527 CPPUNIT_ASSERT( str1 == "123344544321" ); in insert()
866 static string str1; in assign() local
870 str1 = "123456"; in assign()
874 CPPUNIT_ASSERT(str1[5] == '6'); in assign()
906 string str1("abcdef"); in compare() local
910 CPPUNIT_ASSERT( str1.compare(str2) == 0 ); in compare()
912 CPPUNIT_ASSERT( str1.compare(str2) > 0 ); in compare()
914 CPPUNIT_ASSERT( str1.compare(str2) < 0 ); in compare()
916 CPPUNIT_ASSERT( str1.compare("abcdef") == 0 ); in compare()
917 CPPUNIT_ASSERT( str1.compare("abcde") > 0 ); in compare()
918 CPPUNIT_ASSERT( str1.compare("abcdefg") < 0 ); in compare()
921 CPPUNIT_ASSERT( str1.compare(2, 3, str2) == 0 ); in compare()
923 CPPUNIT_ASSERT( str1.compare(2, 3, str2) > 0 ); in compare()
925 CPPUNIT_ASSERT( str1.compare(2, 3, str2) < 0 ); in compare()
928 CPPUNIT_ASSERT( str1.compare(2, 3, str2, 2, 3) == 0 ); in compare()
929 CPPUNIT_ASSERT( str1.compare(2, 3, str2, 2, 2) > 0 ); in compare()
930 CPPUNIT_ASSERT( str1.compare(2, 3, str2, 2, 4) < 0 ); in compare()
932 CPPUNIT_ASSERT( str1.compare(2, 3, "cdefgh", 3) == 0 ); in compare()
933 CPPUNIT_ASSERT( str1.compare(2, 3, "cdefgh", 2) > 0 ); in compare()
934 CPPUNIT_ASSERT( str1.compare(2, 3, "cdefgh", 4) < 0 ); in compare()
1312 StackString str1("string stack1", stack1); in allocator_with_state() local
1313 StackString str1Cpy(str1); in allocator_with_state()
1318 str1.swap(str2); in allocator_with_state()
1320 CPPUNIT_ASSERT( str1.get_allocator().swaped() ); in allocator_with_state()
1323 CPPUNIT_ASSERT( str1 == str2Cpy ); in allocator_with_state()
1325 CPPUNIT_ASSERT( str1.get_allocator() == stack2 ); in allocator_with_state()
1333 StackString str1("longer string from stack1 allocator instance for dynamic allocation", stack1); in allocator_with_state() local
1334 StackString str1Cpy(str1); in allocator_with_state()
1339 str1.swap(str2); in allocator_with_state()
1341 CPPUNIT_ASSERT( str1.get_allocator().swaped() ); in allocator_with_state()
1344 CPPUNIT_ASSERT( str1 == str2Cpy ); in allocator_with_state()
1346 CPPUNIT_ASSERT( str1.get_allocator() == stack2 ); in allocator_with_state()
1355 StackString str1("string stack1", stack1); in allocator_with_state() local
1356 StackString str1Cpy(str1); in allocator_with_state()
1361 str1.swap(str2); in allocator_with_state()
1363 CPPUNIT_ASSERT( str1.get_allocator().swaped() ); in allocator_with_state()
1366 CPPUNIT_ASSERT( str1 == str2Cpy ); in allocator_with_state()
1368 CPPUNIT_ASSERT( str1.get_allocator() == stack2 ); in allocator_with_state()
1377 StackString str1("longer string from stack1 allocator instance for dynamic allocation", stack1); in allocator_with_state() local
1378 StackString str1Cpy(str1); in allocator_with_state()
1383 str1.swap(str2); in allocator_with_state()
1385 CPPUNIT_ASSERT( str1.get_allocator().swaped() ); in allocator_with_state()
1388 CPPUNIT_ASSERT( str1 == str2Cpy ); in allocator_with_state()
1390 CPPUNIT_ASSERT( str1.get_allocator() == stack2 ); in allocator_with_state()