188 |
{ |
{ |
189 |
char c = 0; |
char c = 0; |
190 |
int pos = 0; |
int pos = 0; |
191 |
|
// If empty line or begins with a comment character, skip this line. |
192 |
|
if (line.length() == 0 |
193 |
|
|| line.charAt(0) == '#' || line.charAt(0) == '!') |
194 |
|
continue; |
195 |
|
|
196 |
while (pos < line.length() |
while (pos < line.length() |
197 |
&& Character.isWhitespace(c = line.charAt(pos))) |
&& Character.isWhitespace(c = line.charAt(pos))) |
198 |
pos++; |
pos++; |
199 |
|
|
200 |
// If line is empty or begins with a comment character, |
// If line is empty skip this line. |
201 |
// skip this line. |
if (pos == line.length()) |
|
if (pos == line.length() || c == '#' || c == '!') |
|
202 |
continue; |
continue; |
203 |
|
|
204 |
// The characters up to the next Whitespace, ':', or '=' |
// The characters up to the next Whitespace, ':', or '=' |