dyaml.nogcutil

@nogc versions of or alternatives to Phobos functions that are not yet @nogc and wrappers to simplify their use.

Members

Aliases

decodeValidUTF8NoGC
alias decodeValidUTF8NoGC = decodeUTF8NoGC!(Yes.validated)

@nogc version of std.utf.decode() for char[], but assumes str is valid UTF-8.

encodeValidCharNoGC
alias encodeValidCharNoGC = encodeCharNoGC!(Yes.validated)

@nogc version of std.utf.encode() for char[], but assumes c is a valid UTF-32 char.

Functions

appenderNoGC
AppenderNoGCFixed!(E[]) appenderNoGC(A array)

Convenience function that returns an AppenderNoGCFixed!A using with array for storage.

decodeUTF8NoGC
auto decodeUTF8NoGC(const(char[]) str, ref size_t index)

@nogc version of std.utf.decode() for char[].

encodeCharNoGC
auto encodeCharNoGC(ref char[4] buf, dchar c)

@nogc version of std.utf.encode() for char[].

isValidDchar
bool isValidDchar(dchar c)

@nogc version of std.utf.isValidDchar

parseNoGC
Target parseNoGC(ref Source s, uint radix, out bool overflow)

A NoGC version of std.conv.parse for integer types.

printNoGC
char[] printNoGC(char[] buffer, S args)

Buils a message to a buffer similarly to writef/writefln, but without using GC.

putDChar
void putDChar(ref AppenderNoGCFixed!(char[], char) appender, dchar c)

A UFCS utility function to write a dchar to an AppenderNoGCFixed using writeDCharTo.

validateUTF8NoGC
ValidateResult validateUTF8NoGC(const(char[]) str)

Validate a UTF-8 string, checking if it is well-formed Unicode.

Structs

AppenderNoGCFixed
struct AppenderNoGCFixed(A : T[], T)

A gutted, NoGC version of std.array.appender.

ValidateResult
struct ValidateResult

Result of a validateUTF8NoGC call.

Meta