Advertisement
ifknot

Escape sequences

Nov 16th, 2011
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. Escape sequences are used to define certain special characters within string literals.
  2.  
  3. The following escape sequences are available:
  4.  
  5. Escape Description
  6. sequence
  7. \' single quote (byte 0x27)
  8. \" double quote (byte 0x22)
  9. \\ backslash (byte 0x5c)
  10. \0 null character (byte 0x00)
  11. \a audible bell (byte 0x07)
  12. \b backspace (byte 0x08)
  13. \f form feed - new page (byte 0x0c)
  14. \n line feed - new line (byte 0x0a)
  15. \r carriage return (byte 0x0d)
  16. \t horizontal tab (byte 0x09)
  17. \v vertical tab (byte 0x0b)
  18. \nnn arbitrary octal value (byte nnn)
  19. \xnn arbitrary hexadecimal value (byte nn)
  20. \unnnn arbitrary Unicode value (code point U+nnnn) May result in several characters.
  21. \Unnnnnnnn arbitrary Unicode value (code point U+nnnnnnnn) May result in several characters.
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement