Searched refs:ArgumentSpec (Results 1 – 7 of 7) sorted by relevance
/packages/inputmethods/LatinIME/native/dicttoolkit/tests/utils/ |
D | arguments_parser_test.cpp | 28 std::vector<ArgumentSpec> argumentSpecs; in TEST() 35 const std::vector<ArgumentSpec> argumentSpecs = { in TEST() 36 ArgumentSpec::singleArgument("name", "description"), in TEST() 37 ArgumentSpec::variableLengthArguments("name2", 0 /* minCount */, 1 /* maxCount */, in TEST() 44 const std::vector<ArgumentSpec> argumentSpecs = { in TEST() 45 ArgumentSpec::variableLengthArguments("name", 0 /* minCount */, 0 /* maxCount */, in TEST() 52 const std::vector<ArgumentSpec> argumentSpecs = { in TEST() 53 ArgumentSpec::singleArgument("name", "description"), in TEST() 54 ArgumentSpec::variableLengthArguments("name", 0 /* minCount */, 1 /* maxCount */, in TEST() 61 const std::vector<ArgumentSpec> argumentSpecs = { in TEST() [all …]
|
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/ |
D | arguments_parser.h | 67 class ArgumentSpec { 71 static ArgumentSpec singleArgument(const std::string &name, const std::string &description) { in singleArgument() 72 return ArgumentSpec(name, 1 /* minCount */, 1 /* maxCount */, description); in singleArgument() 75 static ArgumentSpec variableLengthArguments(const std::string &name, const size_t minCount, in variableLengthArguments() 77 return ArgumentSpec(name, minCount, maxCount, description); in variableLengthArguments() 86 DISALLOW_DEFAULT_CONSTRUCTOR(ArgumentSpec); 88 ArgumentSpec(const std::string &name, const size_t minCount, const size_t maxCount, in ArgumentSpec() function 101 const std::vector<ArgumentSpec> &&argumentSpecs) in ArgumentsParser() 114 const std::vector<ArgumentSpec> mArgumentSpecs;
|
D | arguments_parser.cpp | 24 const size_t ArgumentSpec::UNLIMITED_COUNT = S_INT_MAX;
|
/packages/inputmethods/LatinIME/native/dicttoolkit/src/command_executors/ |
D | info_executor.cpp | 44 const std::vector<ArgumentSpec> argumentSpecs = { in getArgumentsParser() 45 ArgumentSpec::singleArgument("dict", "dictionary file name"), in getArgumentsParser() 46 ArgumentSpec::variableLengthArguments("word", 0 /* minCount */, in getArgumentsParser() 47 ArgumentSpec::UNLIMITED_COUNT, "word to show information") in getArgumentsParser()
|
D | diff_executor.cpp | 40 const std::vector<ArgumentSpec> argumentSpecs = { in getArgumentsParser() 41 ArgumentSpec::singleArgument("dict1", "dictionary file"), in getArgumentsParser() 42 ArgumentSpec::singleArgument("dict2", "dictionary file") in getArgumentsParser()
|
D | makedict_executor.cpp | 52 const std::vector<ArgumentSpec> argumentSpecs = { in getArgumentsParser() 53 ArgumentSpec::singleArgument("src_dict", "source dictionary file"), in getArgumentsParser() 54 ArgumentSpec::singleArgument("dest_dict", "output dictionary file") in getArgumentsParser()
|
D | header_executor.cpp | 41 const std::vector<ArgumentSpec> argumentSpecs = { in getArgumentsParser() 42 ArgumentSpec::singleArgument("dict", "prints the header contents of a dictionary file") in getArgumentsParser()
|