#ifndef CORE_FXCRT_FX_EXTENSION_H_
#define CORE_FXCRT_FX_EXTENSION_H_
#include <ctype.h>
#include <math.h>
#include <time.h>
#include <wctype.h>
#include "build/build_config.h"
#include "core/fxcrt/compiler_specific.h"
#include "core/fxcrt/widestring.h"
#if defined(USE_SYSTEM_ICUUC)
#include <unicode/uchar.h>
#else
#include "third_party/icu/source/common/unicode/uchar.h"
#endif
#define FX_INVALID_OFFSET …
#define FX_IsOdd(a) …
float FXSYS_wcstof(WideStringView pwsStr, size_t* pUsedLen);
UNSAFE_BUFFER_USAGE wchar_t* FXSYS_wcsncpy(wchar_t* dstStr,
const wchar_t* srcStr,
size_t count);
inline bool FXSYS_iswlower(int32_t c) { … }
inline bool FXSYS_iswupper(int32_t c) { … }
inline int32_t FXSYS_towlower(wchar_t c) { … }
inline int32_t FXSYS_towupper(wchar_t c) { … }
inline bool FXSYS_IsLowerASCII(int32_t c) { … }
inline bool FXSYS_IsUpperASCII(int32_t c) { … }
inline char FXSYS_ToUpperASCII(char c) { … }
inline bool FXSYS_iswalpha(wchar_t c) { … }
inline bool FXSYS_iswalnum(wchar_t c) { … }
inline bool FXSYS_iswspace(wchar_t c) { … }
inline bool FXSYS_IsOctalDigit(char c) { … }
inline bool FXSYS_IsHexDigit(char c) { … }
inline bool FXSYS_IsWideHexDigit(wchar_t c) { … }
inline int FXSYS_HexCharToInt(char c) { … }
inline int FXSYS_WideHexCharToInt(wchar_t c) { … }
inline bool FXSYS_IsDecimalDigit(char c) { … }
inline bool FXSYS_IsDecimalDigit(wchar_t c) { … }
inline int FXSYS_DecimalCharToInt(char c) { … }
inline 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);
#endif