PR libgcj/13062:
* java/io/StreamTokenizer.java (commentChar): Clear other
attributes for character.
(quoteChar): Likewise.
From-SVN: r73653
+2003-11-16 Tom Tromey <tromey@redhat.com>
+
+ PR libgcj/13062:
+ * java/io/StreamTokenizer.java (commentChar): Clear other
+ attributes for character.
+ (quoteChar): Likewise.
+
2003-11-14 Tom Fitzsimmons <fitzsim@redhat.com>
* java/awt/GridBagLayout.java (getLayoutDimensions): Return array of two
2003-11-14 Tom Fitzsimmons <fitzsim@redhat.com>
* java/awt/GridBagLayout.java (getLayoutDimensions): Return array of two
/* StreamTokenizer.java -- parses streams of characters into tokens
/* StreamTokenizer.java -- parses streams of characters into tokens
- Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation
+ Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation
This file is part of GNU Classpath.
This file is part of GNU Classpath.
- * This method sets the comment attribute on the specified character.
+ * This method sets the comment attribute on the specified
+ * character. Other attributes for the character are cleared.
*
* @param c The character to set the comment attribute for, passed as an int
*/
public void commentChar(int ch)
{
if (ch >= 0 && ch <= 255)
*
* @param c The character to set the comment attribute for, passed as an int
*/
public void commentChar(int ch)
{
if (ch >= 0 && ch <= 255)
+ {
+ comment[ch] = true;
+ whitespace[ch] = false;
+ alphabetic[ch] = false;
+ numeric[ch] = false;
+ quote[ch] = false;
+ }
/**
* This method sets the quote attribute on the specified character.
/**
* This method sets the quote attribute on the specified character.
+ * Other attributes for the character are cleared.
*
* @param c The character to set the quote attribute for, passed as an int.
*/
public void quoteChar(int ch)
{
if (ch >= 0 && ch <= 255)
*
* @param c The character to set the quote attribute for, passed as an int.
*/
public void quoteChar(int ch)
{
if (ch >= 0 && ch <= 255)
+ {
+ quote[ch] = true;
+ comment[ch] = false;
+ whitespace[ch] = false;
+ alphabetic[ch] = false;
+ numeric[ch] = false;
+ }