Escape characters in 3Java

Source: Internet
Author: User

The transfer character corresponds to the English is escape character (escape also has escaped meaning)

The letters are preceded by a "\" to denote the common ASCII characters that cannot be displayed. Called an escape character, such as \0,\t,\n, is called an escape character, because the character that follows is not the ASCII character it was meant to be.

All the escape characters and their corresponding meanings:
Escape character Significance ASCII code value (decimal)
\a Bell (BEL) 007
\b BACKSPACE (BS) to move the current position to the previous column 008
\f Page Break (FF), moving the current position to the beginning of the next page 012
\ n Line Break (LF), move the current position to the beginning of the next line 010
\ r Enter (CR) to move the current position to the beginning of the bank 013
\ t Horizontal tab (HT) (jumps to the next tab position) 009
\v Vertical tabulation (VT) 011
\\ Represents a backslash character ' \ ' 092
\‘ Represents a single quotation mark (apostrophe) character 039
\" Represents a double-quote character 034
/ Null character (NULL) 000
\ddd Any character represented by a 1 to 3-bit octal number Three-bit octal
\xhh Any character represented by 1 to 2 hexadecimal digits Two-bit hexadecimal
Note: Differentiate, Slash: "/" with backslash: "\", not interchangeable here

Escape string (Escape Sequence)

①/Slash, Slash or forward slash (front slash), is originally a punctuation mark. It originated in ancient Rome and was used as a comma in the Middle Ages (when the double slash//was treated as a connection number and later evolved into an equal sign =).
A) The slash in English, the most commonly used even if the alternative character "or" table selection, such as: yes/no, and is to avoid the name of the conflict, such as the U.S. Census table in the "Assyrian/chaldean/syriac", is to To avoid conflicts or ambiguities arising from the different names of Syriac, in fact, the meaning of OR;
b) arithmetic; in English it is called over, for example: 123/456, that is, the score
c) Money says. $50/-represents a $50 cap, which is not in the back, preventing anyone from adding changes.
d) Representation of the date

Escape characters in 3Java

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.