The OpenD Programming Language

CsvSerializer

struct CsvSerializer (
Appender
) {}

Members

Aliases

sexpBegin
alias sexpBegin = listBegin
sexpElemBegin
alias sexpElemBegin = elemBegin
sexpEnd
alias sexpEnd = listEnd

Functions

annotationWrapperBegin
size_t annotationWrapperBegin(size_t length)
annotationWrapperEnd
void annotationWrapperEnd(size_t annotationsState, size_t state)
annotationsEnd
auto annotationsEnd(size_t state)
elemBegin
void elemBegin()
listBegin
size_t listBegin(size_t length)
listEnd
void listEnd(size_t state)
nextTopLevelValue
void nextTopLevelValue()
putAnnotation
void putAnnotation(const(char)[] annotation)
putKey
void putKey(char[] key)
putNull
void putNull(IonTypeCode code)
putStringPart
void putStringPart(const(char)[] value)

Puts string part. The implementation allows to split string unicode points.

putSymbol
void putSymbol(char[] symbol)
putValue
void putValue(Num value)
putValue
void putValue(BigInt!size num)
putValue
void putValue(Decimal!size num)
putValue
void putValue(typeof(null) )
putValue
void putValue(bool b)
putValue
void putValue(char[] value, bool noQuote)
putValue
void putValue(Clob value)
putValue
void putValue(Blob value)
putValue
void putValue(Timestamp value)
stringBegin
size_t stringBegin()
stringEnd
void stringEnd(size_t )
structBegin
size_t structBegin(size_t length)
structEnd
void structEnd(size_t state)

Variables

appender
Appender* appender;

CSV string buffer

falseValue
string falseValue;
naValue
string naValue;
quote
char quote;

Symbol to quote scalars

quoteAll
bool quoteAll;
separator
char separator;

Scalar separator

serdeTarget
int serdeTarget;

Mutable value used to choose format specidied or user-defined serialization specializations

trueValue
string trueValue;

Meta