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.h28 struct ErrorOr { struct
30 explicit ErrorOr(Args&&... args) : data_(kIndex1, std::forward<Args>(args)...) {} in ErrorOr() function
52 static ErrorOr<T> MakeError(const std::string& message) { in MakeError() argument
53 return ErrorOr<T>(message, Tag::kDummy); in MakeError()
60 ErrorOr(const std::string& msg, Tag) : data_(kIndex0, msg) {} in ErrorOr() function
66 inline ErrorOr<T> MakeError(const std::string& message) { in MakeError() argument
67 return ErrorOr<T>::MakeError(message); in MakeError()
Djsonpb.h29 ErrorOr<std::monostate> JsonStringToMessage(const std::string& content,
38 ErrorOr<T> JsonStringToMessage(const std::string& content) { in JsonStringToMessage()
39 ErrorOr<T> ret; in JsonStringToMessage()
56 ErrorOr<std::string> MessageToJsonString(const google::protobuf::Message& message);
/system/extras/libjsonpb/parse/
Djsonpb.cpp39 ErrorOr<std::string> MessageToJsonString(const Message& message) { in MessageToJsonString()
53 return ErrorOr<std::string>(std::move(json)); in MessageToJsonString()
57 ErrorOr<std::monostate> JsonStringToMessage(const std::string& content, Message* message) { in JsonStringToMessage()
69 return ErrorOr<std::monostate>(); in JsonStringToMessage()
/system/extras/libjsonpb/verify/include/jsonpb/
Dverify.h85 ErrorOr<std::string> FormatJson(const std::string& json, google::protobuf::Message* scratch_space);
/system/extras/libjsonpb/verify/
Dverify.cpp201 ErrorOr<std::string> FormatJson(const std::string& json, google::protobuf::Message* scratch_space) { in FormatJson()
Dtest.cpp147 ErrorOr<Parent> TestEmbeddedError(const std::string& json, const std::string& unknown_key) { in TestEmbeddedError()