MCPcopy Create free account
hub / github.com/VKCOM/kphp / append_char

Method append_char

compiler/lexer.cpp:78–92  ·  view source on GitHub ↗

* append_char and flush_str are used to modify entities in PHP source code like string literals * e.g. we have to tokenize this code: $x = "New\n"; * but in class-field `std::string SrcFile::text` we have R"($x = \"New\\n\";)" * we will replace "\\n" with "\n" and get string_view on this representation from text field * * It's really strange behaviour to modify source text, it's better to hav

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

parseMethod · 0.80
f$fputcsvFunction · 0.80
escape_json_stringFunction · 0.80
write_stringMethod · 0.80
write_indentMethod · 0.80
serializeMethod · 0.80
serialize_nullMethod · 0.80
json_append_one_charFunction · 0.80
f$rawurlencodeFunction · 0.80
f$rawurldecodeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected