Lines Matching defs:line
101 wxString line;
108 if (line.IsEmpty()) {
110 // Empty line.
130 line += conv.cMB2WC(buffer);
133 if (line.Length() && (line.Last() == wxT('\n'))) {
134 if ((line.Length() > 1)) {
135 if (line[line.Length() - 2] == wxT('\r')) {
137 line.RemoveLast(2);
140 line.RemoveLast(1);
143 // Empty line
144 line.Clear();
147 // We've read an entire line.
151 // Filtered line.
158 line = line.Strip(wxString::both);
161 if ((flags & txtIgnoreEmptyLines) && line.IsEmpty()) {
170 return line;
174 bool CTextFile::WriteLine(const wxString& line, const wxMBConv& conv)
180 wxString result = wxTextBuffer::Translate(line);
182 // Only add line-breaks between lines, as otherwise the number of
183 // lines would grow as the result of the addition of an empty line,
207 wxString line = GetNextLine(flags, conv, &result);
210 lines.Add(line);