Lines Matching refs:one
640 string s("one two three one two three");
641 CPPUNIT_ASSERT( s.find("one") == 0 );
653 CPPUNIT_ASSERT( s.find("one
763 string s("one two three one two three");
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);
994 string result(one + ' ' + two + ' ' + three, 4, 3);
999 CPPUNIT_CHECK( (' ' + one) == " one" );
1000 CPPUNIT_CHECK( (one + ' ') == "one " );
1001 CPPUNIT_CHECK( (one + " two") == "one two" );
1002 CPPUNIT_CHECK( ("one " + two) == "one two" );
1003 CPPUNIT_CHECK( (one + space) == "one " );
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" );
1010 CPPUNIT_CHECK( ((one + space) + 't') == "one t" );
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";
1040 CPPUNIT_ASSERT( result == "one twoth" );
1043 CPPUNIT_CHECK( result == "one twoth one twoth" );
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);
1058 result.assign(one + result + three);
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);
1178 wstring result(one + L' ' + two + L' ' + three, 4, 3);
1183 CPPUNIT_CHECK( (L' ' + one) == L" one" );
1184 CPPUNIT_CHECK( (one + L' ') == L"one " );
1185 CPPUNIT_CHECK( (one + L" two") == L"one two" );
1186 CPPUNIT_CHECK( (L"one " + two) == L"one two" );
1187 CPPUNIT_CHECK( (one + space) == L"one " );
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" );
1194 CPPUNIT_CHECK( ((one + space) + L't') == L"one t" );
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";
1224 CPPUNIT_ASSERT( result == L"one twoth" );
1227 CPPUNIT_CHECK( result == L"one twoth one twoth" );
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);
1242 result.assign(one + result + three);
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);