Lines Matching refs:strs

58       string strs[] = {"abdd", "ab�d", "abbd", "abcd"};
62 transformed[i] = col.transform(strs[i].data(), strs[i].data() + strs[i].size());
65 sort(strs, strs + 4, loc);
66 CPPUNIT_ASSERT( strs[0] == "abbd" );
67 CPPUNIT_ASSERT( strs[1] == "abcd" );
68 CPPUNIT_ASSERT( strs[2] == "ab�d" );
69 CPPUNIT_ASSERT( strs[3] == "abdd" );
73 CPPUNIT_ASSERT( col.transform(strs[0].data(), strs[0].data() + strs[0].size()) == transformed[0] );
74 CPPUNIT_ASSERT( col.transform(strs[1].data(), strs[1].data() + strs[1].size()) == transformed[1] );
75 CPPUNIT_ASSERT( col.transform(strs[2].data(), strs[2].data() + strs[2].size()) == transformed[2] );
76 CPPUNIT_ASSERT( col.transform(strs[3].data(), strs[3].data() + strs[3].size()) == transformed[3] );
79 CPPUNIT_ASSERT( col.transform(strs[0].data(), strs[0].data()).empty() );
82 CPPUNIT_ASSERT( col.transform(strs[0].data(), strs[0].data() + 2) == col.transform(strs[1].data(), strs[1].data() + 2) );
109 wstring strs[] = {L"abdd", L"abcd", L"abbd", L"abcd"};
113 transformed[i] = col.transform(strs[i].data(), strs[i].data() + strs[i].size());
116 sort(strs, strs + 4, loc);
117 CPPUNIT_ASSERT( strs[0] == L"abbd" );
118 CPPUNIT_ASSERT( strs[1] == L"abcd" );
119 CPPUNIT_ASSERT( strs[2] == L"abcd" );
120 CPPUNIT_ASSERT( strs[3] == L"abdd" );
124 CPPUNIT_ASSERT( col.transform(strs[0].data(), strs[0].data() + strs[0].size()) == transformed[0] );
125 CPPUNIT_ASSERT( col.transform(strs[1].data(), strs[1].data() + strs[1].size()) == transformed[1] );
126 CPPUNIT_ASSERT( col.transform(strs[2].data(), strs[2].data() + strs[2].size()) == transformed[2] );
127 CPPUNIT_ASSERT( col.transform(strs[3].data(), strs[3].data() + strs[3].size()) == transformed[3] );
129 CPPUNIT_ASSERT( col.transform(strs[0].data(), strs[0].data()).empty() );
131 CPPUNIT_ASSERT( col.transform(strs[0].data(), strs[0].data() + 2) == col.transform(strs[1].data(), strs[1].data() + 2) );
234 string strs[] = {"abdd", /* "ab�d",*/ "abbd", "abcd"};
236 vector<string> v1(strs, strs + sizeof(strs) / sizeof(strs[0]));
238 vector<string> v2(strs, strs + sizeof(strs) / sizeof(strs[0]));