Skip to main content

internal.format

Standard library module View source
function seq_locale_decimal_point
@C
seq_locale_decimal_point()
function seq_locale_grouping
@C
seq_locale_grouping()
function seq_locale_thousands_sep
@C
seq_locale_thousands_sep()
class Int
@extend
class Int[N]
Special methods 1
__format__
__format__(self: Self, format_spec: str, Self: type)
class UInt
@extend
class UInt[N]
Special methods 1
__format__
__format__(self: Self, format_spec: str, Self: type)
class float
@extend
class float
Special methods 2
__str__
__str__(self: Self, Self: type)
__format__
__format__(self: Self, format_spec: str, Self: type)
class str
@extend
class str
Special methods 1
__format__
__format__(self: Self, format_spec: str, Self: type)
class Ptr
@extend
class Ptr[T]
Special methods 1
__format__
__format__(self: Self, format_spec: str, Self: type)
variable FORMAT_FLAG_ALT
FORMAT_FLAG_ALT: Literal[int] = 1
variable FORMAT_FLAG_ZERO
FORMAT_FLAG_ZERO: Literal[int] = 2
variable FORMAT_FLAG_LEFT
FORMAT_FLAG_LEFT: Literal[int] = 4
variable FORMAT_FLAG_SPACE
FORMAT_FLAG_SPACE: Literal[int] = 8
variable FORMAT_FLAG_PLUS
FORMAT_FLAG_PLUS: Literal[int] = 16
function float_format_write
float_format_write(value: float, conversion: int, precision: int, alternate: bool, output: Ptr[u8])
function float_format_write_padded
float_format_write_padded(value: float, conversion: int, precision: int, flags: int, width: int, output: Ptr[u8])
function integer_format_write_padded
integer_format_write_padded(value, conversion: int, precision: int, flags: int, width: int, output: Ptr[u8])
function percent_format
percent_format(format: str, values)
function percent_format_mapping
percent_format_mapping(format: str, values)
function bytes_percent_format
bytes_percent_format(format: bytes, values)
function bytes_percent_format_mapping
bytes_percent_format_mapping(format: bytes, values)
class str
@extend
class str
Methods 2
format
format(self: Self, *values, Self: type)
format_map
format_map(self: Self, mapping, Self: type)
Special methods 1
__mod__
__mod__(self: Self, values, Self: type)
function brace_format
brace_format(format: str, values)
function brace_format_map
brace_format_map(format: str, mapping)