mir.format

@nogc Formatting Utilities

Members

Aliases

dstringBuf
alias dstringBuf = _stringBuf!dchar
stringBuf
alias stringBuf = _stringBuf!char
wstringBuf
alias wstringBuf = _stringBuf!wchar

Enums

EscapeFormat
enum EscapeFormat

Escaped string formats

SwitchLU
enum SwitchLU
escapeFormatQuote
eponymoustemplate escapeFormatQuote(EscapeFormat escapeFormat)
Undocumented in source.

Functions

print
W print(W w, Args args)

Multiargument overload.

print
W print(W w, T c)

Prints enums

print
W print(W w, bool c)

Prints boolean

print
W print(W w, V[K] c)

Prints associative array

print
W print(W w, const(T)[] c)

Prints array

print
W print(W w, char c)

Prints escaped character in the form 'c'.

print
W print(W w, const(C)[] c)

Prints some string

print
W print(W w, I c)

Prints integers

print
W print(W w, T c, NumericSpec spec)

Prints floating point numbers

print
W print(W w, T c)

Prints structs and unions

print
W print(W w, T c)

Prints classes and interfaces

printBoolean
size_t printBoolean(bool c, C[5] buf)
printElement
W printElement(W w, const(C)[] c)
printElement
W printElement(W w, T c)
printEscaped
W printEscaped(W w, const(C)[] str)
printStaticString
W printStaticString(W w, C[N] c)
printZeroPad
W printZeroPad(W w, I c, size_t minimalLength)
put_uXXXX
W put_uXXXX(W w, char c)

Decodes char c to the form u00XX, where XX is 2 hexadecimal characters.

put_uXXXX
W put_uXXXX(W w, ushort c)

Decodes ushort c to the form uXXXX, where XXXX is 2 hexadecimal characters.

put_xXX
W put_xXX(W w, char c)

Decodes char c to the form u00XX, where XX is 2 hexadecimal characters.

text
string text(Args args)

Concatenated string results

withFormat
FormattedFloating!T withFormat(T value, FormatSpec spec)

Wrapper to format floating point numbers using C's library.

Manifest constants

getData
enum getData;

Mixin templates

StreamFormatOp
mixintemplate StreamFormatOp(C)

Structs

FormatSpec
struct FormatSpec

C's compatible format specifier.

FormattedFloating
struct FormattedFloating(T)

Wrapper to format floating point numbers using C's library.

GetData
struct GetData
HexAddress
struct HexAddress(T)
NumericSpec
struct NumericSpec

Mir's numeric format specification

_stringBuf
struct _stringBuf(C)

Templates

isFastBuffer
template isFastBuffer(W)
Undocumented in source.

Meta

License

Apache-2.0

Authors

Ilya Yaroshenko