summaryrefslogtreecommitdiff
path: root/core/fpdfapi/font/cpdf_cid2unicodemap.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/font/cpdf_cid2unicodemap.h')
-rw-r--r--core/fpdfapi/font/cpdf_cid2unicodemap.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fpdfapi/font/cpdf_cid2unicodemap.h b/core/fpdfapi/font/cpdf_cid2unicodemap.h
index 2c3fe5b7aa..73c5059558 100644
--- a/core/fpdfapi/font/cpdf_cid2unicodemap.h
+++ b/core/fpdfapi/font/cpdf_cid2unicodemap.h
@@ -8,6 +8,7 @@
#define CORE_FPDFAPI_FONT_CPDF_CID2UNICODEMAP_H_
#include "core/fpdfapi/font/cpdf_cidfont.h"
+#include "third_party/base/span.h"
class CPDF_CMapManager;
@@ -16,14 +17,13 @@ class CPDF_CID2UnicodeMap {
CPDF_CID2UnicodeMap();
~CPDF_CID2UnicodeMap();
- bool IsLoaded();
+ bool IsLoaded() const;
+ wchar_t UnicodeFromCID(uint16_t CID) const;
void Load(CPDF_CMapManager* pMgr, CIDSet charset, bool bPromptCJK);
- wchar_t UnicodeFromCID(uint16_t CID);
private:
CIDSet m_Charset;
- const uint16_t* m_pEmbeddedMap;
- uint32_t m_EmbeddedCount;
+ pdfium::span<const uint16_t> m_pEmbeddedMap;
};
#endif // CORE_FPDFAPI_FONT_CPDF_CID2UNICODEMAP_H_