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
cfx_cssinputtextbuf.h
Go to the documentation of this file.
1
// Copyright 2017 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_FXCRT_CSS_CFX_CSSINPUTTEXTBUF_H_
8
#
define
CORE_FXCRT_CSS_CFX_CSSINPUTTEXTBUF_H_
9
10
#
include
"core/fxcrt/widestring.h"
11
12
class
CFX_CSSInputTextBuf
{
13
public
:
14
explicit
CFX_CSSInputTextBuf
(WideStringView str);
15
~
CFX_CSSInputTextBuf
();
16
17
bool
IsEOF
()
const
{
return
m_iPos >= m_Buffer.GetLength(); }
18
void
MoveNext
() { m_iPos++; }
19
wchar_t
GetChar
()
const
{
return
m_Buffer[m_iPos]; }
20
wchar_t
GetNextChar
()
const
{
21
return
m_iPos + 1 < m_Buffer.GetLength() ? m_Buffer[m_iPos + 1] : 0;
22
}
23
24
protected
:
25
const
WideStringView
m_Buffer
;
26
size_t
m_iPos
= 0;
27
};
28
29
#
endif
// CORE_FXCRT_CSS_CFX_CSSINPUTTEXTBUF_H_
CFX_CSSInputTextBuf
Definition
cfx_cssinputtextbuf.h:12
CFX_CSSInputTextBuf::IsEOF
bool IsEOF() const
Definition
cfx_cssinputtextbuf.h:17
CFX_CSSInputTextBuf::m_iPos
size_t m_iPos
Definition
cfx_cssinputtextbuf.h:26
CFX_CSSInputTextBuf::GetNextChar
wchar_t GetNextChar() const
Definition
cfx_cssinputtextbuf.h:20
CFX_CSSInputTextBuf::MoveNext
void MoveNext()
Definition
cfx_cssinputtextbuf.h:18
CFX_CSSInputTextBuf::GetChar
wchar_t GetChar() const
Definition
cfx_cssinputtextbuf.h:19
CFX_CSSInputTextBuf::m_Buffer
const WideStringView m_Buffer
Definition
cfx_cssinputtextbuf.h:25
CFX_CSSInputTextBuf::CFX_CSSInputTextBuf
CFX_CSSInputTextBuf(WideStringView str)
Definition
cfx_cssinputtextbuf.cpp:9
CFX_CSSInputTextBuf::~CFX_CSSInputTextBuf
~CFX_CSSInputTextBuf()
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxcrt
css
cfx_cssinputtextbuf.h
Generated on Sat Sep 21 2024 00:55:11 for Qt by
1.12.0