Lines Matching full:boundary
48 enum class Boundary enum
70 const std::string boundaryFormat = "multipart/form-data; boundary="; in parse()
78 boundary = "\r\n--"; in parse()
79 boundary += ctBoundary; in parse()
81 lookbehind.resize(boundary.size() + 8); in parse()
98 if (index == boundary.size() - 2) in parse()
107 else if (index - 1 == boundary.size() - 2) in parse()
118 if (c != boundary[index + 2]) in parse()
206 skipNonBoundary(buffer, boundary.size() - 1, i); in parse()
231 std::string boundary; member in MultipartParser
237 for (const char current : boundary) in indexBoundary()
256 // boyer-moore derived algorithm to safely skip non-boundary data in skipNonBoundary()
257 while (i + boundary.size() <= buffer.length()) in skipNonBoundary()
263 i += boundary.size(); in skipNonBoundary()
271 if (index < boundary.size()) in processPartData()
273 if (boundary[index] == c) in processPartData()
289 else if (index == boundary.size()) in processPartData()
294 // cr = part boundary in processPartData()
295 flags = Boundary::PART_BOUNDARY; in processPartData()
299 // hyphen = end boundary in processPartData()
300 flags = Boundary::END_BOUNDARY; in processPartData()
309 if (flags == Boundary::PART_BOUNDARY) in processPartData()
315 flags = Boundary::NON_BOUNDARY; in processPartData()
321 if (flags == Boundary::END_BOUNDARY) in processPartData()
329 flags = Boundary::NON_BOUNDARY; in processPartData()
346 // if our boundary turned out to be rubbish, the captured in processPartData()
371 Boundary flags{Boundary::NON_BOUNDARY};