Home
last modified time | relevance | path

Searched refs:CPDF_ToUnicodeMap (Results 1 – 6 of 6) sorted by relevance

/external/pdfium/core/fpdfapi/font/
Dcpdf_tounicodemap_unittest.cpp14 EXPECT_THAT(CPDF_ToUnicodeMap::StringToCode("<0001>"), testing::Optional(1u)); in TEST()
15 EXPECT_THAT(CPDF_ToUnicodeMap::StringToCode("<c2>"), testing::Optional(194u)); in TEST()
16 EXPECT_THAT(CPDF_ToUnicodeMap::StringToCode("<A2>"), testing::Optional(162u)); in TEST()
17 EXPECT_THAT(CPDF_ToUnicodeMap::StringToCode("<Af2>"), in TEST()
19 EXPECT_THAT(CPDF_ToUnicodeMap::StringToCode("<FFFFFFFF>"), in TEST()
23 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("<100000000>").has_value()); in TEST()
24 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("<1abcdFFFF>").has_value()); in TEST()
27 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("").has_value()); in TEST()
28 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("<>").has_value()); in TEST()
29 EXPECT_FALSE(CPDF_ToUnicodeMap::StringToCode("12").has_value()); in TEST()
[all …]
Dcpdf_tounicodemap.cpp42 CPDF_ToUnicodeMap::CPDF_ToUnicodeMap(RetainPtr<const CPDF_Stream> pStream) { in CPDF_ToUnicodeMap() function in CPDF_ToUnicodeMap
46 CPDF_ToUnicodeMap::~CPDF_ToUnicodeMap() = default;
48 WideString CPDF_ToUnicodeMap::Lookup(uint32_t charcode) const { in Lookup()
66 uint32_t CPDF_ToUnicodeMap::ReverseLookup(wchar_t unicode) const { in ReverseLookup()
74 size_t CPDF_ToUnicodeMap::GetUnicodeCountByCharcodeForTesting( in GetUnicodeCountByCharcodeForTesting()
81 absl::optional<uint32_t> CPDF_ToUnicodeMap::StringToCode(ByteStringView str) { in StringToCode()
99 WideString CPDF_ToUnicodeMap::StringToWideString(ByteStringView str) { in StringToWideString()
122 void CPDF_ToUnicodeMap::Load(RetainPtr<const CPDF_Stream> pStream) { in Load()
150 void CPDF_ToUnicodeMap::HandleBeginBFChar(CPDF_SimpleParser* pParser) { in HandleBeginBFChar()
164 void CPDF_ToUnicodeMap::HandleBeginBFRange(CPDF_SimpleParser* pParser) { in HandleBeginBFRange()
[all …]
Dcpdf_tounicodemap.h23 class CPDF_ToUnicodeMap {
25 explicit CPDF_ToUnicodeMap(RetainPtr<const CPDF_Stream> pStream);
26 ~CPDF_ToUnicodeMap();
Dcpdf_font.h34 class CPDF_ToUnicodeMap; variable
175 mutable std::unique_ptr<CPDF_ToUnicodeMap> m_pToUnicodeMap;
Dcpdf_font.cpp261 m_pToUnicodeMap = std::make_unique<CPDF_ToUnicodeMap>(std::move(pStream)); in LoadUnicodeMap()
/external/pdfium/testing/fuzzers/
Dpdf_cpdf_tounicodemap_fuzzer.cc34 auto to_unicode_map = std::make_unique<CPDF_ToUnicodeMap>(std::move(stream)); in LLVMFuzzerTestOneInput()