Home
last modified time | relevance | path

Searched refs:optionName (Results 1 – 2 of 2) sorted by relevance

/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
Darguments_parser.cpp53 const std::string &optionName = option.first; in printUsage() local
55 printf(" [-%s", optionName.c_str()); in printUsage()
74 const std::string &optionName = option.first; in printUsage() local
76 printf(" -%s", optionName.c_str()); in printUsage()
101 const std::string &optionName = entry.first; in parseArguments() local
105 options[optionName] = optionSpec.getDefaultValue(); in parseArguments()
114 const std::string optionName = arg.substr(1); in parseArguments() local
115 const auto it = mOptionSpecs.find(optionName); in parseArguments()
118 fprintf(stderr, "Unknown option: '%s'\n", optionName.c_str()); in parseArguments()
127 fprintf(stderr, "Missing argument for option '%s'\n", optionName.c_str()); in parseArguments()
[all …]
Darguments_and_options.h41 bool hasOption(const std::string &optionName) const { in hasOption() argument
42 return mOptions.find(optionName) != mOptions.end(); in hasOption()
45 const std::string &getOptionValue(const std::string &optionName) const { in getOptionValue() argument
46 const auto &it = mOptions.find(optionName); in getOptionValue()