1 |
/* StreamTokenizer.java -- parses streams of characters into tokens |
/* StreamTokenizer.java -- parses streams of characters into tokens |
2 |
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation |
Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
167 |
} |
} |
168 |
|
|
169 |
/** |
/** |
170 |
* This method sets the comment attribute on the specified character. |
* This method sets the comment attribute on the specified |
171 |
|
* character. Other attributes for the character are cleared. |
172 |
* |
* |
173 |
* @param c The character to set the comment attribute for, passed as an int |
* @param c The character to set the comment attribute for, passed as an int |
174 |
*/ |
*/ |
175 |
public void commentChar(int ch) |
public void commentChar(int ch) |
176 |
{ |
{ |
177 |
if (ch >= 0 && ch <= 255) |
if (ch >= 0 && ch <= 255) |
178 |
comment[ch] = true; |
{ |
179 |
|
comment[ch] = true; |
180 |
|
whitespace[ch] = false; |
181 |
|
alphabetic[ch] = false; |
182 |
|
numeric[ch] = false; |
183 |
|
quote[ch] = false; |
184 |
|
} |
185 |
} |
} |
186 |
|
|
187 |
/** |
/** |
573 |
|
|
574 |
/** |
/** |
575 |
* This method sets the quote attribute on the specified character. |
* This method sets the quote attribute on the specified character. |
576 |
|
* Other attributes for the character are cleared. |
577 |
* |
* |
578 |
* @param c The character to set the quote attribute for, passed as an int. |
* @param c The character to set the quote attribute for, passed as an int. |
579 |
*/ |
*/ |
580 |
public void quoteChar(int ch) |
public void quoteChar(int ch) |
581 |
{ |
{ |
582 |
if (ch >= 0 && ch <= 255) |
if (ch >= 0 && ch <= 255) |
583 |
quote[ch] = true; |
{ |
584 |
|
quote[ch] = true; |
585 |
|
comment[ch] = false; |
586 |
|
whitespace[ch] = false; |
587 |
|
alphabetic[ch] = false; |
588 |
|
numeric[ch] = false; |
589 |
|
} |
590 |
} |
} |
591 |
|
|
592 |
/** |
/** |