Skip to content

27629678/character_escaper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

character_escaper

character escaper, used to escape or unescape semicolon, colon, comma, ctlf characters, etc.

how to use:

NSString *source = @";,\\;\\;\\;:\\:\\n";
XYCharacterEscaper* escaper = [XYCharacterEscaper escaperWithSource:source];
escaper.escapeSemicolon().escapeColon().escapeComma().escapeCTLF();
printf(escaper.value);  // \;\,\;\;\;\:\:\n

escaper.unescapeSemicolon().unescapeColon().unescapeComma().unescapeCTLF();
printf(escaper.value);  // ;,;;;::(\n)

About

character escaper util class

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published