Java regular expressions and special characters (not fully understood)

xiaoxiao2021-03-06  36

http://www.ccw.com.cn/htm/app/aprog/01_7_31_4.asp

Can see different places and perl php

Supplemental characters in the Java platform

Http://java.sun.com/developer/technicalArticles/intl/supplementary/index_zh_cn.html

Text introduction The Java platform supports the way to supplement the character. The supplemental character is a character of the Unicode standard exceeds U FFFF, so they cannot be described as a single 16-bit entity in the Java programming language (for example

CHAR data type). These characters are generally used, but some will be used in the names such as Chinese or Japanese, so in East Asian countries, government applications usually require support for these characters.

Escape

First, the character constant character constant is a character enclosed in single quotes, such as

'A',

'A'. In addition, with

C,

C is the same,

Java also provides an essential character with a backslash

(/) Start, turn the following characters to another meaning, listed below

The escape character in Java.

versus

C,

C different,

Character data in Java is

16-bit non-symbolic data, it means

Unicode set, not just

ASCII set, for example

/ u0061

ISO Latin

'A'.

Side character description:

/ ddd1 to

3-bit

8 Bringing the characters represented by data

(DDD) / UXXXX1 to

4 bit

16 characters represented by the number

(xxxx) / 'single quotes characters

// Sprinkler character

/ r Enter

/ N wrap

/ f Passing page

/ T lateral jumping

/ B back

http://teach.haodx.com/7/java/0099.htm

转载请注明原文地址:https://www.9cbs.com/read-64778.html

New Post(0)