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
10 m_Buffer.reserve(32);
11}
12
14
16 if (m_Buffer.empty() && wch <= ' ')
17 return;
18
19 m_Buffer.push_back(wch);
20}
21
23 WideStringView result(m_Buffer);
24 while (!result.IsEmpty() && result.Back() <= ' ')
25 result = result.First(result.GetLength() - 1);
26
27 return result;
28}
WideStringView GetTrailingBlankTrimmedString() const
void AppendCharIfNotLeadingBlank(wchar_t wch)