2019-03-28 12:31:15 -04:00
|
|
|
[strings]
|
|
|
|
str0 = "deno"
|
|
|
|
str1 = """
|
|
|
|
Roses are not Deno
|
|
|
|
Violets are not Deno either"""
|
|
|
|
# On a Unix system, the above multi-line string will most likely be the same as:
|
|
|
|
str2 = "Roses are not Deno\nViolets are not Deno either"
|
|
|
|
|
|
|
|
# On a Windows system, it will most likely be equivalent to:
|
|
|
|
str3 = "Roses are not Deno\r\nViolets are not Deno either"
|
|
|
|
str4 = "this is a \"quote\""
|
|
|
|
|
|
|
|
str5 = """
|
|
|
|
The quick brown \
|
|
|
|
|
|
|
|
|
|
|
|
fox jumps over \
|
|
|
|
the lazy dog."""
|
|
|
|
|
|
|
|
str6 = """\
|
|
|
|
The quick brown \
|
|
|
|
fox jumps over \
|
|
|
|
the lazy dog.\
|
|
|
|
"""
|
|
|
|
lines = '''
|
|
|
|
The first newline is
|
|
|
|
trimmed in raw strings.
|
|
|
|
All other whitespace
|
|
|
|
is preserved.
|
2020-07-16 18:36:15 -04:00
|
|
|
'''
|
|
|
|
|
|
|
|
withApostrophe = "What if it's not?"
|
|
|
|
withSemicolon = "const message = 'hello world';"
|
2020-08-17 17:48:15 -04:00
|
|
|
withHexNumberLiteral = "Prevent bug from stripping string here ->0xabcdef"
|
2020-12-05 09:49:05 -05:00
|
|
|
withUnicodeChar1 = "\u3042"
|
|
|
|
withUnicodeChar2 = "Deno\U01F995"
|