| 24 | char *arena_end; |
| 25 | |
| 26 | char *read_item(char *p) { |
| 27 | char *s; |
| 28 | char *r; |
| 29 | |
| 30 | while ((*p) && (isspace((uint8_t)*p))) ++p; |
| 31 | s = p; |
| 32 | while ((*p) && (!isspace((uint8_t)*p)) && (*p != '|')) ++p; |
| 33 | *p = 0; |
| 34 | r = strdup(s); |
| 35 | *p = '|'; |
| 36 | return fix_to_utf8(r, &arena, arena_end); |
| 37 | } |
| 38 | |
| 39 | bool ADFile::verifyFormat(std::vector<char> &buf) { |
| 40 | bool isBinary = find_str_in_buf("Binary", buf); |