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_cssoutputtextbuf.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
"core/fxcrt/css/cfx_cssoutputtextbuf.h"
8
9
CFX_CSSOutputTextBuf
::
CFX_CSSOutputTextBuf
() {
10
m_Buffer.reserve(32);
11
}
12
13
CFX_CSSOutputTextBuf
::~
CFX_CSSOutputTextBuf
() =
default
;
14
15
void
CFX_CSSOutputTextBuf
::
AppendCharIfNotLeadingBlank
(
wchar_t
wch) {
16
if
(m_Buffer.empty() && wch <=
' '
)
17
return
;
18
19
m_Buffer.push_back(wch);
20
}
21
22
WideStringView
CFX_CSSOutputTextBuf
::
GetTrailingBlankTrimmedString
()
const
{
23
WideStringView result(m_Buffer);
24
while
(!result.IsEmpty() && result.Back() <=
' '
)
25
result = result.First(result.GetLength() - 1);
26
27
return
result;
28
}
CFX_CSSOutputTextBuf
Definition
cfx_cssoutputtextbuf.h:13
CFX_CSSOutputTextBuf::CFX_CSSOutputTextBuf
CFX_CSSOutputTextBuf()
Definition
cfx_cssoutputtextbuf.cpp:9
CFX_CSSOutputTextBuf::GetTrailingBlankTrimmedString
WideStringView GetTrailingBlankTrimmedString() const
Definition
cfx_cssoutputtextbuf.cpp:22
CFX_CSSOutputTextBuf::AppendCharIfNotLeadingBlank
void AppendCharIfNotLeadingBlank(wchar_t wch)
Definition
cfx_cssoutputtextbuf.cpp:15
CFX_CSSOutputTextBuf::~CFX_CSSOutputTextBuf
~CFX_CSSOutputTextBuf()
qtwebengine
src
3rdparty
chromium
third_party
pdfium
core
fxcrt
css
cfx_cssoutputtextbuf.cpp
Generated on Sat Sep 21 2024 00:55:12 for Qt by
1.12.0