MCPcopy Create free account
hub / github.com/ReadyTalk/avian / needsEscape

Function needsEscape

classpath/java-lang.cpp:324–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322}
323
324bool needsEscape(const char* src, size_t length)
325{
326 const char* end = src + length;
327 for (const char* ptr = src; ptr < end; ptr++) {
328 switch (*ptr) {
329 case ' ':
330 case '\t':
331 case '\n':
332 case '\v':
333 case '"':
334 return true;
335 }
336 }
337
338 return false;
339}
340
341void copyAndEscape(char** dest, const char* src, size_t length)
342{

Callers 1

copyAndEscapeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected