Lines Matching refs:str2
513 string str2("2345"); in insert() local
514 str0.insert(str0.size(), str2, 1, 2); in insert()
867 static string str2; in assign() local
872 str2 = "1234567890123456789012345678901234567890"; in assign()
875 CPPUNIT_ASSERT(str2[29] == '0'); in assign()
907 string str2; in compare() local
909 str2 = "abcdef"; in compare()
910 CPPUNIT_ASSERT( str1.compare(str2) == 0 ); in compare()
911 str2 = "abcde"; in compare()
912 CPPUNIT_ASSERT( str1.compare(str2) > 0 ); in compare()
913 str2 = "abcdefg"; in compare()
914 CPPUNIT_ASSERT( str1.compare(str2) < 0 ); in compare()
920 str2 = "cde"; in compare()
921 CPPUNIT_ASSERT( str1.compare(2, 3, str2) == 0 ); in compare()
922 str2 = "cd"; in compare()
923 CPPUNIT_ASSERT( str1.compare(2, 3, str2) > 0 ); in compare()
924 str2 = "cdef"; in compare()
925 CPPUNIT_ASSERT( str1.compare(2, 3, str2) < 0 ); in compare()
927 str2 = "abcdef"; 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()
1315 StackString str2("string stack2", stack2); in allocator_with_state() local
1316 StackString str2Cpy(str2); in allocator_with_state()
1318 str1.swap(str2); in allocator_with_state()
1321 CPPUNIT_ASSERT( str2.get_allocator().swaped() ); in allocator_with_state()
1324 CPPUNIT_ASSERT( str2 == str1Cpy ); in allocator_with_state()
1326 CPPUNIT_ASSERT( str2.get_allocator() == stack1 ); in allocator_with_state()
1336 StackString str2("longer string from stack2 allocator instance for dynamic allocation", stack2); in allocator_with_state() local
1337 StackString str2Cpy(str2); in allocator_with_state()
1339 str1.swap(str2); in allocator_with_state()
1342 CPPUNIT_ASSERT( str2.get_allocator().swaped() ); in allocator_with_state()
1345 CPPUNIT_ASSERT( str2 == str1Cpy ); in allocator_with_state()
1347 CPPUNIT_ASSERT( str2.get_allocator() == stack1 ); in allocator_with_state()
1358 StackString str2("longer string from stack2 allocator instance for dynamic allocation", stack2); in allocator_with_state() local
1359 StackString str2Cpy(str2); in allocator_with_state()
1361 str1.swap(str2); in allocator_with_state()
1364 CPPUNIT_ASSERT( str2.get_allocator().swaped() ); in allocator_with_state()
1367 CPPUNIT_ASSERT( str2 == str1Cpy ); in allocator_with_state()
1369 CPPUNIT_ASSERT( str2.get_allocator() == stack1 ); in allocator_with_state()
1380 StackString str2("string stack2", stack2); in allocator_with_state() local
1381 StackString str2Cpy(str2); in allocator_with_state()
1383 str1.swap(str2); in allocator_with_state()
1386 CPPUNIT_ASSERT( str2.get_allocator().swaped() ); in allocator_with_state()
1389 CPPUNIT_ASSERT( str2 == str1Cpy ); in allocator_with_state()
1391 CPPUNIT_ASSERT( str2.get_allocator() == stack1 ); in allocator_with_state()