dplug.core.string

String build code, plus no-locale float parsing functions.

Members

Functions

convertStringToDouble
double convertStringToDouble(const(char)* s, bool mustConsumeEntireInput, bool* err)

C-locale independent string to float parsing.

convertStringToInteger
int convertStringToInteger(const(char)* s, bool mustConsumeEntireInput, bool* err)

C-locale independent string to integer parsing.

makeString
String makeString(const(char)[] s)

Create a String from a D string.

strtod_nolocale
double strtod_nolocale(const(char)* s, const(char)** p)

strtod replacement, but without locale s Must be a zero-terminated string. Note that this code is duplicated in wren-port, to avoid a dependency on dplug:core there.

Structs

String
struct String

For now, just a string builder that owns its memory. Dplug String, designed to ease the usage of all the C string function, allow appending, etc. String always owns its memory, and can return as a D slice. FUTURE: use realloc to be able to size down. Capacity to be a slice into existing memory and not own. Capacity to disown memory (implies: stop using Vec) QUESTION: should String just be a managed slice!T instead? Like Go slices.

Meta