| Start |
|---|
| String Equality In Kotlin strings are compared with Referential equality is checked with |
| String Literals Kotlin has two types of string literals:
Escaped string handles special characters by escaping them. Escaping is done with a backslash. The following escape sequences are supported: Raw string delimited by a triple quote Leading whitespace can be removed with trimMargin() (opens new window) function. Default margin prefix is pipe character |
| Elements of String Elements of String are characters that can be accessed by the indexing operation
String elements can be iterated with a for-loop. |
| String Templates Both escaped strings and raw strings can contain template expressions. Template expression is a piece of code which is evaluated and its result is concatenated into string. It starts with a dollar sign Or an arbitrary expression in curly braces: To include a literal dollar sign in a string, escape it using a backslash: The exception is raw strings, which do not support escaping. In raw strings you can use the following syntax to represent a dollar sign. |
Read Article
https://develop.horje.com/learn/1434/reference