36class OPENCC_EXPORT Config {
42 ConverterPtr NewFromString(
const std::string& json,
43 const std::string& configDirectory);
45 ConverterPtr NewFromString(
const std::string& json,
46 const std::vector<std::string>& paths);
48 ConverterPtr NewFromString(
const std::string& json,
49 const std::vector<std::string>& paths,
52 ConverterPtr NewFromString(
const std::string& json,
53 std::shared_ptr<ResourceProvider> provider);
55 ConverterPtr NewFromString(
const std::string& json,
56 std::shared_ptr<ResourceProvider> provider,
59 ConverterPtr NewFromFile(
const std::string& fileName);
61 ConverterPtr NewFromFile(
const std::string& fileName,
62 std::shared_ptr<ResourceProvider> provider);
64 ConverterPtr NewFromFile(
const std::string& fileName,
65 std::shared_ptr<ResourceProvider> provider,
68 ConverterPtr NewFromFile(
const std::string& fileName,
69 const std::vector<std::string>& paths,
72 ConverterPtr NewFromFile(
const std::string& fileName,
73 const std::vector<std::string>& paths,