"at" (string::at)
Returns the character at the given index idx in the string.
Synopsis
string string.at(uint idx);
Parameters
Parameter | Description |
---|---|
idx | Index within the string |
Description
Returns the character at the given index idx in the string.
If idx >= length() an empty string is returned.
Since the string can contain Unicode characters, the return value is also a string representing a single Unicode character (e.g. UTF-8 multibyte encoded)
Assignment
String