MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / getLine

Method getLine

src/common/config/config_file.cpp:129–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127 }
128
129 bool getLine(ConfigFile::String& input, unsigned int& line)
130 {
131 do
132 {
133 if (!s)
134 {
135 input = "";
136 return false;
137 }
138
139 const char* ptr = strchr(s, '\n');
140 if (!ptr)
141 {
142 input.assign(s);
143 s = NULL;
144 }
145 else
146 {
147 input.assign(s, ptr - s);
148 s = ptr + 1;
149 if (!*s)
150 {
151 s = NULL;
152 }
153 }
154
155 ++l;
156 input.alltrim(" \t\r");
157 } while (input.isEmpty());
158
159 line = l;
160 return true;
161 }
162
163 const char* getFileName() const
164 {

Callers

nothing calls this directly

Calls 3

alltrimMethod · 0.80
assignMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected