String Operations
The Designer supports string manipulation operations. Internally, strings are represented as UTF-8 strings.
The following operations are offered by the String class:
Escaping Characters
String literals are created by putting character sequences into single ('
…'
) or double quotes ("
…"
). If the string literal contains double quotes, they can be used without escaping if the literal is enclosed by single quotes and vice versa:
"myString'StringWithinQuotes'end"
'myString"StringWithinDoubleQuotes"end'
An alternative to handle quotes within a string is escaping the quotes with a backslash (\"
or \'
):
"myString\"StringWithinDoubleQuotes\"end"
'myString\'StringWithinDoubleQuotes\'end'
Another backslash character is escaping the backslash character itself ( \\
).
If you want to use white spaces like tabs, new lines, or carriage returns in a string, use the text() macro.