| 114 | |
| 115 | namespace { |
| 116 | size_t getText(std::string& buf, const unsigned char* data, size_t length, |
| 117 | size_t off) |
| 118 | { |
| 119 | size_t j = off; |
| 120 | while (j < length && !util::isCRLF(data[j])) { |
| 121 | ++j; |
| 122 | } |
| 123 | buf.append(&data[off], &data[j]); |
| 124 | return j - 1; |
| 125 | } |
| 126 | } // namespace |
| 127 | |
| 128 | namespace { |