JLStringUtilities¶
jutils.spad line 160 [edit on github]
This package provides Julia facilities to work with strings.
- jlLatex: String -> String
jlLatex(str)returns the String corresponding to a Julia LaTeX expression, that is, “L”str”” if your Julia installation supports it (LaTeXStrings package). Convenience function.
- jlMessageStyled: (String, JLSymbol) -> Void
jlMessageStyled(message, color)print themessagewith formatted color (english color). For example: example{jlMessageStyled(“I AM HERE!!!”, “red”)}
- jlMessageStyled: String -> Void
jlMessageStyled(message)print themessagewith formatted style within braces (Iam {red:here}). For example: example{jlMessageStyled(“{red:■} {green:■} {yellow:■} {blue:■} {magenta:■} {cyan:■}”)}
- jlRegex: String -> String
jlRegex(str)returns the String corresponding to a Julia regular expression, that is, “r_”str_””. Convenience function.
- jlRegexMatch?: (String, String) -> Boolean
jlRegexMatch?(s, regex)checks if the regular expression matches ins.
- jlRegexMatch: (String, String) -> AssociationList(String, String)
jlRegexMatch(s, regex)returns the matched regular expressions ins.
- jlRegexMatch: (String, String) -> List String
jlRegexMatch(s, regex)returns the matched regular expressions ins.
- jlRegexMatch: (String, String) -> String
jlRegexMatch(s, regex)returns the matched regular expression ins.
- jlRegexMatch: (String, String, PositiveInteger) -> AssociationList(String, String)
jlRegexMatch(s, regex, i)returns the matched regular expressions ins, starting at indexi.
- jlRegexMatch: (String, String, PositiveInteger) -> List String
jlRegexMatch(s, regex, i)returns the matched regular expressions ins, starting at indexi.
- jlRegexMatch: (String, String, PositiveInteger) -> String
jlRegexMatch(s, regex, i)returns the matched regular expression ins, starting at indexi.
- jlRegexReplace: (String, String, String) -> String
jlRegexReplace(str, regex, subst)will replace captured regular expressions instrwith subst. More information in String documentation of Julia. For example: jlRegexReplace(“hey”, jlRegex(”$”), jlSubstitute(” you!”))
- jlSplit: (String, String) -> List String
jlSplit(str, delims)splitstrwith delimiter(s) delims (a string or a regular expression). Equivalent to jlSplit(str, delims, 0).
- jlSplit: (String, String, NonNegativeInteger) -> List String
jlSplit(str, delims, n)splitstrwith delimiter(s)delims(a string or a regular expression). Return a list of sizen. Parse entirelystrifn= 0.
- jlStyled: String -> String
jlStyled(str)returns the String corresponding to a Julia styled expression, that is, “styled_”str_”” if your Julia support it. (StyledStrings is an official package). Convenience function.