summaryrefslogtreecommitdiff
path: root/fxjs/cjs_publicmethods.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-29 22:33:15 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-29 22:33:15 +0000
commit06305f5d71c779a3fa2cd514ec34ee443bd0e5f9 (patch)
tree98f455769b75c3afc8b4b96d8363feebdcfdcc15 /fxjs/cjs_publicmethods.h
parent2dd06eb37dd9cb31746b1ab7e9ed306b2a12a3b7 (diff)
downloadpdfium-06305f5d71c779a3fa2cd514ec34ee443bd0e5f9.tar.xz
Rename CJS_PublicMethods::MakeFormatDate() and MakeRegularDate()
One converts a date into a string, and the other converts a string into a date, so name them after the parse/print convention. Change-Id: I35ea375cecc361c48eb3809fc62c77202335f696 Reviewed-on: https://pdfium-review.googlesource.com/c/44830 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjs_publicmethods.h')
-rw-r--r--fxjs/cjs_publicmethods.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/fxjs/cjs_publicmethods.h b/fxjs/cjs_publicmethods.h
index 975ba6e9d4..0b72fb3e0a 100644
--- a/fxjs/cjs_publicmethods.h
+++ b/fxjs/cjs_publicmethods.h
@@ -18,12 +18,13 @@ class CJS_PublicMethods final : public CJS_Object {
~CJS_PublicMethods() override;
static void DefineJSObjects(CFXJS_Engine* pEngine);
- static double MakeRegularDate(const WideString& value,
- const WideString& format,
- bool* bWrongFormat);
+ static double ParseDateUsingFormat(const WideString& value,
+ const WideString& format,
+ bool* bWrongFormat);
// Exposed for testing.
- static WideString MakeFormatDate(double dDate, const WideString& format);
+ static WideString PrintDateUsingFormat(double dDate,
+ const WideString& format);
static bool IsNumber(const WideString& str);
static CJS_Result AFNumber_Format(