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