Home
last modified time | relevance | path

Searched refs:Result (Results 1 – 5 of 5) sorted by relevance

/art/cmdline/
Dcmdline_types.h51 Result Parse(const std::string& args) {
53 return Result::Success(Unit{}); // NOLINT [whitespace/braces] [5]
55 return Result::Failure("Unexpected extra characters " + args);
78 Result Parse(const std::string& options) {
82 return Result::Usage(
97 return Result::Failure(s +
101 Result parse_attempt = ParseJdwpOption(jdwp_option.substr(0, equals_pos),
111 return Result::Failure(s + "Must specify JDWP transport: " + options);
114 return Result::Failure(s + "Must specify JDWP host and port when server=n: " + options);
117 return Result::Success(std::move(jdwp_options));
[all …]
Dcmdline_type_parser.h31 using Result = CmdlineParseResult<T>; member
37 Result Parse(const std::string& args ATTRIBUTE_UNUSED) { in Parse()
39 return Result::Failure("Missing type specialization and/or value map"); in Parse()
49 Result ParseAndAppend(const std::string& args ATTRIBUTE_UNUSED, in ParseAndAppend()
52 return Result::Failure("Missing type specialization and/or value map"); in ParseAndAppend()
DREADME.md191 Result Parse(const std::string& str) {
197 return Result::Failure("Failed to parse double from " + str);
200 return Result::OutOfRange(
204 return Result::Success(value);
219 Result ParseAndAppend(const std::string& args,
222 return Result::SuccessNoValue();
230 #### What is a `Result`?
231 `Result` is a typedef for `CmdlineParseResult<T>` and it acts similar to a poor version of
235 There are helpers like `Result::Success(value)`, `Result::Failure(string message)` and so on to
238 When successfully parsing a single value, `Result::Success(value)` should be used, and when
[all …]
/art/test/302-float-conversion/
Dexpected.txt1 Iteration Result is as expected
/art/test/046-reflect/
Dexpected.txt28 Result of invoke: 7