Lines Matching defs:two
640 string s("one two three one two three");
763 string s("one two three one two three");
765 CPPUNIT_ASSERT( s.rfind("two") == 18 );
766 CPPUNIT_ASSERT( s.rfind("two", 0) == string::npos );
767 CPPUNIT_ASSERT( s.rfind("two", 11) == 4 );
784 string s("one two three one two three");
802 string s("one two three one two three");
952 string one("one"), two("two"), three("three");
958 one == two;
959 one != two;
961 one == "two";
962 one != "two";
964 "one" == two;
965 "one" != two;
967 (one + two) == three;
968 (one + two) != three;
970 one == (two + three);
971 one != (two + three);
973 (one + two) == "three";
974 (one + two) != "three";
976 "one" == (two + three);
977 "one" != (two + three);
979 (one + two) == (two + three);
980 (one + two) != (two + three);
984 string result(one + ' ' + two + ' ' + three);
985 CPPUNIT_CHECK( result == "one two three" );
989 string result(one + ' ' + two + ' ' + three, 4);
990 CPPUNIT_CHECK( result == "two three" );
994 string result(one + ' ' + two + ' ' + three, 4, 3);
995 CPPUNIT_CHECK( result == "two" );
1001 CPPUNIT_CHECK( (one + " two") == "one two" );
1002 CPPUNIT_CHECK( ("one " + two) == "one two" );
1006 CPPUNIT_CHECK( ((one + space) + "two") == "one two" );
1007 CPPUNIT_CHECK( ("one" + (space + two)) == "one two" );
1008 CPPUNIT_CHECK( ((one + space) + two) == "one two" );
1009 CPPUNIT_CHECK( (one + (space + two)) == "one two" );
1011 CPPUNIT_CHECK( ('o' + (space + two)) == "o two" );
1014 CPPUNIT_CHECK( ((one + space) + (two + space)) == "one two " );
1019 result = one + space + two;
1020 CPPUNIT_CHECK( result == "one two" );
1023 CPPUNIT_CHECK( result == "one two three" );
1032 result.append(one + space + two);
1033 CPPUNIT_CHECK( result == "one two" );
1036 CPPUNIT_CHECK( result == "one two one two three" );
1038 result = "one two";
1052 result.assign(one + space + two + space + three);
1053 CPPUNIT_CHECK( result == "one two three" );
1055 result.assign(one + space + two + space + three, 3, 5);
1056 CPPUNIT_CHECK( result == " two " );
1059 CPPUNIT_CHECK( result == "one two three" );
1063 CPPUNIT_CHECK( !(one + ' ' + two).empty() );
1065 char result = (one + ' ' + two)[3];
1068 result = (one + ' ' + two).at(3);
1073 result = (one + ' ' + two).at(10);
1164 wstring one(L"one"), two(L"two"), three(L"three");
1168 wstring result(one + L' ' + two + L' ' + three);
1169 CPPUNIT_CHECK( result == L"one two three" );
1173 wstring result(one + L' ' + two + L' ' + three, 4);
1174 CPPUNIT_CHECK( result == L"two three" );
1178 wstring result(one + L' ' + two + L' ' + three, 4, 3);
1179 CPPUNIT_CHECK( result == L"two" );
1185 CPPUNIT_CHECK( (one + L" two") == L"one two" );
1186 CPPUNIT_CHECK( (L"one " + two) == L"one two" );
1190 CPPUNIT_CHECK( ((one + space) + L"two") == L"one two" );
1191 CPPUNIT_CHECK( (L"one" + (space + two)) == L"one two" );
1192 CPPUNIT_CHECK( ((one + space) + two) == L"one two" );
1193 CPPUNIT_CHECK( (one + (space + two)) == L"one two" );
1195 CPPUNIT_CHECK( (L'o' + (space + two)) == L"o two" );
1198 CPPUNIT_CHECK( ((one + space) + (two + space)) == L"one two " );
1203 result = one + space + two;
1204 CPPUNIT_CHECK( result == L"one two" );
1207 CPPUNIT_CHECK( result == L"one two three" );
1216 result.append(one + space + two);
1217 CPPUNIT_CHECK( result == L"one two" );
1220 CPPUNIT_CHECK( result == L"one two one two three" );
1222 result = L"one two";
1236 result.assign(one + space + two + space + three);
1237 CPPUNIT_CHECK( result == L"one two three" );
1239 result.assign(one + space + two + space + three, 3, 5);
1240 CPPUNIT_CHECK( result == L" two " );
1243 CPPUNIT_CHECK( result == L"one two three" );
1247 CPPUNIT_CHECK( !(one + L' ' + two).empty() );
1249 wchar_t result = (one + L' ' + two)[3];
1252 result = (one + L' ' + two).at(3);
1257 result = (one + L' ' + two).at(10);