From 79ecdee49631c1571b6629005b73b0d9aa3dbc34 Mon Sep 17 00:00:00 2001
From: bosak
Date: Fri, 13 Apr 2018 17:40:27 +0300
Subject: add string trim_prefix trim_suffix lstrip and rstrip methods
---
doc/classes/String.xml | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
(limited to 'doc')
diff --git a/doc/classes/String.xml b/doc/classes/String.xml
index d8d432e30..83fb76f28 100644
--- a/doc/classes/String.xml
+++ b/doc/classes/String.xml
@@ -490,6 +490,15 @@
Returns the string's amount of characters.
+
+
+
+
+
+
+ Returns a copy of the string with characters removed from the left.
+
+
@@ -634,6 +643,15 @@
Returns the right side of the string from a given position.
+
+
+
+
+
+
+ Returns a copy of the string with characters removed from the right.
+
+
@@ -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().
+
+
+
+
+
+
+ Removes a given string from the start if it starts with it or leaves the string unchanged.
+
+
+
+
+
+
+
+
+ Removes a given string from the end if it ends with it or leaves the string unchanged.
+
+
--
cgit v1.2.3-70-g09d2