The OpenD Programming Language

mir.format

@nogc Formatting Utilities

Members

Enums

CollectionStyle
enum CollectionStyle

Collection styles

EscapeFormat
enum EscapeFormat

Escaped string formats

StringStyle
enum StringStyle

Scalar styles.

SwitchLU
enum SwitchLU
hexAddress
HexAddress!T hexAddress(T value, SwitchLU switchLU)

Functions

print
void print(W w, Args args)

Multiargument overload.

print
void print(W w, T c)

Prints enums

print
void print(W w, bool c)

Prints boolean

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

Prints associative array

print
void print(W w, V c)

Prints null

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

Prints array

print
void print(W w, char c)

Prints escaped character in the form 'c'.

print
void print(W w, dchar c)

Prints escaped character in the form 'c'.

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

Prints some string

print
void print(W w, I c)

Prints integers

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

Prints floating point numbers

print
void print(W w, T c)

Prints structs and unions

print
void print(W w, T c)

Prints classes and interfaces

print
void print(W w, T* c)

Prints pointers

printArray
void printArray(W w, const(T)[] c, const(C)[] lb, const(C)[] rb, const(C)[] sep)

Prints array

printBoolean
size_t printBoolean(bool c, C[5] buf)
printElement
void printElement(W w, const(C)[] c)
printElement
void printElement(W w, T c)
printEscaped
void printEscaped(W w, const(C)[] str)
printHexArray
void printHexArray(W w, const(T)[] c, const(C)[] lb, const(C)[] rb, const(C)[] sep)

Prints array as hex values

printReplaced
void printReplaced(W w, const(C)[] str, C c, const(C)[] to)
printStaticString
void printStaticString(W w, C[N] c)
printZeroPad
void printZeroPad(W w, I c, size_t minimalLength)
put_UXXXXXXXX
void put_UXXXXXXXX(W w, uint c)

Decodes uint c to the form \UXXXXXXXX, where XXXXXXXX is 2 hexadecimal characters.

put_uXXXX
void put_uXXXX(W w, char c)

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

put_uXXXX
void put_uXXXX(W w, ushort c)

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

put_xXX
void put_xXX(W w, char c)

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

stringBuf
auto stringBuf()
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, uint scopeSize = 256)

Meta

Authors

Ilia Ki