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

(813d9ae984a99e739b99cf694a9d5b24d0a6b7a7)

#include "core/fxcrt/fx_codepage.h"
#include <algorithm>
#include <iterator>
#include <utility>
#include "build/build_config.h"
#include "third_party/base/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 FX_CharsetUnicodes kFX_CharsetUnicodes [8]
 

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 FX_CharsetUnicodes kFX_CharsetUnicodes[8]
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().