+UPerfTest::UPerfTest(int32_t argc, const char* argv[], UErrorCode& status)
+ : _argc(argc), _argv(argv), _addUsage(NULL),
+ ucharBuf(NULL), encoding(""),
+ uselen(FALSE),
+ fileName(NULL), sourceDir("."),
+ lines(NULL), numLines(0), line_mode(TRUE),
+ buffer(NULL), bufferLen(0),
+ verbose(FALSE), bulk_mode(FALSE),
+ passes(1), iterations(0), time(0),
+ locale(NULL) {
+ init(NULL, 0, status);
+}
+
+UPerfTest::UPerfTest(int32_t argc, const char* argv[],
+ UOption addOptions[], int32_t addOptionsCount,
+ const char *addUsage,
+ UErrorCode& status)
+ : _argc(argc), _argv(argv), _addUsage(addUsage),
+ ucharBuf(NULL), encoding(""),
+ uselen(FALSE),
+ fileName(NULL), sourceDir("."),
+ lines(NULL), numLines(0), line_mode(TRUE),
+ buffer(NULL), bufferLen(0),
+ verbose(FALSE), bulk_mode(FALSE),
+ passes(1), iterations(0), time(0),
+ locale(NULL) {
+ init(addOptions, addOptionsCount, status);
+}
+
+void UPerfTest::init(UOption addOptions[], int32_t addOptionsCount,
+ UErrorCode& status) {