/[classpath]/classpath/java/util/Properties.java
ViewVC logotype

Diff of /classpath/java/util/Properties.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22 by tromey, Mon Feb 17 01:45:36 2003 UTC revision 1.23 by mark, Sun Mar 2 22:23:11 2003 UTC
# Line 188  label   = Name:\\u0020</pre> Line 188  label   = Name:\\u0020</pre>
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 '='

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26