MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / process_string

Function process_string

runners/helpers/ValidateRequest.cpp:784–790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

782};
783
784static td::Status process_string(Ctx &ctx) {
785 if (!ctx.is_string()) {
786 return td::Status::Error(ton::ErrorCode::protoviolation, PSTRING() << ctx.path() << " must be a string");
787 }
788 TRY_STATUS(ctx.get_string());
789 return td::Status::OK();
790}
791
792static td::Status process_string_hex(Ctx &ctx) {
793 if (!ctx.is_string()) {

Callers 2

process_string_or_arrayFunction · 0.85
process_string_or_objectFunction · 0.85

Calls 2

is_stringMethod · 0.45
get_stringMethod · 0.45

Tested by

no test coverage detected