@[extern lean_string_push]
Adds a character to the end of a string.
The internal implementation uses dynamic arrays and will perform destructive updates if the string is not shared.
Examples:
Equations
Instances For
@[inline]
Returns a new string that contains only the character c.
Because strings are encoded in UTF-8, the resulting string may take multiple bytes.
Examples:
String.singleton 'L' = "L"String.singleton ' ' = " "String.singleton '"' = "\""String.singleton 'š«' = "š«"
Equations
Instances For
@[extern lean_string_offsetofpos]
@[extern lean_string_utf8_next]
@[extern lean_string_dropright]
@[extern lean_string_get_byte_fast]
@[extern lean_substring_extract]
@[extern lean_substring_get]
@[extern lean_substring_prev]