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
cfgas_breakline.cpp
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
#
include
"xfa/fgas/layout/cfgas_breakline.h"
8
9
#
include
"core/fxcrt/stl_util.h"
10
#
include
"third_party/base/check.h"
11
12
CFGAS_BreakLine
::
CFGAS_BreakLine
() =
default
;
13
14
CFGAS_BreakLine
::~
CFGAS_BreakLine
() =
default
;
15
16
CFGAS_Char
*
CFGAS_BreakLine
::
LastChar
() {
17
if
(m_LineChars.empty())
18
return
nullptr
;
19
20
return
&m_LineChars.back();
21
}
22
23
int32_t
CFGAS_BreakLine
::
GetLineEnd
()
const
{
24
return
m_iStart
+
m_iWidth
;
25
}
26
27
void
CFGAS_BreakLine
::
Clear
() {
28
m_LineChars.clear();
29
m_LinePieces.clear();
30
m_iWidth
= 0;
31
m_iArabicChars = 0;
32
}
33
34
void
CFGAS_BreakLine
::
IncrementArabicCharCount
() {
35
++m_iArabicChars;
36
}
37
38
void
CFGAS_BreakLine
::
DecrementArabicCharCount
() {
39
DCHECK(m_iArabicChars > 0);
40
--m_iArabicChars;
41
}
CFGAS_BreakLine
Definition
cfgas_breakline.h:15
CFGAS_BreakLine::Clear
void Clear()
Definition
cfgas_breakline.cpp:27
CFGAS_BreakLine::GetLineEnd
int32_t GetLineEnd() const
Definition
cfgas_breakline.cpp:23
CFGAS_BreakLine::~CFGAS_BreakLine
~CFGAS_BreakLine()
CFGAS_BreakLine::LastChar
CFGAS_Char * LastChar()
Definition
cfgas_breakline.cpp:16
CFGAS_BreakLine::m_iStart
int32_t m_iStart
Definition
cfgas_breakline.h:31
CFGAS_BreakLine::IncrementArabicCharCount
void IncrementArabicCharCount()
Definition
cfgas_breakline.cpp:34
CFGAS_BreakLine::CFGAS_BreakLine
CFGAS_BreakLine()
CFGAS_BreakLine::m_iWidth
int32_t m_iWidth
Definition
cfgas_breakline.h:32
CFGAS_BreakLine::DecrementArabicCharCount
void DecrementArabicCharCount()
Definition
cfgas_breakline.cpp:38
CFGAS_Char
Definition
cfgas_char.h:19
qtwebengine
src
3rdparty
chromium
third_party
pdfium
xfa
fgas
layout
cfgas_breakline.cpp
Generated on Sat Sep 21 2024 01:00:31 for Qt by
1.12.0