to keep arcadia tests happy
| 69 | |
| 70 | // to keep arcadia tests happy |
| 71 | bool TJsonPrettifier::MayUnquoteOld(TStringBuf s) { |
| 72 | static str_spn alpha("a-zA-Z_@$", true); |
| 73 | static str_spn alnum("a-zA-Z_@$0-9", true); |
| 74 | static TStringBuf true0("true"); |
| 75 | static TStringBuf false0("false"); |
| 76 | static TStringBuf true1("on"); |
| 77 | static TStringBuf false1("off"); |
| 78 | static TStringBuf true2("da"); |
| 79 | static TStringBuf false2("net"); |
| 80 | static TStringBuf null0("null"); |
| 81 | |
| 82 | return !!s && alpha.chars_table[(ui8)s[0]] && alnum.cbrk(s.begin() + 1, s.end()) == s.end() && !EqualToOneOf(s, null0, true0, false0, true1, false1, true2, false2); |
| 83 | } |
| 84 | |
| 85 | class TPrettifier: public TJsonCallbacks { |
| 86 | TRewritableOut Out; |
nothing calls this directly
no test coverage detected