MCPcopy Index your code
hub / github.com/IBM/Project_CodeNet / RAW_escape

Function RAW_escape

tools/tokenizer/pytokenize.c:715–725  ·  view source on GitHub ↗

Escape hard newlines in a string.

Source from the content-addressed store, hash-verified

713
714// Escape hard newlines in a string.
715static void RAW_escape(FILE *out, const char *token)
716{
717 const char *p;
718 for (p = token; *p; p++) {
719 if (*p == '\n') {
720 fputs("\\n", out);
721 continue;
722 }
723 fputc(*p, out);
724 }
725}
726
727// Escape token for output as CSV string.
728static void CSV_escape(FILE *out, const char *token)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected