1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_text_SimpleDateFormat__
|
5 |
|
|
#define __java_text_SimpleDateFormat__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/text/DateFormat.h>
|
10 |
|
|
extern "Java"
|
11 |
|
|
{
|
12 |
|
|
namespace gnu
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace text
|
17 |
|
|
{
|
18 |
|
|
class FormatBuffer;
|
19 |
|
|
}
|
20 |
|
|
}
|
21 |
|
|
}
|
22 |
|
|
namespace java
|
23 |
|
|
{
|
24 |
|
|
namespace text
|
25 |
|
|
{
|
26 |
|
|
class AttributedCharacterIterator;
|
27 |
|
|
class DateFormatSymbols;
|
28 |
|
|
class FieldPosition;
|
29 |
|
|
class ParsePosition;
|
30 |
|
|
class SimpleDateFormat;
|
31 |
|
|
}
|
32 |
|
|
}
|
33 |
|
|
}
|
34 |
|
|
|
35 |
|
|
class java::text::SimpleDateFormat : public ::java::text::DateFormat
|
36 |
|
|
{
|
37 |
|
|
|
38 |
|
|
void readObject(::java::io::ObjectInputStream *);
|
39 |
|
|
void compileFormat(::java::lang::String *);
|
40 |
|
|
public:
|
41 |
|
|
virtual ::java::lang::String * toString();
|
42 |
|
|
SimpleDateFormat();
|
43 |
|
|
SimpleDateFormat(::java::lang::String *);
|
44 |
|
|
SimpleDateFormat(::java::lang::String *, ::java::util::Locale *);
|
45 |
|
|
SimpleDateFormat(::java::lang::String *, ::java::text::DateFormatSymbols *);
|
46 |
|
|
virtual ::java::lang::String * toPattern();
|
47 |
|
|
virtual ::java::lang::String * toLocalizedPattern();
|
48 |
|
|
virtual void applyPattern(::java::lang::String *);
|
49 |
|
|
virtual void applyLocalizedPattern(::java::lang::String *);
|
50 |
|
|
private:
|
51 |
|
|
::java::lang::String * translateLocalizedPattern(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
|
52 |
|
|
public:
|
53 |
|
|
virtual ::java::util::Date * get2DigitYearStart();
|
54 |
|
|
virtual void set2DigitYearStart(::java::util::Date *);
|
55 |
|
|
virtual ::java::text::DateFormatSymbols * getDateFormatSymbols();
|
56 |
|
|
virtual void setDateFormatSymbols(::java::text::DateFormatSymbols *);
|
57 |
|
|
virtual jboolean equals(::java::lang::Object *);
|
58 |
|
|
virtual jint hashCode();
|
59 |
|
|
private:
|
60 |
|
|
void formatWithAttribute(::java::util::Date *, ::gnu::java::text::FormatBuffer *, ::java::text::FieldPosition *);
|
61 |
|
|
public:
|
62 |
|
|
virtual ::java::lang::StringBuffer * format(::java::util::Date *, ::java::lang::StringBuffer *, ::java::text::FieldPosition *);
|
63 |
|
|
virtual ::java::text::AttributedCharacterIterator * formatToCharacterIterator(::java::lang::Object *);
|
64 |
|
|
private:
|
65 |
|
|
void withLeadingZeros(jint, jint, ::gnu::java::text::FormatBuffer *);
|
66 |
|
|
jboolean expect(::java::lang::String *, ::java::text::ParsePosition *, jchar);
|
67 |
|
|
public:
|
68 |
|
|
virtual ::java::util::Date * parse(::java::lang::String *, ::java::text::ParsePosition *);
|
69 |
|
|
private:
|
70 |
|
|
::java::lang::Integer * computeOffset(::java::lang::String *, ::java::text::ParsePosition *);
|
71 |
|
|
void computeCenturyStart();
|
72 |
|
|
public:
|
73 |
|
|
virtual ::java::lang::Object * clone();
|
74 |
|
|
private:
|
75 |
|
|
::java::util::ArrayList * __attribute__((aligned(__alignof__( ::java::text::DateFormat)))) tokens;
|
76 |
|
|
::java::text::DateFormatSymbols * formatData;
|
77 |
|
|
::java::util::Date * defaultCenturyStart;
|
78 |
|
|
jint defaultCentury;
|
79 |
|
|
::java::lang::String * pattern;
|
80 |
|
|
jint serialVersionOnStream;
|
81 |
|
|
static const jlong serialVersionUID = 4774881970558875024LL;
|
82 |
|
|
static ::java::lang::String * standardChars;
|
83 |
|
|
static const jint RFC822_TIMEZONE_FIELD = 23;
|
84 |
|
|
public:
|
85 |
|
|
static ::java::lang::Class class$;
|
86 |
|
|
};
|
87 |
|
|
|
88 |
|
|
#endif // __java_text_SimpleDateFormat__
|