jeudi 14 mai 2015

C++ escape control characters

Is there a C++ function to escape the control characters in a string? For example, if the input is "First\r\nSecond" the output should be "First\\0x0D\\0x0ASecond".

Aucun commentaire:

Enregistrer un commentaire