As DeSerialize, but only seeks past the data - hence a static method.
| 183 | |
| 184 | // As DeSerialize, but only seeks past the data - hence a static method. |
| 185 | bool STRING::SkipDeSerialize(bool swap, tesseract::TFile* fp) { |
| 186 | inT32 len; |
| 187 | if (fp->FRead(&len, sizeof(len), 1) != 1) return false; |
| 188 | if (swap) ReverseN(&len, sizeof(len)); |
| 189 | return fp->FRead(NULL, 1, len) == len; |
| 190 | } |
| 191 | |
| 192 | BOOL8 STRING::contains(const char c) const { |
| 193 | return (c != '\0') && (strchr (GetCStr(), c) != NULL); |