TLineReader * OpenConfiguredTextFile(const char *profile_key, const TCHAR *in_map_file, ConvertLineReader::charset cs) { assert(profile_key != NULL); assert(in_map_file != NULL); TLineReader *reader = OpenConfiguredTextFile(profile_key, cs); if (reader == NULL) reader = OpenMapTextFile(in_map_file, cs); return reader; }
TLineReader * OpenConfiguredTextFile(const char *profile_key, const char *in_map_file, Charset cs) { assert(profile_key != nullptr); assert(in_map_file != nullptr); TLineReader *reader = OpenConfiguredTextFile(profile_key, cs); if (reader == nullptr) reader = OpenMapTextFile(in_map_file, cs); return reader; }
std::unique_ptr<TLineReader> OpenConfiguredTextFile(const char *profile_key, const char *in_map_file, Charset cs) { assert(profile_key != nullptr); assert(in_map_file != nullptr); auto reader = OpenConfiguredTextFile(profile_key, cs); if (!reader) reader = OpenMapTextFile(in_map_file, cs); return reader; }