mirror of
https://github.com/sjsdfg/effective-java-3rd-chinese.git
synced 2025-02-07 10:10:43 +08:00
64 lines
899 B
Plaintext
64 lines
899 B
Plaintext
""
|
|
"fo\"o"
|
|
|
|
"""Multi line
|
|
string"""
|
|
|
|
@"foo $bar"
|
|
@"foo $(bar)"
|
|
|
|
'a'
|
|
'\''
|
|
'\\'
|
|
|
|
----------------------------------------------------
|
|
|
|
[
|
|
["string", "\"\""],
|
|
["string", "\"fo\\\"o\""],
|
|
|
|
["raw-string", "\"\"\"Multi line\r\nstring\"\"\""],
|
|
["template-string",
|
|
[
|
|
["string", "@\"foo "],
|
|
[
|
|
"interpolation",
|
|
[
|
|
[
|
|
"delimiter", "$"
|
|
],
|
|
"bar"
|
|
]
|
|
],
|
|
["string", "\""]
|
|
]
|
|
],
|
|
["template-string",
|
|
[
|
|
["string", "@\"foo "],
|
|
[
|
|
"interpolation",
|
|
[
|
|
[
|
|
"delimiter",
|
|
"$("
|
|
],
|
|
"bar",
|
|
[
|
|
"delimiter",
|
|
")"
|
|
]
|
|
]
|
|
],
|
|
["string", "\""]
|
|
]
|
|
],
|
|
["string", "'a'"],
|
|
["string", "'\\''"],
|
|
["string", "'\\\\'"]
|
|
]
|
|
|
|
----------------------------------------------------
|
|
|
|
Checks for normal and verbatim strings.
|
|
Also checks for single quoted characters. |