MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / create_id_token

Function create_id_token

erpcgen/src/cpptemplate/cpptempl.cpp:827–839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

825}
826
827void create_id_token(token_vector &tokens, const std::string &s)
828{
829 token_type_t t = get_keyword_token(s);
830 if (t == token_type_t::INVALID_TOKEN)
831 {
832 // Create key path token.
833 tokens.emplace_back(token_type_t::KEY_PATH_TOKEN, s);
834 }
835 else
836 {
837 tokens.emplace_back(t);
838 }
839}
840
841int append_string_escape(std::string &str, std::function<char(unsigned)> peek)
842{

Callers 1

tokenize_statementFunction · 0.85

Calls 1

get_keyword_tokenFunction · 0.85

Tested by

no test coverage detected