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

Method is_string

runners/helpers/ValidateRequest.cpp:509–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

507 }
508
509 bool is_string() {
510 switch (mode) {
511 case Mode::Form: {
512 return false;
513 }
514 case Mode::Slice: {
515 return true;
516 }
517 case Mode::Json: {
518 auto e = obj;
519 return e && e->is_string();
520 }
521 default:
522 return false;
523 }
524 }
525
526 td::Result<std::string> get_string() {
527 switch (mode) {

Callers

nothing calls this directly

Calls 1

is_stringMethod · 0.45

Tested by

no test coverage detected