summaryrefslogtreecommitdiff
path: root/core/fpdfapi/font/cpdf_cmapparser.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-10-04 14:52:34 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-10-05 17:04:27 +0000
commit41bf73a2c389d8fa811cabb1867b8b6a5585d5eb (patch)
treed70bf3a2155cd9ed28cc6bbb7e033517248a848c /core/fpdfapi/font/cpdf_cmapparser.h
parent38d0449a02f4d16dd513c08c558e57891ec252dd (diff)
downloadpdfium-41bf73a2c389d8fa811cabb1867b8b6a5585d5eb.tar.xz
Remove CPDF_CMapParser friends
This CL removes the friends from CPDF_CMapParser. The two needed methods have been moved from private statics to public methods on the class. Change-Id: Ida76aa8748435e089874d9ef9c6545527b175561 Reviewed-on: https://pdfium-review.googlesource.com/15454 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/font/cpdf_cmapparser.h')
-rw-r--r--core/fpdfapi/font/cpdf_cmapparser.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/core/fpdfapi/font/cpdf_cmapparser.h b/core/fpdfapi/font/cpdf_cmapparser.h
index 874f6a776d..fc46c58f72 100644
--- a/core/fpdfapi/font/cpdf_cmapparser.h
+++ b/core/fpdfapi/font/cpdf_cmapparser.h
@@ -28,16 +28,14 @@ class CPDF_CMapParser {
return std::move(m_AdditionalCharcodeToCIDMappings);
}
+ uint32_t GetCode(const ByteStringView& word) const;
+ bool GetCodeRange(CPDF_CMap::CodeRange& range,
+ const ByteStringView& first,
+ const ByteStringView& second) const;
+
static CIDSet CharsetFromOrdering(const ByteStringView& ordering);
private:
- friend class cpdf_cmapparser_CMap_GetCode_Test;
- friend class cpdf_cmapparser_CMap_GetCodeRange_Test;
-
- static uint32_t CMap_GetCode(const ByteStringView& word);
- static bool CMap_GetCodeRange(CPDF_CMap::CodeRange& range,
- const ByteStringView& first,
- const ByteStringView& second);
UnownedPtr<CPDF_CMap> const m_pCMap;
int m_Status;