-
- int loops = LOOPS;
- if (bCatenatePrealloc) {
- int to_alloc = loops * MAXNUMLINES * (MAXSRCLEN + catenate_STRLEN);
- catICU = new UnicodeString(to_alloc,'a',0);
- //catICU = new UnicodeString();
-
- catStd = new stlstring();
- catStd -> reserve(loops * MAXNUMLINES * (MAXSRCLEN + catenate_STRLEN));
- //catStd -> reserve(110000000);
- } else {
- catICU = new UnicodeString();
- catStd = new stlstring();
- }
+
+ int loops = LOOPS;
+ if (bCatenatePrealloc) {
+ int to_alloc = loops * MAXNUMLINES * (MAXSRCLEN + catenate_STRLEN);
+ catICU = new UnicodeString(to_alloc,'a',0);
+ //catICU = new UnicodeString();
+
+ catStd = new stlstring();
+ catStd -> reserve(loops * MAXNUMLINES * (MAXSRCLEN + catenate_STRLEN));
+ //catStd -> reserve(110000000);
+ } else {
+ catICU = new UnicodeString();
+ catStd = new stlstring();
+ }
- TESTCASE(1, TestCtor1);
- TESTCASE(2, TestCtor2);
- TESTCASE(3, TestCtor3);
- TESTCASE(4, TestAssign);
- TESTCASE(5, TestAssign1);
- TESTCASE(6, TestAssign2);
- TESTCASE(7, TestGetch);
- TESTCASE(8, TestCatenate);
- TESTCASE(9, TestScan);
- TESTCASE(10, TestScan1);
- TESTCASE(11, TestScan2);
-
- TESTCASE(12, TestStdLibCtor);
- TESTCASE(13, TestStdLibCtor1);
- TESTCASE(14, TestStdLibCtor2);
- TESTCASE(15, TestStdLibCtor3);
- TESTCASE(16, TestStdLibAssign);
- TESTCASE(17, TestStdLibAssign1);
- TESTCASE(18, TestStdLibAssign2);
- TESTCASE(19, TestStdLibGetch);
- TESTCASE(20, TestStdLibCatenate);
- TESTCASE(21, TestStdLibScan);
- TESTCASE(22, TestStdLibScan1);
- TESTCASE(23, TestStdLibScan2);
+ TESTCASE(1, TestCtor1);
+ TESTCASE(2, TestCtor2);
+ TESTCASE(3, TestCtor3);
+ TESTCASE(4, TestAssign);
+ TESTCASE(5, TestAssign1);
+ TESTCASE(6, TestAssign2);
+ TESTCASE(7, TestGetch);
+ TESTCASE(8, TestCatenate);
+ TESTCASE(9, TestScan);
+ TESTCASE(10, TestScan1);
+ TESTCASE(11, TestScan2);
+
+ TESTCASE(12, TestStdLibCtor);
+ TESTCASE(13, TestStdLibCtor1);
+ TESTCASE(14, TestStdLibCtor2);
+ TESTCASE(15, TestStdLibCtor3);
+ TESTCASE(16, TestStdLibAssign);
+ TESTCASE(17, TestStdLibAssign1);
+ TESTCASE(18, TestStdLibAssign2);
+ TESTCASE(19, TestStdLibGetch);
+ TESTCASE(20, TestStdLibCatenate);
+ TESTCASE(21, TestStdLibScan);
+ TESTCASE(22, TestStdLibScan1);
+ TESTCASE(23, TestStdLibScan2);
- if (line_mode) {
- return new StringPerfFunction(ctor, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(ctor, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(ctor, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(ctor, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(ctor1, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(ctor1, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(ctor1, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(ctor1, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(ctor2, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(ctor2, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(ctor2, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(ctor2, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(ctor3, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(ctor3, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(ctor3, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(ctor3, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(assign, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(assign, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(assign, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(assign, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(assign1, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(assign1, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(assign1, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(assign1, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(assign2, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(assign2, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(assign2, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(assign2, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(getch, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(getch, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(getch, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(getch, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(catenate, filelines_, numLines, uselen);
- } else {
- //return new StringPerfFunction(catenate, buffer, bufferLen, uselen);
- return new StringPerfFunction(catenate, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(catenate, filelines_, numLines, uselen);
+ } else {
+ //return new StringPerfFunction(catenate, buffer, bufferLen, uselen);
+ return new StringPerfFunction(catenate, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(scan, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(scan, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(scan, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(scan, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(scan1, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(scan1, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(scan1, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(scan1, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(scan2, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(scan2, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(scan2, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(scan2, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(StdLibCtor, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(StdLibCtor, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(StdLibCtor, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(StdLibCtor, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(StdLibCtor1, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(StdLibCtor1, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(StdLibCtor1, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(StdLibCtor1, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(StdLibCtor2, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(StdLibCtor2, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(StdLibCtor2, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(StdLibCtor2, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(StdLibCtor3, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(StdLibCtor3, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(StdLibCtor3, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(StdLibCtor3, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(StdLibAssign, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(StdLibAssign, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(StdLibAssign, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(StdLibAssign, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(StdLibAssign1, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(StdLibAssign1, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(StdLibAssign1, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(StdLibAssign1, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(StdLibAssign2, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(StdLibAssign2, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(StdLibAssign2, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(StdLibAssign2, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(StdLibGetch, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(StdLibGetch, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(StdLibGetch, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(StdLibGetch, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(StdLibCatenate, filelines_, numLines, uselen);
- } else {
- //return new StringPerfFunction(StdLibCatenate, buffer, bufferLen, uselen);
- return new StringPerfFunction(StdLibCatenate, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(StdLibCatenate, filelines_, numLines, uselen);
+ } else {
+ //return new StringPerfFunction(StdLibCatenate, buffer, bufferLen, uselen);
+ return new StringPerfFunction(StdLibCatenate, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(StdLibScan, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(StdLibScan, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(StdLibScan, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(StdLibScan, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(StdLibScan1, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(StdLibScan1, StrBuffer, StrBufferLen, uselen);
- }
+ if (line_mode) {
+ return new StringPerfFunction(StdLibScan1, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(StdLibScan1, StrBuffer, StrBufferLen, uselen);
+ }
- if (line_mode) {
- return new StringPerfFunction(StdLibScan2, filelines_, numLines, uselen);
- } else {
- return new StringPerfFunction(StdLibScan2, StrBuffer, StrBufferLen, uselen);
- }
-}
\ No newline at end of file
+ if (line_mode) {
+ return new StringPerfFunction(StdLibScan2, filelines_, numLines, uselen);
+ } else {
+ return new StringPerfFunction(StdLibScan2, StrBuffer, StrBufferLen, uselen);
+ }
+}
+
+