0
0
This repository has been archived on 2024-05-25. You can view files and clone it, but cannot push or open issues or pull requests.
legacy-code/test/strings.jce
2022-09-06 19:27:19 +02:00

27 lines
729 B
Plaintext

echo "Here comes a quote: \"Lorem ipsum\". This had to be escaped!\n"
echo "Here comes another quote: 'Lorem ipsum'. This didn't require escaping!\n"
echo "escape quotes: \\\"\n"
echo "escape backslashes: \\\\\n"
echo "multiple" "strings" "to" "echo" "\n"
echo "絵文字 in code: 🥦🐻🐈👀\n"
echo "Escape sequences work: \u2764\ufe0f\n"
echo 'Escape sequences are printed as-is: \u2764\ufe0f\n'
echo "Multi
line
string"
echo "\tindent x1\n"
echo "\t\tindent x2\n"
echo "\t\tindent x2\n"
echo "indent x0\n"
echo "you can also escape useless stuff: \u\s\e\l\e\s\s\n"
echo 'not working in single quoted strings tho: \u\s\e\l\e\s\s' "\n"
echo 'Escaping quotes and backslashes works in both string types: \\\\\\\'\n'