Home | History | Annotate | Download | only in unisetperf

Lines Matching refs:testcase

135     Command(const UnicodeSetPerformanceTest &testcase) : testcase(testcase) {}
145 return testcase.countInputCodePoints+testcase.spanCount-1;
149 return testcase.spanCount;
152 const UnicodeSetPerformanceTest &testcase;
157 Contains(const UnicodeSetPerformanceTest &testcase) : Command(testcase) {
163 if(testcase.set.contains(c)) {
167 if(set!=testcase.set) {
172 static UPerfFunction* get(const UnicodeSetPerformanceTest &testcase) {
173 return new Contains(testcase);
176 const UnicodeSet &set=testcase.set;
177 const UChar *s=testcase.getBuffer();
178 int32_t length=testcase.getBufferLen();
187 if(count!=testcase.spanCount) {
189 (long)count, (long)testcase.spanCount);
207 SpanUTF16(const UnicodeSetPerformanceTest &testcase) : Command(testcase) {
215 if(testcase.set.span(utf16, 1, USET_SPAN_CONTAINED)>0) {
223 if(testcase.set.span(utf16, 2, USET_SPAN_CONTAINED)>0) {
229 if(set!=testcase.set) {
234 static UPerfFunction* get(const UnicodeSetPerformanceTest &testcase) {
235 return new SpanUTF16(testcase);
238 const UnicodeSet &set=testcase.set;
239 const UChar *s=testcase.getBuffer();
240 int32_t length=testcase.getBufferLen();
249 if(count!=testcase.spanCount) {
251 (long)count, (long)testcase.spanCount);
258 SpanBackUTF16(const UnicodeSetPerformanceTest &testcase) : Command(testcase) {
266 if(testcase.set.spanBack(utf16, 1, USET_SPAN_CONTAINED)==0) {
274 if(testcase.set.spanBack(utf16, 2, USET_SPAN_CONTAINED)==0) {
280 if(set!=testcase.set) {
285 static UPerfFunction* get(const UnicodeSetPerformanceTest &testcase) {
286 return new SpanBackUTF16(testcase);
289 const UnicodeSet &set=testcase.set;
290 const UChar *s=testcase.getBuffer();
291 int32_t length=testcase.getBufferLen();
295 * If testcase.spanCount is an odd number, then the last span() was not-contained.
298 UBool tf=(UBool)((testcase.spanCount&1)==0);
304 if(count!=testcase.spanCount) {
306 (long)count, (long)testcase.spanCount);
313 SpanUTF8(const UnicodeSetPerformanceTest &testcase) : Command(testcase) {
326 if(testcase.set.spanUTF8(utf8, length, USET_SPAN_CONTAINED)>0) {
330 if(set!=testcase.set) {
335 static UPerfFunction* get(const UnicodeSetPerformanceTest &testcase) {
336 return new SpanUTF8(testcase);
339 const UnicodeSet &set=testcase.set;
340 const char *s=testcase.utf8;
341 int32_t length=testcase.utf8Length;
350 if(count!=testcase.spanCount) {
352 (long)count, (long)testcase.spanCount);
359 SpanBackUTF8(const UnicodeSetPerformanceTest &testcase) : Command(testcase) {
372 if(testcase.set.spanBackUTF8(utf8, length, USET_SPAN_CONTAINED)==0) {
376 if(set!=testcase.set) {
381 static UPerfFunction* get(const UnicodeSetPerformanceTest &testcase) {
382 return new SpanBackUTF8(testcase);
385 const UnicodeSet &set=testcase.set;
386 const char *s=testcase.utf8;
387 int32_t length=testcase.utf8Length;
391 * If testcase.spanCount is an odd number, then the last span() was not-contained.
394 UBool tf=(UBool)((testcase.spanCount&1)==0);
400 if(count!=testcase.spanCount) {
402 (long)count, (long)testcase.spanCount);