OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:OptionSpec
(Results
1 - 10
of
10
) sorted by null
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
arguments_parser.h
30
class
OptionSpec
{
33
OptionSpec
() = default;
34
OptionSpec
&operator=(const
OptionSpec
&) = default;
36
static
OptionSpec
keyValueOption(const std::string &valueName, const std::string &defaultValue,
38
return
OptionSpec
(true /* needsValue */, valueName, defaultValue, description);
41
static
OptionSpec
switchOption(const std::string &description) {
42
return
OptionSpec
(false /* needsValue */, "" /* valueName */, "" /* defaultValue */,
52
OptionSpec
(const bool needsValue, const std::string &valueName, const std::string &defaultValue,
100
ArgumentsParser(const std::unordered_map<std::string,
OptionSpec
> &&optionSpecs
[
all
...]
arguments_parser.cpp
54
const
OptionSpec
&spec = option.second;
75
const
OptionSpec
&spec = option.second;
102
const
OptionSpec
&
optionSpec
= entry.second;
103
if (
optionSpec
.needsValue() && !
optionSpec
.getDefaultValue().empty()) {
105
options[optionName] =
optionSpec
.getDefaultValue();
/packages/inputmethods/LatinIME/native/dicttoolkit/src/command_executors/
makedict_executor.cpp
46
std::unordered_map<std::string,
OptionSpec
> optionSpecs;
47
optionSpecs["o"] =
OptionSpec
::keyValueOption("format", "2",
49
optionSpecs["t"] =
OptionSpec
::keyValueOption("mode", "off",
diff_executor.cpp
37
std::unordered_map<std::string,
OptionSpec
> optionSpecs;
38
optionSpecs["p"] =
OptionSpec
::switchOption("(plumbing) produce output suitable for a script");
header_executor.cpp
38
std::unordered_map<std::string,
OptionSpec
> optionSpecs;
39
optionSpecs["p"] =
OptionSpec
::switchOption("(plumbing) produce output suitable for a script");
info_executor.cpp
41
std::unordered_map<std::string,
OptionSpec
> optionSpecs;
42
optionSpecs["p"] =
OptionSpec
::switchOption("(plumbing) produce output suitable for a script");
/packages/inputmethods/LatinIME/native/dicttoolkit/tests/utils/
arguments_parser_test.cpp
27
std::unordered_map<std::string,
OptionSpec
> optionSpecs;
33
std::unordered_map<std::string,
OptionSpec
> optionSpecs;
34
optionSpecs["a"] =
OptionSpec
::keyValueOption("valueName", "default", "description");
48
EXPECT_FALSE(ArgumentsParser(std::unordered_map<std::string,
OptionSpec
>(),
57
EXPECT_FALSE(ArgumentsParser(std::unordered_map<std::string,
OptionSpec
>(),
66
EXPECT_FALSE(ArgumentsParser(std::unordered_map<std::string,
OptionSpec
>(),
91
std::unordered_map<std::string,
OptionSpec
> optionSpecs;
92
optionSpecs["a"] =
OptionSpec
::switchOption("description");
93
optionSpecs["b"] =
OptionSpec
::keyValueOption("valueName", "default", "description");
/external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/
CollationPerformanceTest.java
114
static
OptionSpec
[] options = {
115
new
OptionSpec
("-file", 2, temp_opt_fName),
116
new
OptionSpec
("-locale", 2, temp_opt_locale),
117
//new
OptionSpec
("-langid", 1, temp_opt_langid),
118
new
OptionSpec
("-rules", 2, temp_opt_rules),
119
new
OptionSpec
("-qsort", 0, temp_opt_qsort),
120
new
OptionSpec
("-binsearch", 0, temp_opt_binsearch),
121
new
OptionSpec
("-iter", 0, temp_opt_itertest),
122
//new
OptionSpec
("-win", 0, temp_opt_win),
123
//new
OptionSpec
("-unix", 0, temp_opt_unix)
[
all
...]
/prebuilts/tools/common/m2/repository/net/sf/jopt-simple/jopt-simple/4.9/
jopt-simple-4.9.jar
/prebuilts/tools/common/offline-m2/net/sf/jopt-simple/jopt-simple/4.9/
jopt-simple-4.9.jar
Completed in 228 milliseconds