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

Method getLine

src/common/config/config_file.cpp:74–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72 }
73
74 bool getLine(ConfigFile::String& input, unsigned int& line)
75 {
76 input = "";
77 if (!file)
78 {
79 return false;
80 }
81
82 // this loop efficiently skips almost all empty lines
83 do
84 {
85 if (feof(file))
86 {
87 return false;
88 }
89 if (!input.LoadFromFile(file))
90 {
91 return false;
92 }
93 ++l;
94 input.alltrim(" \t\r");
95 } while (input.isEmpty());
96
97 line = l;
98 return true;
99 }
100
101 bool active() const
102 {

Callers

nothing calls this directly

Calls 4

feofFunction · 0.85
LoadFromFileMethod · 0.80
alltrimMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected