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
fx_extension.h File Reference

(acbcf08a6dffdfe90a6eaf661fcd6923f0de2447)

#include <ctype.h>
#include <math.h>
#include <time.h>
#include <wctype.h>
#include "build/build_config.h"
#include "third_party/icu/source/common/unicode/uchar.h"
+ Include dependency graph for fx_extension.h:

Go to the source code of this file.

Macros

#define FX_INVALID_OFFSET   static_cast<uint32_t>(-1)
 
#define FX_IsOdd(a)
 

Functions

float FXSYS_wcstof (const wchar_t *pwsStr, size_t nLength, size_t *pUsedLen)
 
wchar_t * FXSYS_wcsncpy (wchar_t *dstStr, const wchar_t *srcStr, size_t count)
 
int32_t FXSYS_wcsnicmp (const wchar_t *s1, const wchar_t *s2, size_t count)
 
bool FXSYS_iswlower (int32_t c)
 
bool FXSYS_iswupper (int32_t c)
 
int32_t FXSYS_towlower (wchar_t c)
 
int32_t FXSYS_towupper (wchar_t c)
 
bool FXSYS_IsLowerASCII (int32_t c)
 
bool FXSYS_IsUpperASCII (int32_t c)
 
char FXSYS_ToUpperASCII (char c)
 
bool FXSYS_iswalpha (wchar_t c)
 
bool FXSYS_iswalnum (wchar_t c)
 
bool FXSYS_iswspace (wchar_t c)
 
bool FXSYS_IsOctalDigit (char c)
 
bool FXSYS_IsHexDigit (char c)
 
bool FXSYS_IsWideHexDigit (wchar_t c)
 
int FXSYS_HexCharToInt (char c)
 
int FXSYS_WideHexCharToInt (wchar_t c)
 
bool FXSYS_IsDecimalDigit (char c)
 
bool FXSYS_IsDecimalDigit (wchar_t c)
 
int FXSYS_DecimalCharToInt (char c)
 
int FXSYS_DecimalCharToInt (wchar_t c)
 
void FXSYS_IntToTwoHexChars (uint8_t n, char *buf)
 
void FXSYS_IntToFourHexChars (uint16_t n, char *buf)
 
size_t FXSYS_ToUTF16BE (uint32_t unicode, char *buf)
 
template<typename T >
bool FXSYS_SafeEQ (const T &lhs, const T &rhs)
 
template<typename T >
bool FXSYS_SafeLT (const T &lhs, const T &rhs)
 
void FXSYS_SetTimeFunction (time_t(*func)())
 
void FXSYS_SetLocaltimeFunction (struct tm *(*func)(const time_t *))
 
time_t FXSYS_time (time_t *tloc)
 
struct tm * FXSYS_localtime (const time_t *tp)
 

Macro Definition Documentation

◆ FX_INVALID_OFFSET

#define FX_INVALID_OFFSET   static_cast<uint32_t>(-1)

Definition at line 23 of file fx_extension.h.

◆ FX_IsOdd

#define FX_IsOdd ( a)
Value:
((a)&1)
GLboolean GLboolean GLboolean GLboolean a
[7]

Definition at line 25 of file fx_extension.h.

Function Documentation

◆ FXSYS_DecimalCharToInt() [1/2]

int FXSYS_DecimalCharToInt ( char c)
inline

Definition at line 105 of file fx_extension.h.

References FXSYS_IsDecimalDigit().

Referenced by CBC_OnedEAN13Writer::Encode(), and CBC_OnedEAN8Writer::Encode().

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

◆ FXSYS_DecimalCharToInt() [2/2]

int FXSYS_DecimalCharToInt ( wchar_t c)
inline

Definition at line 109 of file fx_extension.h.

References FXSYS_IsDecimalDigit().

Referenced by fxjs::FX_ParseStringInteger(), and CPDF_SyntaxParser::ReadString().

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

◆ FXSYS_HexCharToInt()

int FXSYS_HexCharToInt ( char c)
inline

Definition at line 83 of file fx_extension.h.

References FXSYS_IsHexDigit(), and FXSYS_ToUpperASCII().

Referenced by HexDecode(), and CPDF_SyntaxParser::ReadHexString().

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

◆ FXSYS_IntToFourHexChars()

void FXSYS_IntToFourHexChars ( uint16_t n,
char * buf )

Definition at line 148 of file fx_extension.cpp.

References FXSYS_IntToTwoHexChars().

Referenced by FXSYS_ToUTF16BE().

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

◆ FXSYS_IntToTwoHexChars()

void FXSYS_IntToTwoHexChars ( uint8_t n,
char * buf )

Definition at line 142 of file fx_extension.cpp.

Referenced by FXSYS_IntToFourHexChars().

+ Here is the caller graph for this function:

◆ FXSYS_IsDecimalDigit() [1/2]

bool FXSYS_IsDecimalDigit ( char c)
inline

Definition at line 97 of file fx_extension.h.

Referenced by FXSYS_DecimalCharToInt().

+ Here is the caller graph for this function:

◆ FXSYS_IsDecimalDigit() [2/2]

◆ FXSYS_IsHexDigit()

bool FXSYS_IsHexDigit ( char c)
inline

Definition at line 75 of file fx_extension.h.

Referenced by FXSYS_HexCharToInt().

+ Here is the caller graph for this function:

◆ FXSYS_IsLowerASCII()

bool FXSYS_IsLowerASCII ( int32_t c)
inline

Definition at line 47 of file fx_extension.h.

Referenced by CBC_TextEncoder::EncodeChar(), and FXSYS_ToUpperASCII().

+ Here is the caller graph for this function:

◆ FXSYS_IsOctalDigit()

bool FXSYS_IsOctalDigit ( char c)
inline

Definition at line 71 of file fx_extension.h.

Referenced by CPDF_SyntaxParser::ReadString().

+ Here is the caller graph for this function:

◆ FXSYS_IsUpperASCII()

bool FXSYS_IsUpperASCII ( int32_t c)
inline

Definition at line 51 of file fx_extension.h.

Referenced by CBC_C40Encoder::EncodeChar(), CBC_TextEncoder::EncodeChar(), and CBC_X12Encoder::EncodeChar().

+ Here is the caller graph for this function:

◆ FXSYS_iswalnum()

bool FXSYS_iswalnum ( wchar_t c)
inline

Definition at line 63 of file fx_extension.h.

Referenced by CPDF_LinkExtract::CheckMailLink().

+ Here is the caller graph for this function:

◆ FXSYS_iswalpha()

bool FXSYS_iswalpha ( wchar_t c)
inline

Definition at line 59 of file fx_extension.h.

◆ FXSYS_IsWideHexDigit()

bool FXSYS_IsWideHexDigit ( wchar_t c)
inline

Definition at line 79 of file fx_extension.h.

Referenced by FXSYS_WideHexCharToInt().

+ Here is the caller graph for this function:

◆ FXSYS_iswlower()

bool FXSYS_iswlower ( int32_t c)
inline

Definition at line 31 of file fx_extension.h.

◆ FXSYS_iswspace()

bool FXSYS_iswspace ( wchar_t c)
inline

Definition at line 67 of file fx_extension.h.

◆ FXSYS_iswupper()

bool FXSYS_iswupper ( int32_t c)
inline

Definition at line 35 of file fx_extension.h.

◆ FXSYS_localtime()

struct tm * FXSYS_localtime ( const time_t * tp)

Definition at line 183 of file fx_extension.cpp.

Referenced by FPDF_CreateNewDocument(), fxjs::FX_GetDateTime(), and CFX_DateTime::Now().

+ Here is the caller graph for this function:

◆ FXSYS_SafeEQ()

template<typename T >
bool FXSYS_SafeEQ ( const T & lhs,
const T & rhs )

Definition at line 121 of file fx_extension.h.

◆ FXSYS_SafeLT()

template<typename T >
bool FXSYS_SafeLT ( const T & lhs,
const T & rhs )

Definition at line 127 of file fx_extension.h.

◆ FXSYS_SetLocaltimeFunction()

void FXSYS_SetLocaltimeFunction ( struct tm *(* func )(const time_t *))

Definition at line 172 of file fx_extension.cpp.

Referenced by FSDK_SetLocaltimeFunction(), FakeTimeTest::SetUp(), and FakeTimeTest::TearDown().

+ Here is the caller graph for this function:

◆ FXSYS_SetTimeFunction()

void FXSYS_SetTimeFunction ( time_t(* func )())

Definition at line 168 of file fx_extension.cpp.

Referenced by FSDK_SetTimeFunction(), FakeTimeTest::SetUp(), and FakeTimeTest::TearDown().

+ Here is the caller graph for this function:

◆ FXSYS_time()

time_t FXSYS_time ( time_t * tloc)

Definition at line 176 of file fx_extension.cpp.

Referenced by CFXJSE_FormCalcContext::Date(), FPDF_CreateNewDocument(), fxjs::FX_GetDateTime(), CFX_DateTime::Now(), and CFXJSE_FormCalcContext::Time().

+ Here is the caller graph for this function:

◆ FXSYS_ToUpperASCII()

char FXSYS_ToUpperASCII ( char c)
inline

Definition at line 55 of file fx_extension.h.

References FXSYS_IsLowerASCII().

Referenced by CBC_OnedCode39Writer::FilterContents(), FXSYS_HexCharToInt(), and CBC_OnedCode39Writer::RenderTextContents().

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

◆ FXSYS_ToUTF16BE()

size_t FXSYS_ToUTF16BE ( uint32_t unicode,
char * buf )

Definition at line 153 of file fx_extension.cpp.

References pdfium::SurrogatePair::SurrogatePair(), FXSYS_IntToFourHexChars(), pdfium::SurrogatePair::high(), and pdfium::SurrogatePair::low().

+ Here is the call graph for this function:

◆ FXSYS_towlower()

int32_t FXSYS_towlower ( wchar_t c)
inline

Definition at line 39 of file fx_extension.h.

Referenced by FXSYS_wcslwr(), and FXSYS_wcsnicmp().

+ Here is the caller graph for this function:

◆ FXSYS_towupper()

int32_t FXSYS_towupper ( wchar_t c)
inline

Definition at line 43 of file fx_extension.h.

Referenced by CPWL_ListCtrl::FindNext(), FXSYS_wcsicmp(), and FXSYS_wcsupr().

+ Here is the caller graph for this function:

◆ FXSYS_wcsncpy()

wchar_t * FXSYS_wcsncpy ( wchar_t * dstStr,
const wchar_t * srcStr,
size_t count )

Definition at line 116 of file fx_extension.cpp.

◆ FXSYS_wcsnicmp()

int32_t FXSYS_wcsnicmp ( const wchar_t * s1,
const wchar_t * s2,
size_t count )

Definition at line 127 of file fx_extension.cpp.

References FXSYS_towlower().

Referenced by CFX_CSSValueListParser::NextValue().

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

◆ FXSYS_wcstof()

float FXSYS_wcstof ( const wchar_t * pwsStr,
size_t nLength,
size_t * pUsedLen )

Definition at line 31 of file fx_extension.cpp.

References FXSYS_IsDecimalDigit().

+ Here is the call graph for this function:

◆ FXSYS_WideHexCharToInt()

int FXSYS_WideHexCharToInt ( wchar_t c)
inline

Definition at line 90 of file fx_extension.h.

References FXSYS_IsWideHexDigit().

+ Here is the call graph for this function: