IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: 1.1.0
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

string

Implements the core String type and related utilities.

Structs​

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. This is the inverse of the ord() function.
  • ​ord: Returns an integer that represents the codepoint of a single-character string.