#include <csv_read_line.h>
Definition at line 22 of file csv_read_line.h.
◆ CSVReadLine()
| CSVReadLine::CSVReadLine |
( |
| ) |
|
◆ ~CSVReadLine()
| CSVReadLine::~CSVReadLine |
( |
| ) |
|
◆ finalize()
| bool CSVReadLine::finalize |
( |
| ) |
|
|
private |
◆ nextField()
| QString CSVReadLine::nextField |
( |
| ) |
|
Definition at line 55 of file csv_read_line.cpp.
56{
58 char *ptr;
59 char c;
61
63
64 if (
p < 0)
return QString();
65
66 ptr= strBuf;
68
70 ptr[0]= 0;
72 return QString(strBuf);
73 }
75 } while((c == ' ') || (c == '\t'));
76
77 i= 0;
78
79 if (c == '\"') {
80
83
84 if (c == '\"') {
85
87
89
90
92 }
94 ptr[i++]= c;
95 }
96
100 }
101 } else {
102
105 ptr[i++]= c;
106
108
110 }
111
112 while(i > 0) {
113 c= ptr[--i];
114 if ((c != ' ') && (c != '\t') &&
115 (c != '\r') && (c != '\n')) {
116 ++i;
117 break;
118 }
119 }
120 }
121 ptr[i]= 0;
123 return QString(strBuf);
124}
constexpr std::enable_if< sizeof...(values)==0, size_t >::type max()
References CSV_FIELD_MAX, m_linebuf, m_pos, m_separator, and p.
◆ nextLine()
| int CSVReadLine::nextLine |
( |
QIODevice * | io | ) |
|
◆ readFrame()
| bool CSVReadLine::readFrame |
( |
int * | pos | ) |
|
|
private |
◆ readImpl()
| int CSVReadLine::readImpl |
( |
QIODevice * | io | ) |
|
|
private |
◆ rewind()
| void CSVReadLine::rewind |
( |
| ) |
|
◆ setLayer()
◆ splitNext()
| QString CSVReadLine::splitNext |
( |
int * | pos | ) |
|
|
private |
◆ m_linebuf
| QByteArray CSVReadLine::m_linebuf |
|
private |
◆ m_pos
◆ m_row
◆ m_separator
| char CSVReadLine::m_separator |
|
private |
The documentation for this class was generated from the following files: