nulib.conv

nulib conversion functions.

Members

Aliases

text
alias text = to_string

Converts the given value to a string.

toFloat
alias toFloat = to_floating

Converts the given string slice to an floating point value.

toHexString
alias toHexString = to_hex_string

Converts the given value to a hexidecimal string.

toInt
alias toInt = to_integral

Converts the given string slice to an integral value.

toOctalString
alias toOctalString = to_oct_string

Converts the given value to a octal string.

Functions

parseHex
T parseHex(S source)

Parses a hexidecimal number from the source.

to_floating
T to_floating(inout(char)[] str)

Converts the given string slice to an floating point value.

to_hex_string
nstring to_hex_string(T value, bool lowercase)

Converts the given value to a hexidecimal string.

to_integral
T to_integral(inout(char)[] str, int base)

Converts the given string slice to an integral value.

to_oct_string
nstring to_oct_string(T value)

Converts the given value to a octal string.

to_string
nstring to_string(T value)

Converts the given value to a string.

Meta

Authors

Luna Nielsen