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).
get_static_string
get_static_string[string: StringSlice[StaticConstantOrigin], *extra: StringSlice[StaticConstantOrigin]]() -> StaticString
Form a StaticString from compile-time StringSlice values. This guarantees that the returned string is compile-time constant in static memory. It also guarantees that there is a 'nul' zero byte at the end, which is not included in the returned range.
Parameters:
- string (
StringSlice[StaticConstantOrigin]): The first StringSlice value. - *extra (
StringSlice[StaticConstantOrigin]): Additional StringSlice values to concatenate.
Returns:
StaticString: The string value as a StaticString.