Rudiments: /home/dmuse/temp/rudiments/include/rudiments/private/csvdom.h Source File

Rudiments

csvdom.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3
4 friend class csvdomnode;
5 protected:
6 void init(bool stringcacheenabled);
7 void reset();
8
9 domnode *getColumn(uint64_t position);
10 domnode *getColumn(const char *name);
11
12 bool caseColumn(domnode *c, bool upper);
13 bool caseColumns(bool upper);
14
15 bool trimNode(domnode *node, bool left, bool right);
16 bool trimColumns(bool left, bool right);
17
18 void setValue(domnode *node,
19 const char *name, bool quoted);
20
21 bool renameColumn(const char *oldname,
22 uint64_t position, bool useposition,
23 const char *name, bool quoted);
24
25 bool insertColumnAt(uint64_t position,
26 const char *name, bool quoted);
27
28 bool insertRowAt(uint64_t position);
29
30 bool trimField(uint64_t row, uint64_t column,
31 bool left, bool right);
32
33 void trimFields(bool left, bool right);
34
35 void writeValue(output *out, domnode *value) const;
36
37 csvdom(const csvdom &x);
38 csvdom &operator=(const csvdom &x);
39
40 private:
41 csvdomprivate *pvt;
csvdom
Definition: csvdom.h:10
domnode
Definition: domnode.h:122
output
Definition: output.h:9