String
s are a piece of UTF-8 text, and they are defined by the usage of double quotes ("
).
You can use \
to escape the following characters
\n
- Newline\r
- Return\t
- Tab\\
- Backslash (\
)\"
- Double qoute (`”)String.Length() Number
Returns the amount of characters that the string consists of.
Example:
String.Bytes() Number
Returns how many bytes the string occupies.
Example:
String.At(Number) String
Returns the character at that position. The positions are 0-indexed.
This method takes Unicode-characters into consideration, so each “glyph” is one item.
Example: