Returns a copy of the string with characters removed from the left.
</description>
</method>
<methodname="match">
<returntype="bool">
</return>
...
...
@@ -634,6 +643,15 @@
Returns the right side of the string from a given position.
</description>
</method>
<methodname="rstrip">
<returntype="String">
</return>
<argumentindex="0"name="chars"type="String">
</argument>
<description>
Returns a copy of the string with characters removed from the right.
</description>
</method>
<methodname="sha256_buffer">
<returntype="PoolByteArray">
</return>
...
...
@@ -745,6 +763,24 @@
Converts the String (which is an array of characters) to [PoolByteArray] (which is an array of bytes). The conversion is a bit slower than to_ascii(), but supports all UTF-8 characters. Therefore, you should prefer this function over to_ascii().
</description>
</method>
<methodname="trim_prefix">
<returntype="String">
</return>
<argumentindex="0"name="prefix"type="String">
</argument>
<description>
Removes a given string from the start if it starts with it or leaves the string unchanged.
</description>
</method>
<methodname="trim_suffix">
<returntype="String">
</return>
<argumentindex="0"name="suffix"type="String">
</argument>
<description>
Removes a given string from the end if it ends with it or leaves the string unchanged.