diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-11-18 21:07:42 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-11-18 22:21:55 +0100 |
commit | e5992129905aacf34fad391ec19feeeec83a6714 (patch) | |
tree | 6e49fb793d3a09a79e69c912ee6f2c6f1357538b | |
parent | 1d6438252f6bdfc2814d13c2022b06c97b118c30 (diff) |
sax: these are for XMLSchema-2 duration/date/dateTime, not "ISO"
ISO 8601 is a little more lenient in its lexical representation.
Change-Id: I92834a2a1d3c0c37203c13d17e8ae42a1cfe9e1c
-rw-r--r-- | include/sax/tools/converter.hxx | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/sax/tools/converter.hxx b/include/sax/tools/converter.hxx index d30e8b67bf0f..072c3b438d6e 100644 --- a/include/sax/tools/converter.hxx +++ b/include/sax/tools/converter.hxx @@ -145,49 +145,49 @@ public: /** convert SVG angle to number, 10th of degrees with range [0..3600] */ static bool convertAngle(sal_Int16& rAngle, OUString const& rString); - /** convert double to ISO "duration" string; negative durations allowed */ + /** convert double to XMLSchema-2 "duration" string; negative durations allowed */ static void convertDuration(OUStringBuffer& rBuffer, const double fTime); - /** convert util::Duration to ISO "duration" string */ + /** convert util::Duration to XMLSchema-2 "duration" string */ static void convertDuration(OUStringBuffer& rBuffer, const css::util::Duration& rDuration); - /** convert ISO "duration" string to double; negative durations allowed */ + /** convert XMLSchema-2 "duration" string to double; negative durations allowed */ static bool convertDuration(double & rfTime, const OUString& rString); - /** convert ISO "duration" string to util::Duration */ + /** convert XMLSchema-2 "duration" string to util::Duration */ static bool convertDuration(css::util::Duration& rDuration, const OUString& rString); - /** convert util::Date to ISO "date" string */ + /** convert util::Date to XMLSchema-2 "date" string */ static void convertDate( OUStringBuffer& rBuffer, const css::util::Date& rDate, sal_Int16 const* pTimeZoneOffset); - /** convert util::DateTime to ISO "date" or "dateTime" string */ + /** convert util::DateTime to XMLSchema-2 "date" or "dateTime" string */ static void convertDateTime( OUStringBuffer& rBuffer, const css::util::DateTime& rDateTime, sal_Int16 const* pTimeZoneOffset, bool bAddTimeIf0AM = false ); - /** convert util::DateTime to ISO "time" or "dateTime" string */ + /** convert util::DateTime to XMLSchema-2 "time" or "dateTime" string */ static void convertTimeOrDateTime(OUStringBuffer& rBuffer, const css::util::DateTime& rDateTime, sal_Int16 const* pTimeZoneOffset); - /** convert ISO "date" or "dateTime" string to util::DateTime */ + /** convert XMLSchema-2 "date" or "dateTime" string to util::DateTime */ static bool parseDateTime( css::util::DateTime& rDateTime, boost::optional<sal_Int16> * pTimeZoneOffset, const OUString& rString ); - /** convert ISO "time" or "dateTime" string to util::DateTime */ + /** convert XMLSchema-2 "time" or "dateTime" string to util::DateTime */ static bool parseTimeOrDateTime(css::util::DateTime& rDateTime, boost::optional<sal_Int16> * pTimeZoneOffset, const OUString& rString); - /** convert ISO "date" or "dateTime" string to util::DateTime or + /** convert XMLSchema-2 "date" or "dateTime" string to util::DateTime or util::Date */ static bool parseDateOrDateTime( css::util::Date * pDate, |