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

(e4657a741c23c8f48e0e97ae2091dc2d99f4f27d)

#include "core/fxcrt/fx_extension.h"
#include <wchar.h>
#include "core/fxcrt/check.h"
#include "core/fxcrt/compiler_specific.h"
#include "core/fxcrt/fx_system.h"
#include "core/fxcrt/utf16.h"
#include "core/fxcrt/widestring.h"
Include dependency graph for fx_extension.cpp:

Go to the source code of this file.

Functions

float FXSYS_wcstof (WideStringView pwsStr, size_t *pUsedLen)
wchar_t * FXSYS_wcsncpy (wchar_t *dstStr, const wchar_t *srcStr, 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 74 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 64 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 116 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 105 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 101 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 109 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 83 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 46 of file fx_extension.cpp.

◆ FXSYS_wcstof()

float FXSYS_wcstof ( WideStringView pwsStr,
size_t * pUsedLen )

Definition at line 32 of file fx_extension.cpp.