String
Noir.Libraries.String: NoirLibrary
A library containing helper methods relating to strings.
Splits a string by the provided separator (defaults to " ").
Parameters
str
: stringseparator
: string|nil
Returns
table<integer, string>
Splits a string by their lines.
Parameters
str
: string
Returns
table<integer, string>
Returns whether or not the provided string starts with the provided prefix.
Parameters
str
: stringprefix
: string
Returns
boolean
Returns whether or not the provided string ends with the provided suffix.
Parameters
str
: stringsuffix
: string
Returns
boolean
Last updated