7#ifndef CORE_FXCRT_WIDETEXT_BUFFER_H_
8#define CORE_FXCRT_WIDETEXT_BUFFER_H_
12#include "core/fxcrt/binary_buffer.h"
13#include "core/fxcrt/fx_string.h"
14#include "third_party/base/containers/span.h"
29 void Delete(size_t start_index, size_t count);
31 WideTextBuffer& operator<<(ByteStringView ascii);
32 WideTextBuffer& operator<<(
const wchar_t* lpsz);
33 WideTextBuffer& operator<<(WideStringView str);
34 WideTextBuffer& operator<<(
const WideString& str);
35 WideTextBuffer& operator<<(
const WideTextBuffer& buf);
38 void AppendWideString(WideStringView str);
41 pdfium::span<
wchar_t> ExpandWideBuf(size_t char_count);
46using fxcrt::WideTextBuffer;
CharInfo(const CharInfo &)
UnownedPtr< const CPDF_TextObject > m_pTextObj
int CharIndexFromTextIndex(int text_index) const
WideString GetAllPageText() const
bool GetRect(int rectIndex, CFX_FloatRect *pRect) const
WideString GetTextByRect(const CFX_FloatRect &rect) const
const CharInfo & GetCharInfo(size_t index) const
CFX_FloatRect GetCharLooseBounds(size_t index) const
CPDF_TextPage(const CPDF_Page *pPage, bool rtl)
WideString GetTextByObject(const CPDF_TextObject *pTextObj) const
int GetIndexAtPos(const CFX_PointF &point, const CFX_SizeF &tolerance) const
float GetCharFontSize(size_t index) const
int CountRects(int start, int nCount)
int TextIndexFromCharIndex(int char_index) const
std::vector< CFX_FloatRect > GetRectArray(int start, int count) const
WideString GetPageText(int start, int count) const
WideString & operator=(WideString &&that) noexcept
void TrimRight(wchar_t target)
pdfium::span< wchar_t > GetWideSpan()
void AppendChar(wchar_t wch)
void Delete(size_t start_index, size_t count)
pdfium::span< const wchar_t > GetWideSpan() const
WideString MakeString() const
WideStringView AsStringView() const
size_t GetLength() const override
bool FXSYS_iswalnum(wchar_t c)
#define FX_DATA_PARTITION_EXCEPTION(T)
WideString operator+(const wchar_t *str1, const WideString &str2)