MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / scHttpMultipartBoundaryIsSafe

Function scHttpMultipartBoundaryIsSafe

Libraries/Http/HttpConnection.cpp:93–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93static bool scHttpMultipartBoundaryIsSafe(SC::StringSpan value)
94{
95 for (char current : value.toCharSpan())
96 {
97 const unsigned char byte = static_cast<unsigned char>(current);
98 if (byte <= 0x20 or byte >= 0x7F)
99 {
100 return false;
101 }
102 }
103 return true;
104}
105
106static bool scHttpMultipartQuotedParameterIsSafe(SC::StringSpan value)
107{

Callers 1

setBoundaryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected