| 105 | } |
| 106 | |
| 107 | void |
| 108 | parse_line(string &line, int offset, string &name, string &value) |
| 109 | { |
| 110 | int son = offset + 1; // start of name |
| 111 | int eon = line.find("\": \"", son); // end of name |
| 112 | int sov = eon + 4; // start of value |
| 113 | int eov = line.find_last_of('"'); // end of value |
| 114 | name = line.substr(son, eon - son); |
| 115 | value = line.substr(sov, eov - sov); |
| 116 | unescape(value); |
| 117 | } |
| 118 | |
| 119 | void |
| 120 | print_difference(const char *a_str, const int a_str_len, const char *b_str, const int b_str_len) |
no test coverage detected