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

(e4657a741c23c8f48e0e97ae2091dc2d99f4f27d)

#include "core/fxcrt/fx_codepage.h"
#include <algorithm>
#include <iterator>
#include <utility>
#include "build/build_config.h"
#include "core/fxcrt/numerics/safe_math.h"
Include dependency graph for fx_codepage.cpp:

Go to the source code of this file.

Functions

FX_CodePage FX_GetACP ()
FX_CodePage FX_GetCodePageFromCharset (FX_Charset charset)
FX_Charset FX_GetCharsetFromCodePage (FX_CodePage codepage)
FX_Charset FX_GetCharsetFromInt (int value)
bool FX_CharSetIsCJK (FX_Charset uCharset)
size_t FX_WideCharToMultiByte (FX_CodePage codepage, WideStringView wstr, pdfium::span< char > buf)
size_t FX_MultiByteToWideChar (FX_CodePage codepage, ByteStringView bstr, pdfium::span< wchar_t > buf)

Variables

const std::array< FX_CharsetUnicodes, 8 > kFX_CharsetUnicodes

Function Documentation

◆ FX_CharSetIsCJK()

bool FX_CharSetIsCJK ( FX_Charset uCharset)

Definition at line 286 of file fx_codepage.cpp.

References kChineseSimplified, kChineseTraditional, kHangul, and kShiftJIS.

Referenced by CPDF_DocPageData::AddFont(), and CFX_FontMapper::FindSubstFont().

Here is the caller graph for this function:

◆ FX_GetACP()

FX_CodePage FX_GetACP ( )

Definition at line 218 of file fx_codepage.cpp.

References kDefANSI.

Referenced by CPDF_BAFontMap::GetNativeCharset().

Here is the caller graph for this function:

◆ FX_GetCharsetFromCodePage()

FX_Charset FX_GetCharsetFromCodePage ( FX_CodePage codepage)

Definition at line 239 of file fx_codepage.cpp.

References kANSI.

Referenced by CPDF_BAFontMap::GetNativeCharset().

Here is the caller graph for this function:

◆ FX_GetCharsetFromInt()

FX_Charset FX_GetCharsetFromInt ( int value)

◆ FX_GetCodePageFromCharset()

FX_CodePage FX_GetCodePageFromCharset ( FX_Charset charset)

Definition at line 226 of file fx_codepage.cpp.

References kFailure.

◆ FX_MultiByteToWideChar()

size_t FX_MultiByteToWideChar ( FX_CodePage codepage,
ByteStringView bstr,
pdfium::span< wchar_t > buf )

Definition at line 315 of file fx_codepage.cpp.

◆ FX_WideCharToMultiByte()

size_t FX_WideCharToMultiByte ( FX_CodePage codepage,
WideStringView wstr,
pdfium::span< char > buf )

Definition at line 293 of file fx_codepage.cpp.

Variable Documentation

◆ kFX_CharsetUnicodes

const std::array<FX_CharsetUnicodes, 8> kFX_CharsetUnicodes
Initial value:
= {{
{FX_Charset::kThai, kFX_MSDOSThaiUnicodes},
{FX_Charset::kMSWin_EasternEuropean, kFX_MSWinEasternEuropeanUnicodes},
{FX_Charset::kMSWin_Cyrillic, kFX_MSWinCyrillicUnicodes},
{FX_Charset::kMSWin_Greek, kFX_MSWinGreekUnicodes},
{FX_Charset::kMSWin_Turkish, kFX_MSWinTurkishUnicodes},
{FX_Charset::kMSWin_Hebrew, kFX_MSWinHebrewUnicodes},
{FX_Charset::kMSWin_Arabic, kFX_MSWinArabicUnicodes},
{FX_Charset::kMSWin_Baltic, kFX_MSWinBalticUnicodes},
}}
@ kMSWin_EasternEuropean

Definition at line 207 of file fx_codepage.cpp.

Referenced by CPDF_DocPageData::AddFont().