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

(3dce9b5818576f04ce21cec4b3686eda012e5b65)

#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <wchar.h>
#include "build/build_config.h"
#include "core/fxcrt/fx_types.h"
+ Include dependency graph for fx_system.h:

Go to the source code of this file.

Macros

#define FXSYS_IsFloatZero(f)
 
#define FXSYS_IsFloatBigger(fa, fb)
 
#define FXSYS_IsFloatSmaller(fa, fb)
 
#define FXSYS_IsFloatEqual(fa, fb)
 
#define FXSYS_PI   3.1415926535897932384626433832795f
 
#define FXSYS_BEZIER   0.5522847498308f
 
#define FXSYS_snprintf   (void)snprintf
 
#define FXSYS_vsnprintf   (void)vsnprintf
 
#define FXSYS_sprintf   DO_NOT_USE_SPRINTF_DIE_DIE_DIE
 
#define FXSYS_vsprintf   DO_NOT_USE_VSPRINTF_DIE_DIE_DIE
 
#define FXSYS_wcsftime   wcsftime
 

Functions

char * FXSYS_itoa (int value, char *str, int radix)
 
char * FXSYS_strlwr (char *str)
 
char * FXSYS_strupr (char *str)
 
int FXSYS_stricmp (const char *str1, const char *str2)
 
int FXSYS_wcsicmp (const wchar_t *str1, const wchar_t *str2)
 
wchar_t * FXSYS_wcslwr (wchar_t *str)
 
wchar_t * FXSYS_wcsupr (wchar_t *str)
 
void FXSYS_SetLastError (uint32_t err)
 
uint32_t FXSYS_GetLastError ()
 
int32_t FXSYS_atoi (const char *str)
 
uint32_t FXSYS_atoui (const char *str)
 
int32_t FXSYS_wtoi (const wchar_t *str)
 
int64_t FXSYS_atoi64 (const char *str)
 
const char * FXSYS_i64toa (int64_t value, char *str, int radix)
 
int FXSYS_roundf (float f)
 
int FXSYS_round (double d)
 
float FXSYS_sqrt2 (float a, float b)
 

Macro Definition Documentation

◆ FXSYS_BEZIER

#define FXSYS_BEZIER   0.5522847498308f

Definition at line 44 of file fx_system.h.

◆ FXSYS_IsFloatBigger

#define FXSYS_IsFloatBigger ( fa,
fb )
Value:
((fa) > (fb) && !FXSYS_IsFloatZero((fa) - (fb)))
#define FXSYS_IsFloatZero(f)
Definition fx_system.h:35

Definition at line 36 of file fx_system.h.

◆ FXSYS_IsFloatEqual

#define FXSYS_IsFloatEqual ( fa,
fb )
Value:
FXSYS_IsFloatZero((fa) - (fb))

Definition at line 40 of file fx_system.h.

◆ FXSYS_IsFloatSmaller

#define FXSYS_IsFloatSmaller ( fa,
fb )
Value:
((fa) < (fb) && !FXSYS_IsFloatZero((fa) - (fb)))

Definition at line 38 of file fx_system.h.

◆ FXSYS_IsFloatZero

#define FXSYS_IsFloatZero ( f)
Value:
((f) < 0.0001 && (f) > -0.0001)
GLfloat GLfloat f
[0]

Definition at line 35 of file fx_system.h.

◆ FXSYS_PI

#define FXSYS_PI   3.1415926535897932384626433832795f

Definition at line 43 of file fx_system.h.

◆ FXSYS_snprintf

#define FXSYS_snprintf   (void)snprintf

Definition at line 48 of file fx_system.h.

◆ FXSYS_sprintf

#define FXSYS_sprintf   DO_NOT_USE_SPRINTF_DIE_DIE_DIE

Definition at line 50 of file fx_system.h.

◆ FXSYS_vsnprintf

#define FXSYS_vsnprintf   (void)vsnprintf

Definition at line 49 of file fx_system.h.

◆ FXSYS_vsprintf

#define FXSYS_vsprintf   DO_NOT_USE_VSPRINTF_DIE_DIE_DIE

Definition at line 51 of file fx_system.h.

◆ FXSYS_wcsftime

#define FXSYS_wcsftime   wcsftime

Definition at line 75 of file fx_system.h.

Function Documentation

◆ FXSYS_atoi()

int32_t FXSYS_atoi ( const char * str)

Definition at line 112 of file fx_system.cpp.

◆ FXSYS_atoi64()

int64_t FXSYS_atoi64 ( const char * str)

Definition at line 121 of file fx_system.cpp.

◆ FXSYS_atoui()

uint32_t FXSYS_atoui ( const char * str)

Definition at line 115 of file fx_system.cpp.

Referenced by CPDF_SyntaxParser::GetDirectNum(), and CPDF_SyntaxParser::GetIndirectObject().

+ Here is the caller graph for this function:

◆ FXSYS_GetLastError()

uint32_t FXSYS_GetLastError ( )

Definition at line 227 of file fx_system.cpp.

Referenced by FPDF_GetLastError().

+ Here is the caller graph for this function:

◆ FXSYS_i64toa()

const char * FXSYS_i64toa ( int64_t value,
char * str,
int radix )

Definition at line 124 of file fx_system.cpp.

Referenced by IFX_WriteStream::WriteFilesize().

+ Here is the caller graph for this function:

◆ FXSYS_itoa()

char * FXSYS_itoa ( int value,
char * str,
int radix )

Definition at line 219 of file fx_system.cpp.

Referenced by TEST(), TEST(), TEST(), and IFX_WriteStream::WriteDWord().

+ Here is the caller graph for this function:

◆ FXSYS_round()

int FXSYS_round ( double d)

Definition at line 102 of file fx_system.cpp.

Referenced by DoubleToString(), and CStretchEngine::FixedFromDouble().

+ Here is the caller graph for this function:

◆ FXSYS_roundf()

◆ FXSYS_SetLastError()

void FXSYS_SetLastError ( uint32_t err)

Definition at line 223 of file fx_system.cpp.

Referenced by ProcessParseError().

+ Here is the caller graph for this function:

◆ FXSYS_sqrt2()

float FXSYS_sqrt2 ( float a,
float b )

Definition at line 232 of file fx_system.cpp.

Referenced by CFX_ImageTransformer::CFX_ImageTransformer(), CXFA_Radial::Draw(), CFX_Matrix::GetXUnit(), CFX_Matrix::GetYUnit(), and CFX_Matrix::TransformXDistance().

+ Here is the caller graph for this function:

◆ FXSYS_stricmp()

int FXSYS_stricmp ( const char * str1,
const char * str2 )

Definition at line 195 of file fx_system.cpp.

Referenced by CFX_FontMapper::GetStandardFontName().

+ Here is the caller graph for this function:

◆ FXSYS_strlwr()

char * FXSYS_strlwr ( char * str)

Definition at line 150 of file fx_system.cpp.

◆ FXSYS_strupr()

char * FXSYS_strupr ( char * str)

Definition at line 161 of file fx_system.cpp.

◆ FXSYS_wcsicmp()

int FXSYS_wcsicmp ( const wchar_t * str1,
const wchar_t * str2 )

Definition at line 207 of file fx_system.cpp.

References FXSYS_towupper().

+ Here is the call graph for this function:

◆ FXSYS_wcslwr()

wchar_t * FXSYS_wcslwr ( wchar_t * str)

Definition at line 172 of file fx_system.cpp.

References FXSYS_towlower().

+ Here is the call graph for this function:

◆ FXSYS_wcsupr()

wchar_t * FXSYS_wcsupr ( wchar_t * str)

Definition at line 183 of file fx_system.cpp.

References FXSYS_towupper().

+ Here is the call graph for this function:

◆ FXSYS_wtoi()

int32_t FXSYS_wtoi ( const wchar_t * str)

Definition at line 118 of file fx_system.cpp.

Referenced by CXFA_Font::GetHorizontalScale(), and CXFA_Font::GetVerticalScale().

+ Here is the caller graph for this function: