Learning BSV‎ > ‎Data Types‎ > ‎

String

Overview

String literals are written enclosed in double quotes and must be contained on a single source line.

Special Characters

Special characters may be inserted in string literals with the following backslash escape sequences

\n    newline 
\t tab
\\ backslash
\" doublequote
\v vertical tab
\f form feed
\a bell
\000 exactly 3 octal digits (8-bit character code)
\xHH exactly 2 hexadecimal digits (8-bit character code)
Comments