1 |
/* SimpleDateFormat.java -- A class for parsing/formating simple |
/* SimpleDateFormat.java -- A class for parsing/formating simple |
2 |
date constructs |
date constructs |
3 |
Copyright (C) 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004 |
4 |
|
Free Software Foundation, Inc. |
5 |
|
|
6 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
7 |
|
|
420 |
* appending to the specified StringBuffer. The input StringBuffer |
* appending to the specified StringBuffer. The input StringBuffer |
421 |
* is returned as output for convenience. |
* is returned as output for convenience. |
422 |
*/ |
*/ |
423 |
final private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) |
private void formatWithAttribute(Date date, FormatBuffer buffer, FieldPosition pos) |
424 |
{ |
{ |
425 |
String temp; |
String temp; |
426 |
AttributedCharacterIterator.Attribute attribute; |
AttributedCharacterIterator.Attribute attribute; |
585 |
buffer.append(valStr); |
buffer.append(valStr); |
586 |
} |
} |
587 |
|
|
588 |
private final boolean expect (String source, ParsePosition pos, char ch) |
private boolean expect(String source, ParsePosition pos, char ch) |
589 |
{ |
{ |
590 |
int x = pos.getIndex(); |
int x = pos.getIndex(); |
591 |
boolean r = x < source.length() && source.charAt(x) == ch; |
boolean r = x < source.length() && source.charAt(x) == ch; |