File String.lua
Functions
CES:EndsWith (s, target) | Check if a string ends with a specific string. |
CES:Split (s) | Split a string with space as delimiter. |
CES:StartsWith (s, target) | Check if a string starts with a specific string. |
CES:Trim (s) | Trim a string, removing whitespace at the beginning of it. |
Tables
Command.Extentions.String | Table containing all String methods. |
Functions
- CES:EndsWith (s, target)
-
Check if a string ends with a specific string.
Parameters:
-
s
: String to be checked. -
target
: Stromg to search for at end of s.
-
- CES:Split (s)
-
Split a string with space as delimiter.
Parameters:
-
s
: String to be split.
Return value:
- Table containing the individual words.
-
- CES:StartsWith (s, target)
-
Check if a string starts with a specific string.
Parameters:
-
s
: String to be checked. -
target
: String to search for at beginning of s.
-
- CES:Trim (s)
-
Trim a string, removing whitespace at the beginning of it.
Parameters:
-
s
: String to be trimmed.
Return value:
- The trimmed string.
-