Module StringUtil
The StringUtil Library.
Info:
- Copyright: GrayWolf64
- License: Apache License 2.0
Functions
checkName (str, dot) | Qualifies the string name of an object and returns if it's a valid name. |
StripDotExtension (str, doconcat) | Removes the dot extension of a string. |
CharPos (str, char) | Get all the positions of a char in a string. |
Local Functions
stringExplode () | Optimized version of string.Explode. |
Functions
- checkName (str, dot)
-
Qualifies the string name of an object and returns if it's a valid name.
Parameters:
- str String name
- dot If dots are allowed, default is allowed if param not set
Returns:
-
bool ifvalid
- StripDotExtension (str, doconcat)
-
Removes the dot extension of a string.
Parameters:
- str String
- doconcat Whether table.concat the result
Returns:
-
string result
- CharPos (str, char)
-
Get all the positions of a char in a string.
Parameters:
- str String to search in
- char A Single character to search for
Returns:
-
table positions or true if not found
Local Functions
- stringExplode ()
- Optimized version of string.Explode.