mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 17:01:16 +00:00
ICU-25 Redeclarations of format/parse needed in Format hierarchy
X-SVN-Rev: 91
This commit is contained in:
parent
1c8fd5a39c
commit
72df8a58c8
1 changed files with 24 additions and 0 deletions
|
@ -288,6 +288,18 @@ public:
|
|||
FieldPosition& pos,
|
||||
UErrorCode& status) const;
|
||||
|
||||
/**
|
||||
* Redeclared DateFormat method.
|
||||
*/
|
||||
UnicodeString& format(const Formattable& obj,
|
||||
UnicodeString& result,
|
||||
UErrorCode& status) const;
|
||||
|
||||
/**
|
||||
* Redeclared DateFormat method.
|
||||
*/
|
||||
UnicodeString& format(UDate date, UnicodeString& result) const;
|
||||
|
||||
/**
|
||||
* Parse a date/time string starting at the given parse position. For
|
||||
* example, a time text "07/10/96 4:5 PM, PDT" will be parsed into a Date
|
||||
|
@ -709,5 +721,17 @@ SimpleDateFormat::get2DigitYearStart(UErrorCode& status) const
|
|||
return fDefaultCenturyStart;
|
||||
}
|
||||
|
||||
inline UnicodeString&
|
||||
SimpleDateFormat::format(const Formattable& obj,
|
||||
UnicodeString& result,
|
||||
UErrorCode& status) const {
|
||||
return DateFormat::format(obj, result, status);
|
||||
}
|
||||
|
||||
inline UnicodeString&
|
||||
SimpleDateFormat::format(UDate date, UnicodeString& result) const {
|
||||
return DateFormat::format(date, result);
|
||||
}
|
||||
|
||||
#endif // _SMPDTFMT
|
||||
//eof
|
||||
|
|
Loading…
Add table
Reference in a new issue