more.format

Undocumented in source.

Members

Aliases

StringSink
alias StringSink = void delegate(const(char)[])

An alias to the common sink delegate used for string formatting.

toHexLower
alias toHexLower = toHex!(Case.lower)
Undocumented in source.
toHexUpper
alias toHexUpper = toHex!(Case.upper)
Undocumented in source.

Enums

Case
enum Case

Used for selecting either lower or upper case for certain kinds of formatting, such as hex.

Functions

asciiFormatEscaped
auto asciiFormatEscaped(const(char)[] str)
Undocumented in source. Be warned that the author may not have intended to support it.
asciiIsUnreadable
bool asciiIsUnreadable(char c)
Undocumented in source. Be warned that the author may not have intended to support it.
asciiWriteEscaped
void asciiWriteEscaped(void delegate(const(char)[]) sink, const(char)* ptr, char* limit)
Undocumented in source. Be warned that the author may not have intended to support it.
asciiWriteUnreadable
void asciiWriteUnreadable(void delegate(const(char)[]) sink, char c)
Undocumented in source.
formatEscapeByPolicy
auto formatEscapeByPolicy(const(char)[] str)
Undocumented in source. Be warned that the author may not have intended to support it.
formatEscapeSet
auto formatEscapeSet(const(char)[] str)
Undocumented in source. Be warned that the author may not have intended to support it.
formatHex
auto formatHex(const(T)[] array)
Undocumented in source. Be warned that the author may not have intended to support it.
putf
void putf(R outputRange, string fmt, U args)

Append a formatted string into a character OutputRange

toHex
char toHex(ubyte b)

Converts a 4-bit nibble to the corresponding hex character (0-9 or A-F).

utf8FormatEscaped
auto utf8FormatEscaped(const(char)[] str)
Undocumented in source. Be warned that the author may not have intended to support it.
utf8FormatEscaped
auto utf8FormatEscaped(dchar c)
Undocumented in source. Be warned that the author may not have intended to support it.
utf8IsUnreadable
bool utf8IsUnreadable(dchar c)
Undocumented in source. Be warned that the author may not have intended to support it.
utf8WriteEscaped
void utf8WriteEscaped(void delegate(const(char)[]) sink, const(char)* ptr, char* limit)
Undocumented in source. Be warned that the author may not have intended to support it.
utf8WriteUnreadable
void utf8WriteUnreadable(void delegate(const(char)[]) sink, dchar c)
Undocumented in source.

Structs

DelegateFormatter
struct DelegateFormatter

A delegate formatter allows a delegate to behave as format function. A common use case for this would be to have multiple ways to format a class.

Meta