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 wchar_t *const kMonths [12]
 
const wchar_t *const kFullMonths [12]
 
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 16 of file fx_date_helpers.h.

Function Documentation

◆ FX_GetDateTime()

double fxjs::FX_GetDateTime ( )

Definition at line 183 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 202 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 206 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 210 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 198 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 214 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 194 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 228 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 223 of file fx_date_helpers.cpp.

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

+ Here is the caller graph for this function:

◆ FX_IsValidMinute()

bool fxjs::FX_IsValidMinute ( int m)

Definition at line 232 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 218 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_IsValidSecond()

bool fxjs::FX_IsValidSecond ( int s)

Definition at line 236 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 240 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 265 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 244 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 257 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 296 of file fx_date_helpers.cpp.

References fxcrt::WideString::CompareNoCase(), 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(), fxcrt::WideString::IsEmpty(), kBadDate, kBadFormat, kFullMonths, kMonths, 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 272 of file fx_date_helpers.cpp.

References FXSYS_DecimalCharToInt(), and FXSYS_IsDecimalDigit().

+ Here is the call graph for this function:

Variable Documentation

◆ kFullMonths

const wchar_t *const fxjs::kFullMonths
Initial value:
= {L"January", L"February", L"March",
L"April", L"May", L"June",
L"July", L"August", L"September",
L"October", L"November", L"December"}

Definition at line 175 of file fx_date_helpers.cpp.

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

◆ kLongestFullMonthLength

static constexpr size_t fxjs::kLongestFullMonthLength = 9
staticconstexpr

Definition at line 181 of file fx_date_helpers.cpp.

◆ KMonthAbbreviationLength

static constexpr size_t fxjs::KMonthAbbreviationLength = 3
staticconstexpr

Definition at line 180 of file fx_date_helpers.cpp.

◆ kMonths

const wchar_t *const fxjs::kMonths
Initial value:
= {L"Jan", L"Feb", L"Mar", L"Apr",
L"May", L"Jun", L"Jul", L"Aug",
L"Sep", L"Oct", L"Nov", L"Dec"}

Definition at line 171 of file fx_date_helpers.cpp.

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