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
cpdf_simple_parser.h
Go to the documentation of this file.
1// Copyright 2016 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#ifndef CORE_FPDFAPI_PARSER_CPDF_SIMPLE_PARSER_H_
8#define CORE_FPDFAPI_PARSER_CPDF_SIMPLE_PARSER_H_
9
10#include <stdint.h>
11
12#include "core/fxcrt/bytestring.h"
13#include "third_party/base/containers/span.h"
14
16 public:
17 explicit CPDF_SimpleParser(pdfium::span<const uint8_t> input);
19
20 ByteStringView GetWord();
21
22 void SetCurPos(uint32_t pos) { cur_pos_ = pos; }
23 uint32_t GetCurPos() const { return cur_pos_; }
24
25 private:
26 const pdfium::span<const uint8_t> data_;
27 uint32_t cur_pos_ = 0;
28};
29
30#endif // CORE_FPDFAPI_PARSER_CPDF_SIMPLE_PARSER_H_
CPDF_CMapParser(CPDF_CMap *pCMap)
void ParseWord(ByteStringView word)
~CPDF_CMap() override
size_t CountChar(ByteStringView pString) const
uint32_t GetNextChar(ByteStringView pString, size_t *pOffset) const
int AppendChar(char *str, uint32_t charcode) const
@ MixedTwoBytes
Definition cpdf_cmap.h:42
@ MixedFourBytes
Definition cpdf_cmap.h:43
uint16_t CIDFromCharCode(uint32_t charcode) const
void SetAdditionalMappings(std::vector< CIDRange > mappings)
int GetCharSize(uint32_t charcode) const
void SetMixedFourByteLeadingRanges(std::vector< CodeRange > ranges)
void SetDirectCharcodeToCIDTableRange(uint32_t start_code, uint32_t end_code, uint16_t start_cid)
uint32_t GetCurPos() const
void SetCurPos(uint32_t pos)
CPDF_SimpleParser(pdfium::span< const uint8_t > input)
ByteStringView GetWord()
CIDSet
@ CIDSET_KOREA1
@ CIDSET_JAPAN1
@ CIDSET_GB1
@ CIDSET_CNS1
CIDCoding
Definition cpdf_cmap.h:24