Mojo module
string
Implements basic object methods for working with strings.
These are Mojo built-ins, so you don't need to import them.
Structsβ
- β
String
: Represents a mutable string.
Traitsβ
- β
StringRepresentable
: TheStringRepresentable
trait denotes a trait composition of theStringable
andRepresentable
traits.
Functionsβ
- β
ascii
: Get the ASCII representation of the object. - β
atof
: Parses the given string as a floating point and returns that value. - β
atol
: Parses and returns the given string as an integer in the given base. - β
chr
: Returns a string based on the given Unicode code point. - β
isdigit
: Determines whether the given character is a digit [0-9]. - β
islower
: Determines whether the given character is an lowercase character. - β
isprintable
: Determines whether the given character is a printable character. - β
isupper
: Determines whether the given character is an uppercase character. - β
ord
: Returns an integer that represents the given one-character string.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
If you'd like to share more information, please report an issue on GitHub
π What went wrong?