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.cpp File Reference

(9c1f44f67466fea2fb20bb6f31fea388d8c65961)

#include "core/fxcrt/fx_extension.h"
#include <algorithm>
#include <limits>
#include "core/fxcrt/fx_system.h"
#include "core/fxcrt/utf16.h"
#include "third_party/base/check.h"
+ Include dependency graph for fx_extension.cpp:

Go to the source code of this file.

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)
 
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)
 
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)
 

Function Documentation

◆ 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_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_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_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_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: