From 06305f5d71c779a3fa2cd514ec34ee443bd0e5f9 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 29 Oct 2018 22:33:15 +0000 Subject: 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 Commit-Queue: Tom Sepez --- fxjs/cjs_publicmethods.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'fxjs/cjs_publicmethods.h') 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( -- cgit v1.2.3