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
fxcrt::WideString Class Reference

#include <widestring.h>

+ Collaboration diagram for fxcrt::WideString:

Public Types

using CharType = wchar_t
 
using const_iterator = const CharType*
 
using const_reverse_iterator = std::reverse_iterator<const_iterator>
 

Public Member Functions

 WideString ()
 
 WideString (const WideString &other)
 
 WideString (WideString &&other) noexcept
 
 WideString (wchar_t ch)
 
 WideString (const wchar_t *ptr)
 
 WideString (char)=delete
 
 WideString (const wchar_t *pStr, size_t len)
 
 WideString (WideStringView str)
 
 WideString (WideStringView str1, WideStringView str2)
 
 WideString (const std::initializer_list< WideStringView > &list)
 
 ~WideString ()
 
const wchar_t * c_str () const
 
WideStringView AsStringView () const
 
pdfium::span< const wchar_t > span () const
 
const_iterator begin () const
 
const_iterator end () const
 
const_reverse_iterator rbegin () const
 
const_reverse_iterator rend () const
 
void clear ()
 
size_t GetLength () const
 
size_t GetStringLength () const
 
bool IsEmpty () const
 
bool IsValidIndex (size_t index) const
 
bool IsValidLength (size_t length) const
 
WideStringoperator= (const wchar_t *str)
 
WideStringoperator= (WideStringView str)
 
WideStringoperator= (const WideString &that)
 
WideStringoperator= (WideString &&that) noexcept
 
WideStringoperator+= (const wchar_t *str)
 
WideStringoperator+= (wchar_t ch)
 
WideStringoperator+= (const WideString &str)
 
WideStringoperator+= (WideStringView str)
 
bool operator== (const wchar_t *ptr) const
 
bool operator== (WideStringView str) const
 
bool operator== (const WideString &other) const
 
bool operator!= (const wchar_t *ptr) const
 
bool operator!= (WideStringView str) const
 
bool operator!= (const WideString &other) const
 
bool operator< (const wchar_t *ptr) const
 
bool operator< (WideStringView str) const
 
bool operator< (const WideString &other) const
 
CharType operator[] (const size_t index) const
 
CharType Front () const
 
CharType Back () const
 
void SetAt (size_t index, wchar_t c)
 
int Compare (const wchar_t *str) const
 
int Compare (const WideString &str) const
 
int CompareNoCase (const wchar_t *str) const
 
WideString Substr (size_t offset) const
 
WideString Substr (size_t first, size_t count) const
 
WideString First (size_t count) const
 
WideString Last (size_t count) const
 
size_t Insert (size_t index, wchar_t ch)
 
size_t InsertAtFront (wchar_t ch)
 
size_t InsertAtBack (wchar_t ch)
 
size_t Delete (size_t index, size_t count=1)
 
void MakeLower ()
 
void MakeUpper ()
 
void Trim ()
 
void Trim (wchar_t target)
 
void Trim (WideStringView targets)
 
void TrimLeft ()
 
void TrimLeft (wchar_t target)
 
void TrimLeft (WideStringView targets)
 
void TrimRight ()
 
void TrimRight (wchar_t target)
 
void TrimRight (WideStringView targets)
 
void Reserve (size_t len)
 
pdfium::span< wchar_t > GetBuffer (size_t nMinBufLength)
 
void ReleaseBuffer (size_t nNewLength)
 
int GetInteger () const
 
absl::optional< size_t > Find (WideStringView subStr, size_t start=0) const
 
absl::optional< size_t > Find (wchar_t ch, size_t start=0) const
 
absl::optional< size_t > ReverseFind (wchar_t ch) const
 
bool Contains (WideStringView lpszSub, size_t start=0) const
 
bool Contains (char ch, size_t start=0) const
 
size_t Replace (WideStringView pOld, WideStringView pNew)
 
size_t Remove (wchar_t ch)
 
bool IsASCII () const
 
bool EqualsASCII (ByteStringView that) const
 
bool EqualsASCIINoCase (ByteStringView that) const
 
ByteString ToASCII () const
 
ByteString ToLatin1 () const
 
ByteString ToDefANSI () const
 
ByteString ToUTF8 () const
 
ByteString ToUTF16LE () const
 
WideString EncodeEntities () const
 

Static Public Member Functions

static WideString FormatInteger (int i)
 
static WideString Format (const wchar_t *pFormat,...)
 
static WideString FormatV (const wchar_t *lpszFormat, va_list argList)
 
static WideString FromASCII (ByteStringView str)
 
static WideString FromLatin1 (ByteStringView str)
 
static WideString FromDefANSI (ByteStringView str)
 
static WideString FromUTF8 (ByteStringView str)
 
static WideString FromUTF16LE (pdfium::span< const uint8_t > data)
 
static WideString FromUTF16BE (pdfium::span< const uint8_t > data)
 
static size_t WStringLength (const unsigned short *str)
 

Protected Types

using StringData = StringDataTemplate<wchar_t>
 

Protected Member Functions

void ReallocBeforeWrite (size_t nNewLength)
 
void AllocBeforeWrite (size_t nNewLength)
 
void AllocCopy (WideString &dest, size_t nCopyLen, size_t nCopyIndex) const
 
void AssignCopy (const wchar_t *pSrcData, size_t nSrcLen)
 
void Concat (const wchar_t *pSrcData, size_t nSrcLen)
 
intptr_t ReferenceCountForTesting () const
 

Protected Attributes

RetainPtr< StringDatam_pData
 

Friends

class WideString_Assign_Test
 
class WideString_ConcatInPlace_Test
 
class WideString_Construct_Test
 
class StringPool_WideString_Test
 

Detailed Description

Definition at line 33 of file widestring.h.

Member Typedef Documentation

◆ CharType

using fxcrt::WideString::CharType = wchar_t

Definition at line 36 of file widestring.h.

◆ const_iterator

Definition at line 37 of file widestring.h.

◆ const_reverse_iterator

Definition at line 38 of file widestring.h.

◆ StringData

Definition at line 237 of file widestring.h.

Constructor & Destructor Documentation

◆ WideString() [1/10]

fxcrt::WideString::WideString ( )
default

Referenced by CXFA_Node::ClearAllSelections(), CXFA_Node::Clone(), CPDF_FileSpec::DecodeFileName(), CFDE_TextEditEngine::Delete(), CFDE_TextEditEngine::DeleteSelectedText(), CXFA_Document::DoDataMerge(), CBC_ErrorCorrection::EncodeECC200(), CPDF_FileSpec::EncodeFileName(), CBC_HighLevelEncoder::EncodeHighLevel(), CFGAS_StringFormatter::FormatDateTime(), FormatV(), FPDFAnnot_GetAP(), FromDefANSI(), FromUTF16BE(), FromUTF16LE(), CPDF_GenerateAP::GenerateFormAP(), CPDF_FormField::GetAlternateName(), CXFA_Value::GetChildValueContent(), CXFA_XMLLocale::GetCurrencySymbol(), CXFA_NodeLocale::GetDatePattern(), CXFA_XMLLocale::GetDatePattern(), CXFA_NodeLocale::GetDateTimeSymbols(), CXFA_XMLLocale::GetDateTimeSymbols(), CXFA_XMLLocale::GetDecimalSymbol(), CFWL_ComboBox::GetEditText(), CPDF_Action::GetFilePath(), CPDFSDK_FormFillEnvironment::GetFilePath(), CPDFSDK_PageView::GetFocusedFormText(), CXFA_Node::GetFormatDataValue(), CXFA_XMLLocale::GetGroupingSymbol(), CXFA_Node::GetItemValue(), CPDF_Action::GetJavaScript(), CXFA_TextLayout::GetLinkURLAtPoint(), CPDF_FormField::GetMappingName(), CXFA_Calculate::GetMessageText(), CXFA_XMLLocale::GetMinusSymbol(), CFX_XMLElement::GetNamespaceURI(), CXFA_Node::GetNormalizeDataValue(), CXFA_XMLLocale::GetNumPattern(), CPDF_TextPage::GetPageText(), CXFA_XMLLocale::GetPercentSymbol(), CXFA_Bind::GetPicture(), CXFA_Validate::GetPicture(), CXFA_Node::GetPictureContent(), CPDF_FormField::GetSelectedIndex(), CFDE_TextEditEngine::GetSelectedText(), CFFL_FormField::GetSelectedText(), CFFL_InteractiveFormFiller::GetSelectedText(), CPDFSDK_BAAnnot::GetSelectedText(), CPDFSDK_PageView::GetSelectedText(), CPDFSDK_Widget::GetSelectedText(), CPDFXFA_Widget::GetSelectedText(), CPWL_ComboBox::GetSelectedText(), CPWL_Wnd::GetSelectedText(), CXFA_FFWidgetHandler::GetSelectedText(), CPDFSDK_Widget::GetSelectExportText(), CXFA_Object::GetSOMExpression(), CFFL_FormField::GetText(), CFFL_InteractiveFormFiller::GetText(), CPDFSDK_BAAnnot::GetText(), CPDFSDK_Widget::GetText(), CPDFXFA_Widget::GetText(), CPWL_Wnd::GetText(), CXFA_FFWidget::GetText(), CFWL_ComboBox::GetTextByIndex(), CXFA_NodeLocale::GetTimePattern(), CXFA_XMLLocale::GetTimePattern(), CPDF_Bookmark::GetTitle(), CPDFXFA_DocEnvironment::GetTitle(), CPDF_Object::GetUnicodeText(), CPDF_Array::GetUnicodeTextAt(), CPDF_Dictionary::GetUnicodeTextFor(), CPDFSDK_FormFillEnvironment::KillFocusAnnot(), CPDF_ToUnicodeMap::Lookup(), CFWL_ComboList::MatchItem(), CXFA_Node::NormalizeNumStr(), CXFA_Node::RemoveChildAndNotify(), CPDFXFA_Context::Response(), CXFA_Node::SetItemState(), Substr(), fxcrt::TEST(), fxcrt::TEST(), CPDF_CIDFont::UnicodeFromCharCode(), CPDF_SimpleFont::UnicodeFromCharCode(), and XFA_PatternToString().

◆ WideString() [2/10]

fxcrt::WideString::WideString ( const WideString & other)
default

◆ WideString() [3/10]

fxcrt::WideString::WideString ( WideString && other)
noexcept

Definition at line 413 of file widestring.cpp.

◆ WideString() [4/10]

fxcrt::WideString::WideString ( wchar_t ch)
explicit

Definition at line 422 of file widestring.cpp.

Referenced by CBC_OnedCodaBarWriter::encodedContents(), CPDF_ToUnicodeMap::Lookup(), CPDF_CIDFont::UnicodeFromCharCode(), CPDF_SimpleFont::UnicodeFromCharCode(), and CXFA_LocaleValue::ValidateNumericTemp().

+ Here is the caller graph for this function:

◆ WideString() [5/10]

◆ WideString() [6/10]

fxcrt::WideString::WideString ( char )
delete

◆ WideString() [7/10]

fxcrt::WideString::WideString ( const wchar_t * pStr,
size_t len )

Definition at line 417 of file widestring.cpp.

◆ WideString() [8/10]

fxcrt::WideString::WideString ( WideStringView str)
explicit

Definition at line 430 of file widestring.cpp.

◆ WideString() [9/10]

fxcrt::WideString::WideString ( WideStringView str1,
WideStringView str2 )

Definition at line 437 of file widestring.cpp.

◆ WideString() [10/10]

fxcrt::WideString::WideString ( const std::initializer_list< WideStringView > & list)

Definition at line 451 of file widestring.cpp.

◆ ~WideString()

fxcrt::WideString::~WideString ( )
default

Member Function Documentation

◆ AllocBeforeWrite()

void fxcrt::WideString::AllocBeforeWrite ( size_t nNewLength)
protected

Definition at line 621 of file widestring.cpp.

References clear().

+ Here is the call graph for this function:

◆ AllocCopy()

void fxcrt::WideString::AllocCopy ( WideString & dest,
size_t nCopyLen,
size_t nCopyIndex ) const
protected

Definition at line 833 of file widestring.cpp.

◆ AssignCopy()

void fxcrt::WideString::AssignCopy ( const wchar_t * pSrcData,
size_t nSrcLen )
protected

Definition at line 594 of file widestring.cpp.

◆ AsStringView()

WideStringView fxcrt::WideString::AsStringView ( ) const
inline

Definition at line 85 of file widestring.h.

◆ Back()

CharType fxcrt::WideString::Back ( ) const
inline

Definition at line 152 of file widestring.h.

Referenced by CBC_HighLevelEncoder::EncodeHighLevel(), CPDF_LinkExtract::ExtractLinks(), and CPDF_TextPageFind::FindNext().

+ Here is the caller graph for this function:

◆ begin()

const_iterator fxcrt::WideString::begin ( ) const
inline

Definition at line 97 of file widestring.h.

Referenced by rend(), and fxcrt::TEST().

+ Here is the caller graph for this function:

◆ c_str()

◆ clear()

◆ Compare() [1/2]

int fxcrt::WideString::Compare ( const wchar_t * str) const

Definition at line 1088 of file widestring.cpp.

Referenced by CXFA_FMCallExpression::IsMethodWithObjParam(), fxcrt::operator<(), and operator<().

+ Here is the caller graph for this function:

◆ Compare() [2/2]

int fxcrt::WideString::Compare ( const WideString & str) const

Definition at line 1094 of file widestring.cpp.

Referenced by operator<().

+ Here is the caller graph for this function:

◆ CompareNoCase()

int fxcrt::WideString::CompareNoCase ( const wchar_t * str) const

Definition at line 1111 of file widestring.cpp.

Referenced by fxjs::FX_ParseDateUsingFormat(), and CXFA_FMCallExpression::IsBuiltInFunc().

+ Here is the caller graph for this function:

◆ Concat()

void fxcrt::WideString::Concat ( const wchar_t * pSrcData,
size_t nSrcLen )
protected

Definition at line 704 of file widestring.cpp.

◆ Contains() [1/2]

bool fxcrt::WideString::Contains ( char ch,
size_t start = 0 ) const
inline

Definition at line 208 of file widestring.h.

◆ Contains() [2/2]

bool fxcrt::WideString::Contains ( WideStringView lpszSub,
size_t start = 0 ) const
inline

Definition at line 204 of file widestring.h.

◆ Delete()

size_t fxcrt::WideString::Delete ( size_t index,
size_t count = 1 )

Definition at line 683 of file widestring.cpp.

◆ EncodeEntities()

WideString fxcrt::WideString::EncodeEntities ( ) const

Definition at line 788 of file widestring.cpp.

Referenced by fxcrt::TEST().

+ Here is the caller graph for this function:

◆ end()

const_iterator fxcrt::WideString::end ( ) const
inline

Definition at line 98 of file widestring.h.

Referenced by rbegin(), and fxcrt::TEST().

+ Here is the caller graph for this function:

◆ EqualsASCII()

◆ EqualsASCIINoCase()

bool fxcrt::WideString::EqualsASCIINoCase ( ByteStringView that) const
inline

Definition at line 219 of file widestring.h.

Referenced by CXFA_TextParser::IsSpaceRun(), and fxcrt::TEST().

+ Here is the caller graph for this function:

◆ Find() [1/2]

absl::optional< size_t > fxcrt::WideString::Find ( wchar_t ch,
size_t start = 0 ) const

Definition at line 858 of file widestring.cpp.

◆ Find() [2/2]

absl::optional< size_t > fxcrt::WideString::Find ( WideStringView subStr,
size_t start = 0 ) const

Definition at line 872 of file widestring.cpp.

◆ First()

WideString fxcrt::WideString::First ( size_t count) const

Definition at line 824 of file widestring.cpp.

◆ Format()

WideString fxcrt::WideString::Format ( const wchar_t * pFormat,
... )
staticnodiscard

Definition at line 401 of file widestring.cpp.

References FormatV().

Referenced by CJS_PublicMethods::AFDate_FormatEx(), CJS_PublicMethods::AFDate_KeystrokeEx(), CJS_PublicMethods::AFParseDateEx(), CFGAS_StringFormatter::FormatNum(), CJS_PublicMethods::PrintDateUsingFormat(), CXFA_Stroke::SetColor(), CXFA_Color::SetValue(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), and CXFA_Measurement::ToString().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FormatInteger()

WideString fxcrt::WideString::FormatInteger ( int i)
staticnodiscard

Definition at line 369 of file widestring.cpp.

References WideString().

Referenced by CPDF_PageLabel::GetLabel(), CJS_PublicMethods::PrintDateUsingFormat(), CJX_Object::SetInteger(), and fxcrt::TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FormatV()

WideString fxcrt::WideString::FormatV ( const wchar_t * lpszFormat,
va_list argList )
staticnodiscard

Definition at line 376 of file widestring.cpp.

References WideString().

Referenced by Format().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FromASCII()

◆ FromDefANSI()

WideString fxcrt::WideString::FromDefANSI ( ByteStringView str)
staticnodiscard

Definition at line 1017 of file widestring.cpp.

References WideString(), and kDefANSI.

Referenced by CPDF_FormControl::GetDefaultControlFontName(), CPDF_FileSpec::GetFileName(), CPDF_Action::GetFilePath(), CPDFXFA_DocEnvironment::GetTitle(), and fxcrt::TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FromLatin1()

WideString fxcrt::WideString::FromLatin1 ( ByteStringView str)
staticnodiscard

Definition at line 1008 of file widestring.cpp.

Referenced by CPDF_SecurityHandler::GetEncodedPassword(), and fxcrt::TEST().

+ Here is the caller graph for this function:

◆ FromUTF16BE()

WideString fxcrt::WideString::FromUTF16BE ( pdfium::span< const uint8_t > data)
staticnodiscard

Definition at line 1060 of file widestring.cpp.

References WideString().

Referenced by GetNameFromTT(), PDF_DecodeText(), and fxcrt::TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FromUTF16LE()

WideString fxcrt::WideString::FromUTF16LE ( pdfium::span< const uint8_t > data)
staticnodiscard

Definition at line 1038 of file widestring.cpp.

References WideString().

Referenced by CPDFXFA_DocEnvironment::ExportData(), PDF_DecodeText(), CPDFXFA_Context::Response(), fxcrt::TEST(), and WideStringFromFPDFWideString().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FromUTF8()

WideString fxcrt::WideString::FromUTF8 ( ByteStringView str)
staticnodiscard

◆ Front()

CharType fxcrt::WideString::Front ( ) const
inline

Definition at line 151 of file widestring.h.

◆ GetBuffer()

pdfium::span< wchar_t > fxcrt::WideString::GetBuffer ( size_t nMinBufLength)

Definition at line 658 of file widestring.cpp.

◆ GetInteger()

int fxcrt::WideString::GetInteger ( ) const

Definition at line 1203 of file widestring.cpp.

Referenced by CXFA_TextParser::CountTabs(), CFXJSE_NodeHelper::CreateNodeForCondition(), CXFA_TextParser::GetHorScale(), and CXFA_TextParser::GetVerScale().

+ Here is the caller graph for this function:

◆ GetLength()

size_t fxcrt::WideString::GetLength ( ) const
inline

Definition at line 114 of file widestring.h.

◆ GetStringLength()

size_t fxcrt::WideString::GetStringLength ( ) const
inline

Definition at line 115 of file widestring.h.

◆ Insert()

size_t fxcrt::WideString::Insert ( size_t index,
wchar_t ch )

Definition at line 844 of file widestring.cpp.

◆ InsertAtBack()

size_t fxcrt::WideString::InsertAtBack ( wchar_t ch)
inline

Definition at line 167 of file widestring.h.

◆ InsertAtFront()

size_t fxcrt::WideString::InsertAtFront ( wchar_t ch)
inline

Definition at line 166 of file widestring.h.

◆ IsASCII()

bool fxcrt::WideString::IsASCII ( ) const
inline

Definition at line 215 of file widestring.h.

Referenced by fxcrt::TEST().

+ Here is the caller graph for this function:

◆ IsEmpty()

bool fxcrt::WideString::IsEmpty ( ) const
inline

Definition at line 118 of file widestring.h.

Referenced by CXFA_FFText::AcceptsFocusOnButtonDown(), CJS_PublicMethods::AFDate_FormatEx(), CJS_PublicMethods::AFDate_KeystrokeEx(), CJS_PublicMethods::AFNumber_Keystroke(), CJS_PublicMethods::AFRange_Validate(), CJS_PublicMethods::AFSpecial_KeystrokeEx(), CXFA_FFField::CalculateNode(), CXFA_Node::Clone(), CFX_CSSStyleSelector::ComputeStyle(), CXFA_DocumentBuilder::ConstructXFANode(), CPDFSDK_InteractiveForm::DoAction_SubmitForm(), CPDFSDK_FormFillEnvironment::DoActionFieldJavaScript(), CPDFSDK_FormFillEnvironment::DoActionJavaScript(), CXFA_Document::DoDataMerge(), CXFA_Document::DoProtoMerge(), CFDE_TextOut::DrawLogicText(), CBC_DataMatrixWriter::Encode(), CBC_EdifactEncoder::Encode(), CBC_ErrorCorrection::EncodeECC200(), XFAJSEmbedderTest::Execute(), CXFA_Node::ExecuteBoolScript(), CPDFXFA_DocEnvironment::ExportData(), CPDF_InteractiveForm::ExportToFDF(), CPDF_Font::FallbackGlyphFromCharcode(), CPDF_TextPageFind::FindNext(), CFieldTree::FindNode(), CXFA_Node::FindSplitPos(), CFGAS_StringFormatter::FormatNum(), FPDFAttachment_GetStringValue(), FPDFBookmark_Find(), FPDFDoc_AddAttachment(), fxjs::FX_ParseDateUsingFormat(), CXFA_FFBarcode::GetBarcodeTypeByName(), GetCharPosList(), CXFA_Node::GetCheckState(), CXFA_Node::GetContainerNode(), CPDF_FormField::GetDefaultSelectedItem(), CFieldTree::GetField(), CPDF_FileSpec::GetFileName(), CPDF_FileSpec::GetFileStream(), CXFA_Node::GetFormatDataValue(), CPDF_FormField::GetFullNameForDict(), CFX_XMLElement::GetNamespaceURI(), CXFA_Document::GetNodeByID(), CXFA_Node::GetNormalizeDataValue(), CXFA_Node::GetSelectedMember(), CPDFSDK_Widget::GetSelectExportText(), CXFA_TextParser::GetTabstops(), CXFA_Node::GetValue(), CPDF_CIDFont::GlyphFromCharCode(), CXFA_FFText::HitTest(), CFDE_TextEditEngine::Insert(), CXFA_Node::InsertItem(), CPDF_TrueTypeFont::LoadGlyphMap(), CXFA_FFDateTimeEdit::LoadWidget(), MakeLower(), MakeUpper(), CFX_CSSStyleSelector::MatchDeclarations(), CXFA_Node::NormalizeNumStr(), CPDFSDK_InteractiveForm::OnCalculate(), CPDFSDK_InteractiveForm::OnFormat(), CXFA_FFText::OnLButtonUp(), CXFA_FFText::OnMouseMove(), operator==(), CFGAS_StringFormatter::ParseNum(), CFGAS_StringFormatter::ParseText(), CXFA_Node::ProcessValidate(), CXFA_ViewLayoutProcessor::QueryOverflow(), Remove(), CXFA_Node::RemoveChildAndNotify(), CXFA_Node::ResetData(), CPDFSDK_BAAnnot::SetAnnotName(), CPDFSDK_AppStream::SetAsPushButton(), CFieldTree::SetField(), CXFA_Node::SetItemState(), CXFA_Node::SetValue(), CPDFSDK_InteractiveForm::SubmitForm(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), TEST(), TEST(), TrimRight(), CPDF_CIDFont::UnicodeFromCharCode(), CPDF_SimpleFont::UnicodeFromCharCode(), CXFA_FFDateTimeEdit::UpdateFWLData(), CXFA_FFPasswordEdit::UpdateWidgetProperty(), CXFA_LocaleValue::ValidateNumericTemp(), CXFA_LocaleValue::ValidateValue(), XFA_DataExporter_RegenerateFormFile(), and XFA_FDEExtension_ResolveNamespaceQualifier().

◆ IsValidIndex()

bool fxcrt::WideString::IsValidIndex ( size_t index) const
inline

Definition at line 119 of file widestring.h.

◆ IsValidLength()

bool fxcrt::WideString::IsValidLength ( size_t length) const
inline

Definition at line 120 of file widestring.h.

◆ Last()

WideString fxcrt::WideString::Last ( size_t count) const

Definition at line 828 of file widestring.cpp.

◆ MakeLower()

void fxcrt::WideString::MakeLower ( )

Definition at line 900 of file widestring.cpp.

References IsEmpty().

Referenced by CPDF_LinkExtract::CheckWebLink(), fxjs::FX_ParseDateUsingFormat(), CFX_CSSData::GetColorByName(), CFX_CSSData::GetLengthUnitByName(), and fxcrt::TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MakeUpper()

void fxcrt::WideString::MakeUpper ( )

Definition at line 908 of file widestring.cpp.

References IsEmpty().

Referenced by fxcrt::TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator!=() [1/3]

bool fxcrt::WideString::operator!= ( const wchar_t * ptr) const
inline

Definition at line 138 of file widestring.h.

References operator==().

Referenced by fxcrt::operator!=(), and fxcrt::TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator!=() [2/3]

bool fxcrt::WideString::operator!= ( const WideString & other) const
inline

Definition at line 140 of file widestring.h.

References operator==().

Referenced by CXFA_Node::SetCheckState(), fxcrt::TEST(), and CXFA_FFTextEdit::UpdateFWLData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator!=() [3/3]

bool fxcrt::WideString::operator!= ( WideStringView str) const
inline

Definition at line 139 of file widestring.h.

◆ operator+=() [1/4]

◆ operator+=() [2/4]

WideString & fxcrt::WideString::operator+= ( const WideString & str)

◆ operator+=() [3/4]

◆ operator+=() [4/4]

WideString & fxcrt::WideString::operator+= ( WideStringView str)

Definition at line 531 of file widestring.cpp.

◆ operator<() [1/3]

bool fxcrt::WideString::operator< ( const wchar_t * ptr) const

Definition at line 573 of file widestring.cpp.

References Compare().

Referenced by fxcrt::TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator<() [2/3]

bool fxcrt::WideString::operator< ( const WideString & other) const

Definition at line 590 of file widestring.cpp.

References Compare().

Referenced by fxcrt::TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator<() [3/3]

bool fxcrt::WideString::operator< ( WideStringView str) const

Definition at line 577 of file widestring.cpp.

References c_str().

+ Here is the call graph for this function:

◆ operator=() [1/4]

WideString & fxcrt::WideString::operator= ( const wchar_t * str)

Definition at line 480 of file widestring.cpp.

References clear().

Referenced by CJS_PublicMethods::AFSpecial_Format(), CFXJSE_NodeHelper::CreateNodeForCondition(), CXFA_XMLLocale::GetDatePattern(), CXFA_XMLLocale::GetTimePattern(), CJS_PublicMethods::PrintDateUsingFormat(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), TEST_F(), XFA_DataExporter_RegenerateFormFile(), and XFA_FDEExtension_ResolveNamespaceQualifier().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=() [2/4]

WideString & fxcrt::WideString::operator= ( const WideString & that)

Definition at line 498 of file widestring.cpp.

Referenced by CJS_PublicMethods::AFMergeChange(), CXFA_Node::InsertItem(), CFGAS_StringFormatter::ParseText(), CPDFSDK_AppStream::SetAsPushButton(), CXFA_Node::SetValue(), fxcrt::TEST(), and fxcrt::TEST().

+ Here is the caller graph for this function:

◆ operator=() [3/4]

◆ operator=() [4/4]

WideString & fxcrt::WideString::operator= ( WideStringView str)

Definition at line 489 of file widestring.cpp.

References clear().

+ Here is the call graph for this function:

◆ operator==() [1/3]

bool fxcrt::WideString::operator== ( const wchar_t * ptr) const

Definition at line 538 of file widestring.cpp.

Referenced by CBC_HighLevelEncoder::EncodeHighLevel(), CFGAS_StringFormatter::GetCategory(), CXFA_FMCallExpression::IsMethodWithObjParam(), operator!=(), fxcrt::operator==(), and fxcrt::TEST().

+ Here is the caller graph for this function:

◆ operator==() [2/3]

bool fxcrt::WideString::operator== ( const WideString & other) const

Definition at line 558 of file widestring.cpp.

References IsEmpty().

Referenced by CPDF_FormField::CheckControl(), CPDF_FormField::FindOption(), CPDF_FormField::GetDefaultSelectedItem(), CXFA_LocaleMgr::GetLocaleByName(), CPDF_FormField::GetSelectedIndex(), operator!=(), CPDF_FormField::ResetField(), and fxcrt::TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator==() [3/3]

bool fxcrt::WideString::operator== ( WideStringView str) const

Definition at line 549 of file widestring.cpp.

◆ operator[]()

◆ rbegin()

const_reverse_iterator fxcrt::WideString::rbegin ( ) const
inline

Definition at line 103 of file widestring.h.

References end().

+ Here is the call graph for this function:

◆ ReallocBeforeWrite()

void fxcrt::WideString::ReallocBeforeWrite ( size_t nNewLength)
protected

Definition at line 600 of file widestring.cpp.

References clear().

+ Here is the call graph for this function:

◆ ReferenceCountForTesting()

intptr_t fxcrt::WideString::ReferenceCountForTesting ( ) const
protected

Definition at line 728 of file widestring.cpp.

Referenced by fxcrt::TEST(), and fxcrt::TEST().

+ Here is the caller graph for this function:

◆ ReleaseBuffer()

void fxcrt::WideString::ReleaseBuffer ( size_t nNewLength)

Definition at line 633 of file widestring.cpp.

References WideString(), and clear().

+ Here is the call graph for this function:

◆ Remove()

size_t fxcrt::WideString::Remove ( wchar_t ch)

Definition at line 916 of file widestring.cpp.

References IsEmpty().

+ Here is the call graph for this function:

◆ rend()

const_reverse_iterator fxcrt::WideString::rend ( ) const
inline

Definition at line 106 of file widestring.h.

References begin().

+ Here is the call graph for this function:

◆ Replace()

size_t fxcrt::WideString::Replace ( WideStringView pOld,
WideStringView pNew )

Definition at line 950 of file widestring.cpp.

References clear(), and FXSYS_wmemcpy().

+ Here is the call graph for this function:

◆ Reserve()

void fxcrt::WideString::Reserve ( size_t len)

Definition at line 654 of file widestring.cpp.

◆ ReverseFind()

absl::optional< size_t > fxcrt::WideString::ReverseFind ( wchar_t ch) const

Definition at line 888 of file widestring.cpp.

◆ SetAt()

void fxcrt::WideString::SetAt ( size_t index,
wchar_t c )

Definition at line 1082 of file widestring.cpp.

◆ span()

pdfium::span< const wchar_t > fxcrt::WideString::span ( ) const
inline

Definition at line 91 of file widestring.h.

◆ Substr() [1/2]

WideString fxcrt::WideString::Substr ( size_t first,
size_t count ) const

Definition at line 803 of file widestring.cpp.

References WideString().

+ Here is the call graph for this function:

◆ Substr() [2/2]

WideString fxcrt::WideString::Substr ( size_t offset) const

Definition at line 798 of file widestring.cpp.

◆ ToASCII()

ByteString fxcrt::WideString::ToASCII ( ) const

Definition at line 732 of file widestring.cpp.

Referenced by fxcrt::TEST().

+ Here is the caller graph for this function:

◆ ToDefANSI()

ByteString fxcrt::WideString::ToDefANSI ( ) const

Definition at line 748 of file widestring.cpp.

References fxcrt::ByteString::ByteString().

Referenced by CTextOnlyPrinterDriver::DrawDeviceText(), CPDF_InteractiveForm::ExportToFDF(), CFGAS_PDFFontMgr::GetFont(), and fxcrt::TEST().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ToLatin1()

ByteString fxcrt::WideString::ToLatin1 ( ) const

Definition at line 740 of file widestring.cpp.

Referenced by fxcrt::TEST().

+ Here is the caller graph for this function:

◆ ToUTF16LE()

ByteString fxcrt::WideString::ToUTF16LE ( ) const

Definition at line 768 of file widestring.cpp.

Referenced by CPDFXFA_DocEnvironment::ExportData(), FPDF_GetNamedDest(), FPDFLink_GetURL(), FPDFText_GetBoundedText(), FPDFText_GetText(), CPDFXFA_DocEnvironment::OpenLinkedFile(), CPDFSDK_FormFillEnvironment::SubmitForm(), and Utf16EncodeMaybeCopyAndReturnLength().

+ Here is the caller graph for this function:

◆ ToUTF8()

◆ Trim() [1/3]

void fxcrt::WideString::Trim ( )

Definition at line 1125 of file widestring.cpp.

Referenced by CFXJSE_ResolveProcessor::GetFilter(), and fxcrt::TEST().

+ Here is the caller graph for this function:

◆ Trim() [2/3]

void fxcrt::WideString::Trim ( wchar_t target)

Definition at line 1130 of file widestring.cpp.

Referenced by fxcrt::TEST().

+ Here is the caller graph for this function:

◆ Trim() [3/3]

void fxcrt::WideString::Trim ( WideStringView targets)

Definition at line 1136 of file widestring.cpp.

◆ TrimLeft() [1/3]

void fxcrt::WideString::TrimLeft ( )

Definition at line 1141 of file widestring.cpp.

Referenced by CJS_PublicMethods::AFSimple_Calculate(), fxcrt::TEST(), and fxcrt::TEST().

+ Here is the caller graph for this function:

◆ TrimLeft() [2/3]

void fxcrt::WideString::TrimLeft ( wchar_t target)

Definition at line 1145 of file widestring.cpp.

Referenced by CFGAS_StringFormatter::FormatNum(), CXFA_Node::NormalizeNumStr(), and fxcrt::TEST().

+ Here is the caller graph for this function:

◆ TrimLeft() [3/3]

void fxcrt::WideString::TrimLeft ( WideStringView targets)

Definition at line 1150 of file widestring.cpp.

◆ TrimRight() [1/3]

void fxcrt::WideString::TrimRight ( )

Definition at line 1179 of file widestring.cpp.

Referenced by CJS_PublicMethods::AFSimple_Calculate(), fxcrt::TEST(), and fxcrt::TEST().

+ Here is the caller graph for this function:

◆ TrimRight() [2/3]

void fxcrt::WideString::TrimRight ( wchar_t target)

Definition at line 1183 of file widestring.cpp.

Referenced by CPDF_LinkExtract::CheckMailLink(), and fxcrt::TEST().

+ Here is the caller graph for this function:

◆ TrimRight() [3/3]

void fxcrt::WideString::TrimRight ( WideStringView targets)

Definition at line 1188 of file widestring.cpp.

References IsEmpty().

+ Here is the call graph for this function:

◆ WStringLength()

size_t fxcrt::WideString::WStringLength ( const unsigned short * str)
staticnodiscard

Definition at line 1117 of file widestring.cpp.

Friends And Related Symbol Documentation

◆ StringPool_WideString_Test

friend class StringPool_WideString_Test
friend

Definition at line 251 of file widestring.h.

◆ WideString_Assign_Test

friend class WideString_Assign_Test
friend

Definition at line 248 of file widestring.h.

◆ WideString_ConcatInPlace_Test

friend class WideString_ConcatInPlace_Test
friend

Definition at line 249 of file widestring.h.

◆ WideString_Construct_Test

friend class WideString_Construct_Test
friend

Definition at line 250 of file widestring.h.

Member Data Documentation

◆ m_pData

RetainPtr<StringData> fxcrt::WideString::m_pData
protected

Definition at line 246 of file widestring.h.


The documentation for this class was generated from the following files: