From e5992129905aacf34fad391ec19feeeec83a6714 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Fri, 18 Nov 2016 21:07:42 +0100 Subject: 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 --- include/sax/tools/converter.hxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'include/sax') 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 * 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 * 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, -- cgit