Home
last modified time | relevance | path

Searched refs:ErrorOr (Results 1 – 6 of 6) sorted by relevance

/system/extras/libjsonpb/parse/include/jsonpb/
Derror_or.h29 struct ErrorOr { struct
31 explicit ErrorOr(Args&&... args) : data_(kIndex1, std::forward<Args>(args)...) {} in ErrorOr() function
53 static ErrorOr<T> MakeError(const std::string& message) { in MakeError() argument
54 return ErrorOr<T>(message, Tag::kDummy); in MakeError()
61 ErrorOr(const std::string& msg, Tag) : data_(kIndex0, msg) {} in ErrorOr() argument
67 inline ErrorOr<T> MakeError(const std::string& message) { in MakeError() argument
68 return ErrorOr<T>::MakeError(message); in MakeError()
Djsonpb.h30 ErrorOr<std::monostate> JsonStringToMessage(const std::string& content,
39 ErrorOr<T> JsonStringToMessage(const std::string& content) { in JsonStringToMessage()
40 ErrorOr<T> ret; in JsonStringToMessage()
57 ErrorOr<std::string> MessageToJsonString(const google::protobuf::Message& message);
/system/extras/libjsonpb/parse/
Djsonpb.cpp40 ErrorOr<std::string> MessageToJsonString(const Message& message) { in MessageToJsonString()
54 return ErrorOr<std::string>(std::move(json)); in MessageToJsonString()
58 ErrorOr<std::monostate> JsonStringToMessage(const std::string& content, Message* message) { in JsonStringToMessage()
70 return ErrorOr<std::monostate>(); in JsonStringToMessage()
/system/extras/libjsonpb/verify/include/jsonpb/
Dverify.h87 ErrorOr<std::string> FormatJson(const std::string& json,
/system/extras/libjsonpb/verify/
Dverify.cpp210 ErrorOr<std::string> FormatJson(const std::string& json, in FormatJson()
Dtest.cpp151 ErrorOr<Parent> TestEmbeddedError(const std::string& json, in TestEmbeddedError()