Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
fxjs Namespace Reference

Classes

class  GCedTreeNode
class  GCedTreeNodeMixin

Enumerations

enum class  ConversionStatus { kSuccess = 0 , kBadFormat , kBadDate }

Functions

double FX_GetDateTime ()
int FX_GetYearFromTime (double dt)
int FX_GetMonthFromTime (double dt)
int FX_GetDayFromTime (double dt)
int FX_GetHourFromTime (double dt)
int FX_GetMinFromTime (double dt)
int FX_GetSecFromTime (double dt)
bool FX_IsValidMonth (int m)
bool FX_IsValidDay (int d)
bool FX_IsValid24Hour (int h)
bool FX_IsValidMinute (int m)
bool FX_IsValidSecond (int s)
double FX_LocalTime (double d)
double FX_MakeDay (int nYear, int nMonth, int nDay)
double FX_MakeTime (int nHour, int nMin, int nSec, int nMs)
double FX_MakeDate (double day, double time)
int FX_ParseStringInteger (const WideString &str, size_t nStart, size_t *pSkip, size_t nMaxStep)
ConversionStatus FX_ParseDateUsingFormat (const WideString &value, const WideString &format, double *result)

Variables

const std::array< const char *, 12 > kMonths
const std::array< const char *, 12 > kFullMonths
static constexpr size_t KMonthAbbreviationLength = 3
static constexpr size_t kLongestFullMonthLength = 9

Enumeration Type Documentation

◆ ConversionStatus

enum class fxjs::ConversionStatus
strong
Enumerator
kSuccess 
kBadFormat 
kBadDate 

Definition at line 18 of file fx_date_helpers.h.

Function Documentation

◆ FX_GetDateTime()

double fxjs::FX_GetDateTime ( )

Definition at line 184 of file fx_date_helpers.cpp.

References FXSYS_localtime(), FXSYS_time(), and IsPDFSandboxPolicyEnabled().

Referenced by FX_ParseDateUsingFormat(), and CJS_PublicMethods::ParseDate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FX_GetDayFromTime()

int fxjs::FX_GetDayFromTime ( double dt)

Definition at line 203 of file fx_date_helpers.cpp.

Referenced by FX_ParseDateUsingFormat(), CJS_PublicMethods::ParseDate(), and CJS_PublicMethods::PrintDateUsingFormat().

Here is the caller graph for this function:

◆ FX_GetHourFromTime()

int fxjs::FX_GetHourFromTime ( double dt)

Definition at line 207 of file fx_date_helpers.cpp.

Referenced by FX_ParseDateUsingFormat(), CJS_PublicMethods::ParseDate(), and CJS_PublicMethods::PrintDateUsingFormat().

Here is the caller graph for this function:

◆ FX_GetMinFromTime()

int fxjs::FX_GetMinFromTime ( double dt)

Definition at line 211 of file fx_date_helpers.cpp.

Referenced by FX_ParseDateUsingFormat(), CJS_PublicMethods::ParseDate(), and CJS_PublicMethods::PrintDateUsingFormat().

Here is the caller graph for this function:

◆ FX_GetMonthFromTime()

int fxjs::FX_GetMonthFromTime ( double dt)

Definition at line 199 of file fx_date_helpers.cpp.

Referenced by FX_ParseDateUsingFormat(), CJS_PublicMethods::ParseDate(), CJS_PublicMethods::PrintDateUsingFormat(), and TEST().

Here is the caller graph for this function:

◆ FX_GetSecFromTime()

int fxjs::FX_GetSecFromTime ( double dt)

Definition at line 215 of file fx_date_helpers.cpp.

Referenced by FX_ParseDateUsingFormat(), CJS_PublicMethods::ParseDate(), and CJS_PublicMethods::PrintDateUsingFormat().

Here is the caller graph for this function:

◆ FX_GetYearFromTime()

int fxjs::FX_GetYearFromTime ( double dt)

Definition at line 195 of file fx_date_helpers.cpp.

Referenced by FX_ParseDateUsingFormat(), CJS_PublicMethods::ParseDate(), CJS_PublicMethods::PrintDateUsingFormat(), and TEST().

Here is the caller graph for this function:

◆ FX_IsValid24Hour()

bool fxjs::FX_IsValid24Hour ( int h)

Definition at line 229 of file fx_date_helpers.cpp.

Referenced by FX_ParseDateUsingFormat().

Here is the caller graph for this function:

◆ FX_IsValidDay()

bool fxjs::FX_IsValidDay ( int d)

Definition at line 224 of file fx_date_helpers.cpp.

Referenced by FX_ParseDateUsingFormat().

Here is the caller graph for this function:

◆ FX_IsValidMinute()

bool fxjs::FX_IsValidMinute ( int m)

Definition at line 233 of file fx_date_helpers.cpp.

Referenced by FX_ParseDateUsingFormat().

Here is the caller graph for this function:

◆ FX_IsValidMonth()

bool fxjs::FX_IsValidMonth ( int m)

Definition at line 219 of file fx_date_helpers.cpp.

Referenced by FX_ParseDateUsingFormat().

Here is the caller graph for this function:

◆ FX_IsValidSecond()

bool fxjs::FX_IsValidSecond ( int s)

Definition at line 237 of file fx_date_helpers.cpp.

Referenced by FX_ParseDateUsingFormat().

Here is the caller graph for this function:

◆ FX_LocalTime()

double fxjs::FX_LocalTime ( double d)

Definition at line 241 of file fx_date_helpers.cpp.

Referenced by JS_DateParse().

Here is the caller graph for this function:

◆ FX_MakeDate()

double fxjs::FX_MakeDate ( double day,
double time )

Definition at line 266 of file fx_date_helpers.cpp.

Referenced by FX_ParseDateUsingFormat(), and CJS_PublicMethods::ParseDateAsGMT().

Here is the caller graph for this function:

◆ FX_MakeDay()

double fxjs::FX_MakeDay ( int nYear,
int nMonth,
int nDay )

Definition at line 245 of file fx_date_helpers.cpp.

Referenced by FX_ParseDateUsingFormat(), and CJS_PublicMethods::ParseDateAsGMT().

Here is the caller graph for this function:

◆ FX_MakeTime()

double fxjs::FX_MakeTime ( int nHour,
int nMin,
int nSec,
int nMs )

Definition at line 258 of file fx_date_helpers.cpp.

Referenced by FX_ParseDateUsingFormat(), and CJS_PublicMethods::ParseDateAsGMT().

Here is the caller graph for this function:

◆ FX_ParseDateUsingFormat()

ConversionStatus fxjs::FX_ParseDateUsingFormat ( const WideString & value,
const WideString & format,
double * result )

Definition at line 297 of file fx_date_helpers.cpp.

References fxcrt::WideString::EqualsASCIINoCase(), fxcrt::WideString::FromASCII(), FX_GetDateTime(), FX_GetDayFromTime(), FX_GetHourFromTime(), FX_GetMinFromTime(), FX_GetMonthFromTime(), FX_GetSecFromTime(), FX_GetYearFromTime(), FX_IsValid24Hour(), FX_IsValidDay(), FX_IsValidMinute(), FX_IsValidMonth(), FX_IsValidSecond(), FX_MakeDate(), FX_MakeDay(), FX_MakeTime(), kBadDate, kBadFormat, kSuccess, and fxcrt::WideString::MakeLower().

Referenced by CJS_PublicMethods::ParseDateUsingFormat(), TEST_F(), and TEST_F().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FX_ParseStringInteger()

int fxjs::FX_ParseStringInteger ( const WideString & str,
size_t nStart,
size_t * pSkip,
size_t nMaxStep )

Definition at line 273 of file fx_date_helpers.cpp.

References FXSYS_DecimalCharToInt(), and FXSYS_IsDecimalDigit().

Here is the call graph for this function:

Variable Documentation

◆ kFullMonths

const std::array< const char *, 12 > fxjs::kFullMonths
Initial value:
= {
{"January", "February", "March", "April", "May", "June", "July", "August",
"September", "October", "November", "December"}}

Definition at line 177 of file fx_date_helpers.cpp.

◆ kLongestFullMonthLength

constexpr size_t fxjs::kLongestFullMonthLength = 9
staticconstexpr

Definition at line 182 of file fx_date_helpers.cpp.

◆ KMonthAbbreviationLength

constexpr size_t fxjs::KMonthAbbreviationLength = 3
staticconstexpr

Definition at line 181 of file fx_date_helpers.cpp.

◆ kMonths

const std::array< const char *, 12 > fxjs::kMonths
Initial value:
= {{"Jan", "Feb", "Mar", "Apr", "May",
"Jun", "Jul", "Aug", "Sep", "Oct",
"Nov", "Dec"}}

Definition at line 173 of file fx_date_helpers.cpp.

Referenced by CJS_PublicMethods::ParseDateAsGMT().