Special Characters in Strings

There are many special characters used in the Strings. They are:

\0 Null String
\b Backspace
\f Form feed
\n New line
\r carriage return
\t tab
\v vertical tab
\' Apostrophe or single quote
\'' Double quote
\\ Backslash character

\XXX  This Character with in the Latin-1 encoding specified up to 3 octal digits between 0 to 377. For Ex : \150 is the octal sequence symbol.

\xXX  This Character with in the Latin-1 encoding specified up to 2 hexadecimal digits between 00 to FF. For Ex : \xA9 is the hexadecimal sequence symbol.

\uXXXX  This Unicode character specified up to four hexadecimal digits XXXX. For Ex: \uFFFF is the unicode character symbol.

\u{XXXX}  This is Unicode point escapes. For Ex: \u{2F804} is same as simpe unicode character \u2F804.



No comments:

Post a Comment

Overview of AngularJS

AngularJS is an open source web application framework. It is now maintained by Google . The most of the code can be eliminated by using th...