Home
last modified time | relevance | path

Searched refs:opt_str (Results 1 – 18 of 18) sorted by relevance

/external/llvm-project/lldb/examples/python/
Dmemory.py63 def append_data_callback(option, opt_str, value, parser): argument
64 if opt_str == "--uint8":
67 if opt_str == "--uint16":
70 if opt_str == "--uint32":
73 if opt_str == "--uint64":
76 if opt_str == "--int8":
79 if opt_str == "--int16":
82 if opt_str == "--int32":
85 if opt_str == "--int64":
Dtypes.py62 def regex_option_callback(option, opt_str, value, parser): argument
63 if opt_str == "--std":
/external/python/cpython2/Lib/
Doptparse.py136 def __init__(self, opt_str): argument
137 self.opt_str = opt_str
140 return _("no such option: %s") % self.opt_str
146 def __init__(self, opt_str, possibilities): argument
147 BadOptionError.__init__(self, opt_str)
152 % (self.opt_str, ", ".join(self.possibilities)))
1044 def get_option(self, opt_str): argument
1045 return (self._short_opt.get(opt_str) or
1046 self._long_opt.get(opt_str))
1048 def has_option(self, opt_str): argument
[all …]
/external/python/cpython3/Lib/
Doptparse.py142 def __init__(self, opt_str): argument
143 self.opt_str = opt_str
146 return _("no such option: %s") % self.opt_str
152 def __init__(self, opt_str, possibilities): argument
153 BadOptionError.__init__(self, opt_str)
158 % (self.opt_str, ", ".join(self.possibilities)))
1031 def get_option(self, opt_str): argument
1032 return (self._short_opt.get(opt_str) or
1033 self._long_opt.get(opt_str))
1035 def has_option(self, opt_str): argument
[all …]
/external/perfetto/src/trace_processor/importers/proto/
Dstack_profile_tracker.cc55 auto opt_str = FindOrInsertString(str_id, intern_lookup, in AddMapping() local
57 if (!opt_str) in AddMapping()
59 path += "/" + *opt_str; in AddMapping()
261 auto opt_str = FindOrInsertString(id, intern_lookup, type); in FindAndInternString() local
262 if (!opt_str) in FindAndInternString()
265 return context_->storage->InternString(base::StringView(*opt_str)); in FindAndInternString()
/external/adhd/sound_card_init/src/
Dmain.rs82 .opt_str("id") in parse_args()
90 .opt_str("conf") in parse_args()
/external/adhd/cras/client/cras_tests/src/
Darguments.rs140 let argument = matches.opt_str(option_name).unwrap_or_default(); in get_u32_param()
147 let argument = matches.opt_str(option_name).unwrap_or_default(); in get_usize_param()
193 match matches.opt_str("loopback").as_deref() { in parse()
229 let format = match matches.opt_str("format").as_deref() { in parse()
/external/linux-kselftest/tools/testing/selftests/net/forwarding/
Dlib.sh197 local opt_str=$2
200 opt_str="($opt_str)"
205 printf "TEST: %-60s [FAIL]\n" "$test_name $opt_str"
217 printf "TEST: %-60s [ OK ]\n" "$test_name $opt_str"
/external/openscreen/third_party/abseil/src/absl/types/
Doptional_test.cc821 absl::optional<std::string> opt_str; in TEST() local
823 opt_str = opt_cstr; in TEST()
824 EXPECT_TRUE(opt_str); in TEST()
825 EXPECT_EQ(std::string("abc"), *opt_str); in TEST()
826 opt_str = absl::optional<const char*>(); in TEST()
827 EXPECT_FALSE(opt_str); in TEST()
828 opt_str = absl::optional<const char*>("def"); in TEST()
829 EXPECT_TRUE(opt_str); in TEST()
830 EXPECT_EQ(std::string("def"), *opt_str); in TEST()
1280 absl::optional<std::string> opt_str = "abc"; in TEST() local
[all …]
/external/webrtc/third_party/abseil-cpp/absl/types/
Doptional_test.cc821 absl::optional<std::string> opt_str; in TEST() local
823 opt_str = opt_cstr; in TEST()
824 EXPECT_TRUE(opt_str); in TEST()
825 EXPECT_EQ(std::string("abc"), *opt_str); in TEST()
826 opt_str = absl::optional<const char*>(); in TEST()
827 EXPECT_FALSE(opt_str); in TEST()
828 opt_str = absl::optional<const char*>("def"); in TEST()
829 EXPECT_TRUE(opt_str); in TEST()
830 EXPECT_EQ(std::string("def"), *opt_str); in TEST()
1282 absl::optional<std::string> opt_str = "abc"; in TEST() local
[all …]
/external/libtextclassifier/abseil-cpp/absl/types/
Doptional_test.cc821 absl::optional<std::string> opt_str; in TEST() local
823 opt_str = opt_cstr; in TEST()
824 EXPECT_TRUE(opt_str); in TEST()
825 EXPECT_EQ(std::string("abc"), *opt_str); in TEST()
826 opt_str = absl::optional<const char*>(); in TEST()
827 EXPECT_FALSE(opt_str); in TEST()
828 opt_str = absl::optional<const char*>("def"); in TEST()
829 EXPECT_TRUE(opt_str); in TEST()
830 EXPECT_EQ(std::string("def"), *opt_str); in TEST()
1280 absl::optional<std::string> opt_str = "abc"; in TEST() local
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/types/
Doptional_test.cc821 absl::optional<std::string> opt_str; in TEST() local
823 opt_str = opt_cstr; in TEST()
824 EXPECT_TRUE(opt_str); in TEST()
825 EXPECT_EQ(std::string("abc"), *opt_str); in TEST()
826 opt_str = absl::optional<const char*>(); in TEST()
827 EXPECT_FALSE(opt_str); in TEST()
828 opt_str = absl::optional<const char*>("def"); in TEST()
829 EXPECT_TRUE(opt_str); in TEST()
830 EXPECT_EQ(std::string("def"), *opt_str); in TEST()
1280 absl::optional<std::string> opt_str = "abc"; in TEST() local
[all …]
/external/angle/third_party/abseil-cpp/absl/types/
Doptional_test.cc821 absl::optional<std::string> opt_str; in TEST() local
823 opt_str = opt_cstr; in TEST()
824 EXPECT_TRUE(opt_str); in TEST()
825 EXPECT_EQ(std::string("abc"), *opt_str); in TEST()
826 opt_str = absl::optional<const char*>(); in TEST()
827 EXPECT_FALSE(opt_str); in TEST()
828 opt_str = absl::optional<const char*>("def"); in TEST()
829 EXPECT_TRUE(opt_str); in TEST()
830 EXPECT_EQ(std::string("def"), *opt_str); in TEST()
1280 absl::optional<std::string> opt_str = "abc"; in TEST() local
[all …]
/external/abseil-cpp/absl/types/
Doptional_test.cc821 absl::optional<std::string> opt_str; in TEST() local
823 opt_str = opt_cstr; in TEST()
824 EXPECT_TRUE(opt_str); in TEST()
825 EXPECT_EQ(std::string("abc"), *opt_str); in TEST()
826 opt_str = absl::optional<const char*>(); in TEST()
827 EXPECT_FALSE(opt_str); in TEST()
828 opt_str = absl::optional<const char*>("def"); in TEST()
829 EXPECT_TRUE(opt_str); in TEST()
830 EXPECT_EQ(std::string("def"), *opt_str); in TEST()
1282 absl::optional<std::string> opt_str = "abc"; in TEST() local
[all …]
/external/python/cpython3/Doc/library/
Doptparse.rst261 parser.add_option(opt_str, ...,
658 .. method:: OptionParser.get_option_group(opt_str)
661 string *opt_str* (e.g. ``'-o'`` or ``'--option'``) belongs. If
904 OptionParser.add_option(*opt_str, attr=value, ...)
1222 func(option, opt_str, value, parser, *args, **kwargs)
1392 .. method:: OptionParser.get_option(opt_str)
1394 Returns the Option instance with the option string *opt_str*, or ``None`` if
1397 .. method:: OptionParser.has_option(opt_str)
1399 Return ``True`` if the OptionParser has an option with option string *opt_str*
1402 .. method:: OptionParser.remove_option(opt_str)
[all …]
/external/python/cpython2/Doc/library/
Doptparse.rst262 parser.add_option(opt_str, ...,
660 .. method:: OptionParser.get_option_group(opt_str)
663 string *opt_str* (e.g. ``'-o'`` or ``'--option'``) belongs. If
906 OptionParser.add_option(*opt_str, attr=value, ...)
1224 func(option, opt_str, value, parser, *args, **kwargs)
1394 .. method:: OptionParser.get_option(opt_str)
1396 Returns the Option instance with the option string *opt_str*, or ``None`` if
1399 .. method:: OptionParser.has_option(opt_str)
1401 Return true if the OptionParser has an option with option string *opt_str*
1404 .. method:: OptionParser.remove_option(opt_str)
[all …]
/external/libpng/contrib/tools/
Dpngcp.c1252 getallopts(struct display *dp, const char *opt_str, int *value) in getallopts() argument
1254 return getallopts_(dp, option_index(dp, opt_str, strlen(opt_str)), value, 0); in getallopts()
1258 getsearchopts(struct display *dp, const char *opt_str, int *value) in getsearchopts() argument
1262 png_byte opt = option_index(dp, opt_str, strlen(opt_str)); in getsearchopts()
/external/llvm-project/lldb/source/Interpreter/
DOptions.cpp667 std::string opt_str = "-a"; in HandleOptionCompletion() local
672 opt_str[1] = def.short_option; in HandleOptionCompletion()
673 request.AddCompletion(opt_str, def.usage_text); in HandleOptionCompletion()