Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <widestring.h>
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 |
WideString & | operator= (const wchar_t *str) |
WideString & | operator= (WideStringView str) |
WideString & | operator= (const WideString &that) |
WideString & | operator= (WideString &&that) noexcept |
WideString & | operator+= (const wchar_t *str) |
WideString & | operator+= (wchar_t ch) |
WideString & | operator+= (const WideString &str) |
WideString & | operator+= (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< StringData > | m_pData |
Friends | |
class | WideString_Assign_Test |
class | WideString_ConcatInPlace_Test |
class | WideString_Construct_Test |
class | StringPool_WideString_Test |
Definition at line 33 of file widestring.h.
using fxcrt::WideString::CharType = wchar_t |
Definition at line 36 of file widestring.h.
using fxcrt::WideString::const_iterator = const CharType* |
Definition at line 37 of file widestring.h.
using fxcrt::WideString::const_reverse_iterator = std::reverse_iterator<const_iterator> |
Definition at line 38 of file widestring.h.
|
protected |
Definition at line 237 of file widestring.h.
|
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().
|
default |
Referenced by CPDF_FileSpec::DecodeFileName(), CPDF_FileSpec::EncodeFileName(), CBC_PDF417::GenerateBarcodeLogic(), CFGAS_PDFFontMgr::GetFont(), CXFA_Node::InsertItem(), ReleaseBuffer(), CJX_Object::SetAttributeByEnum(), CXFA_Node::SetSelectedItems(), CXFA_Node::SetValue(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), and fxcrt::TEST().
|
noexcept |
Definition at line 413 of file widestring.cpp.
|
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().
fxcrt::WideString::WideString | ( | const wchar_t * | ptr | ) |
Definition at line 427 of file widestring.cpp.
References WideString().
Referenced by WideString(), CFXJSE_NodeHelper::CreateNodeForCondition(), CFXJSE_FormCalcContext::Format(), FormatInteger(), FPDFLink_GetURL(), CFX_XMLElement::GetNamespaceURI(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST_F().
|
delete |
fxcrt::WideString::WideString | ( | const wchar_t * | pStr, |
size_t | len ) |
Definition at line 417 of file widestring.cpp.
|
explicit |
Definition at line 430 of file widestring.cpp.
fxcrt::WideString::WideString | ( | WideStringView | str1, |
WideStringView | str2 ) |
Definition at line 437 of file widestring.cpp.
fxcrt::WideString::WideString | ( | const std::initializer_list< WideStringView > & | list | ) |
Definition at line 451 of file widestring.cpp.
|
default |
|
protected |
Definition at line 621 of file widestring.cpp.
References clear().
|
protected |
Definition at line 833 of file widestring.cpp.
|
protected |
Definition at line 594 of file widestring.cpp.
|
inline |
Definition at line 85 of file widestring.h.
|
inline |
Definition at line 152 of file widestring.h.
Referenced by CBC_HighLevelEncoder::EncodeHighLevel(), CPDF_LinkExtract::ExtractLinks(), and CPDF_TextPageFind::FindNext().
|
inline |
Definition at line 97 of file widestring.h.
Referenced by rend(), and fxcrt::TEST().
|
inline |
Definition at line 81 of file widestring.h.
Referenced by CJS_PublicMethods::AFDate_FormatEx(), CJS_PublicMethods::AFDate_KeystrokeEx(), CJS_PublicMethods::AFParseDateEx(), CJS_PublicMethods::AFSimple(), CJS_PublicMethods::AFSimple_Calculate(), XFAJSEmbedderTest::Execute(), CFGAS_DefaultFontManager::GetFont(), CXFA_FontMgr::GetFont(), CXFA_Font::GetHorizontalScale(), CXFA_Font::GetVerticalScale(), CJS_PublicMethods::IsNumber(), operator<(), fxcrt::operator<<(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and CFXJSE_FormCalcContext::UnitType().
void fxcrt::WideString::clear | ( | ) |
Definition at line 472 of file widestring.cpp.
Referenced by CJS_PublicMethods::AFExtractNums(), AllocBeforeWrite(), CFGAS_StringFormatter::FormatNum(), CXFA_LocaleValue::FormatPatterns(), CXFA_TextParser::GetTabstops(), CXFA_Node::GetValue(), CPDF_NameTree::LookupValueAndName(), operator=(), operator=(), CFGAS_StringFormatter::ParseNum(), CFGAS_StringFormatter::ParseText(), CJS_PublicMethods::PrintDateUsingFormat(), ReallocBeforeWrite(), ReleaseBuffer(), Replace(), CXFA_Node::SetCheckState(), CJX_Object::SetContent(), CXFA_Node::SetSelectedMemberByValue(), CXFA_LocaleValue::ValidateValue(), and XFA_FDEExtension_ResolveNamespaceQualifier().
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<().
int fxcrt::WideString::Compare | ( | const WideString & | str | ) | const |
Definition at line 1094 of file widestring.cpp.
Referenced by operator<().
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().
|
protected |
Definition at line 704 of file widestring.cpp.
|
inline |
Definition at line 208 of file widestring.h.
|
inline |
Definition at line 204 of file widestring.h.
size_t fxcrt::WideString::Delete | ( | size_t | index, |
size_t | count = 1 ) |
Definition at line 683 of file widestring.cpp.
WideString fxcrt::WideString::EncodeEntities | ( | ) | const |
Definition at line 788 of file widestring.cpp.
Referenced by fxcrt::TEST().
|
inline |
Definition at line 98 of file widestring.h.
Referenced by rbegin(), and fxcrt::TEST().
|
inline |
Definition at line 216 of file widestring.h.
Referenced by CJS_Color::ConvertArrayToPWLColor(), CXFA_XMLLocale::Create(), CXFA_FFBarcode::GetBarcodeTypeByName(), CXFA_TextProvider::GetTextNode(), CXFA_TextParser::GetUnderlinePeriod(), CXFA_Document::IsInteractive(), CFXJSE_Engine::NormalPropertyGetter(), CXFA_FFDoc::OpenDoc(), CJX_Object::SetAttributeByEnum(), CJX_Object::SetContent(), CXFA_Node::SetValue(), fxcrt::TEST(), CXFA_LocaleValue::ValidateValue(), and XFA_RecognizeRichText().
|
inline |
Definition at line 219 of file widestring.h.
Referenced by CXFA_TextParser::IsSpaceRun(), and fxcrt::TEST().
absl::optional< size_t > fxcrt::WideString::Find | ( | wchar_t | ch, |
size_t | start = 0 ) const |
Definition at line 858 of file widestring.cpp.
absl::optional< size_t > fxcrt::WideString::Find | ( | WideStringView | subStr, |
size_t | start = 0 ) const |
Definition at line 872 of file widestring.cpp.
WideString fxcrt::WideString::First | ( | size_t | count | ) | const |
Definition at line 824 of file widestring.cpp.
|
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().
|
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().
|
staticnodiscard |
Definition at line 376 of file widestring.cpp.
References WideString().
Referenced by Format().
|
staticnodiscard |
Definition at line 999 of file widestring.cpp.
Referenced by CJS_PublicMethods::AFDate_KeystrokeEx(), CXFA_FFField::CalculateNode(), FGAS_FontNameToEnglishName(), CFGAS_DefaultFontManager::GetFont(), JSGetStringFromID(), CJX_Object::SetBoolean(), CJX_Object::SetCDataImpl(), CJX_Object::SetEnum(), CJX_Object::SetInteger(), fxcrt::TEST(), CJX_Object::ThrowArgumentMismatchException(), CJX_Object::ThrowIndexOutOfBoundsException(), CJX_Object::ThrowInvalidPropertyException(), CJX_Object::ThrowParamCountMismatchException(), CJX_Object::ThrowTooManyOccurrencesException(), and CXFA_FMLexer::Token::ToDebugString().
|
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().
|
staticnodiscard |
Definition at line 1008 of file widestring.cpp.
Referenced by CPDF_SecurityHandler::GetEncodedPassword(), and fxcrt::TEST().
|
staticnodiscard |
Definition at line 1060 of file widestring.cpp.
References WideString().
Referenced by GetNameFromTT(), PDF_DecodeText(), and fxcrt::TEST().
|
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().
|
staticnodiscard |
Definition at line 1033 of file widestring.cpp.
Referenced by CFXJSE_FormCalcContext::Decode(), CFXJSE_FormCalcContext::Eval(), CFXJSE_FormCalcContext::eval_translation(), CFXJSE_FormCalcContext::Format(), FPDF_StructElement_Attr_GetStringValue(), FPDF_StructElement_GetObjType(), FPDF_StructElement_GetType(), FPDFPageObjMark_GetName(), FPDFPageObjMark_GetParamStringValue(), CPDF_SecurityHandler::GetEncodedPassword(), CFXJSE_Engine::GlobalPropertyGetter(), CFXJSE_Engine::GlobalPropertySetter(), CFXJSE_Engine::GlobalPropTypeGetter(), CFXJSE_FormCalcContext::IsoDate2Local(), CFXJSE_FormCalcContext::IsoTime2Local(), CFXJSE_FormCalcContext::IsoTime2Num(), JSFormatErrorString(), CFXJSE_FormCalcContext::Local2IsoDate(), CFXJSE_FormCalcContext::Lower(), CFXJSE_Engine::NormalPropertyGetter(), CFXJSE_Engine::NormalPropertySetter(), CFXJSE_Engine::NormalPropTypeGetter(), CFX_FileAccess_Windows::Open(), CFXJSE_FormCalcContext::Parse(), PDF_DecodeText(), CFXJSE_FormCalcContext::Post(), CBC_EANCode::Preprocess(), CFXJSE_FormCalcContext::Put(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), CFXJSE_FormCalcContext::Time2Num(), CFXJSE_FormCalcContext::UnitType(), and CFXJSE_FormCalcContext::Upper().
|
inline |
Definition at line 151 of file widestring.h.
pdfium::span< wchar_t > fxcrt::WideString::GetBuffer | ( | size_t | nMinBufLength | ) |
Definition at line 658 of file widestring.cpp.
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().
|
inline |
Definition at line 114 of file widestring.h.
|
inline |
Definition at line 115 of file widestring.h.
size_t fxcrt::WideString::Insert | ( | size_t | index, |
wchar_t | ch ) |
Definition at line 844 of file widestring.cpp.
|
inline |
Definition at line 167 of file widestring.h.
|
inline |
Definition at line 166 of file widestring.h.
|
inline |
Definition at line 215 of file widestring.h.
Referenced by fxcrt::TEST().
|
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().
|
inline |
Definition at line 119 of file widestring.h.
|
inline |
Definition at line 120 of file widestring.h.
WideString fxcrt::WideString::Last | ( | size_t | count | ) | const |
Definition at line 828 of file widestring.cpp.
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().
void fxcrt::WideString::MakeUpper | ( | ) |
Definition at line 908 of file widestring.cpp.
References IsEmpty().
Referenced by fxcrt::TEST().
|
inline |
Definition at line 138 of file widestring.h.
References operator==().
Referenced by fxcrt::operator!=(), and fxcrt::TEST().
|
inline |
Definition at line 140 of file widestring.h.
References operator==().
Referenced by CXFA_Node::SetCheckState(), fxcrt::TEST(), and CXFA_FFTextEdit::UpdateFWLData().
|
inline |
Definition at line 139 of file widestring.h.
WideString & fxcrt::WideString::operator+= | ( | const wchar_t * | str | ) |
Definition at line 512 of file widestring.cpp.
Referenced by CXFA_FFField::CalculateNode(), CTextOnlyPrinterDriver::DrawDeviceText(), CFGAS_StringFormatter::FormatNum(), CXFA_Node::GetNameExpression(), CFX_XMLElement::GetNamespaceURI(), CPWL_EditImpl::GetRangeText(), CPWL_EditImpl::GetText(), JSFormatErrorString(), CJS_PublicMethods::PrintDateUsingFormat(), CXFA_Node::SetItemState(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), TEST(), TEST(), TEST_F(), and XFA_DataExporter_RegenerateFormFile().
WideString & fxcrt::WideString::operator+= | ( | const WideString & | str | ) |
Definition at line 524 of file widestring.cpp.
Referenced by CBC_ErrorCorrection::EncodeECC200(), CFGAS_StringFormatter::FormatNum(), CPDF_PageLabel::GetLabel(), CXFA_Node::GetNameExpression(), CFX_XMLElement::GetNamespaceURI(), CFX_XMLElement::GetTextData(), CFDE_TextEditEngine::Insert(), JSFormatErrorString(), CJS_PublicMethods::PrintDateUsingFormat(), and CXFA_Node::SetSelectedItems().
WideString & fxcrt::WideString::operator+= | ( | wchar_t | ch | ) |
Definition at line 519 of file widestring.cpp.
Referenced by CBC_EncoderContext::CBC_EncoderContext(), CJS_PublicMethods::AFExtractNums(), CBC_Base256Encoder::Encode(), CBC_Code128::Encode(), CBC_EdifactEncoder::Encode(), CBC_C40Encoder::EncodeChar(), CBC_TextEncoder::EncodeChar(), CBC_X12Encoder::EncodeChar(), CBC_OnedCode39Writer::encodedContents(), CBC_HighLevelEncoder::EncodeHighLevel(), CBC_PDF417HighLevelEncoder::EncodeHighLevel(), CBC_OnedCodaBarWriter::FilterContents(), CBC_OnedCode128Writer::FilterContents(), CBC_OnedCode39Writer::FilterContents(), CBC_OnedEAN13Writer::FilterContents(), CBC_OnedEAN8Writer::FilterContents(), CBC_OnedUPCAWriter::FilterContents(), CFGAS_StringFormatter::FormatNum(), CBC_PDF417::GenerateBarcodeLogic(), CPWL_EditImpl::GetRangeText(), CPWL_EditImpl::GetText(), CBC_C40Encoder::HandleEOD(), CXFA_Node::NumericLimit(), CPWL_Edit::OnChar(), CJS_PublicMethods::ParseDateAsGMT(), CFGAS_StringFormatter::ParseNum(), CJS_PublicMethods::PrintDateUsingFormat(), CBC_OnedCode39Writer::RenderTextContents(), CJS_App::SysPathToPDFPath(), fxcrt::TEST(), fxcrt::TEST(), fxcrt::TEST(), and CFGAS_Decimal::ToWideString().
WideString & fxcrt::WideString::operator+= | ( | WideStringView | str | ) |
Definition at line 531 of file widestring.cpp.
bool fxcrt::WideString::operator< | ( | const wchar_t * | ptr | ) | const |
Definition at line 573 of file widestring.cpp.
References Compare().
Referenced by fxcrt::TEST().
bool fxcrt::WideString::operator< | ( | const WideString & | other | ) | const |
Definition at line 590 of file widestring.cpp.
References Compare().
Referenced by fxcrt::TEST().
bool fxcrt::WideString::operator< | ( | WideStringView | str | ) | const |
Definition at line 577 of file widestring.cpp.
References c_str().
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().
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().
|
noexcept |
Definition at line 505 of file widestring.cpp.
Referenced by CJS_PublicMethods::AFDate_FormatEx(), CJS_PublicMethods::AFNumber_Keystroke(), CJS_PublicMethods::AFSpecial_Format(), CPDF_LinkExtract::CheckMailLink(), CPDF_FormField::ClearSelection(), CFXJSE_FormCalcContext::Decode(), CFXJSE_FormCalcContext::Encode(), CBC_OnedCode39Writer::encodedContents(), CFXJSE_FormCalcContext::Format(), CFGAS_StringFormatter::FormatDateTime(), CFGAS_StringFormatter::FormatNum(), CPDF_FormField::GetCheckValue(), CXFA_TextParser::GetEmbeddedObj(), CXFA_Node::GetFGASFont(), CXFA_TextParser::GetFont(), CPDF_FormField::GetFullNameForDict(), CPDF_FormField::GetSelectedIndex(), CXFA_Node::GetValue(), CFDE_TextEditEngine::Insert(), CXFA_Node::NumericLimit(), CPDFSDK_InteractiveForm::OnFormat(), CFXJSE_FormCalcContext::Parse(), CFGAS_StringFormatter::ParseNum(), CJS_PublicMethods::PrintDateUsingFormat(), CXFA_Node::ResetData(), CPDF_FormField::ResetField(), CJX_Object::ScriptSomMessage(), CPDFSDK_AppStream::SetAsPushButton(), CJX_Object::SetCDataImpl(), CXFA_Node::SetSelectedItems(), CXFA_Node::SetValue(), fxcrt::TEST(), fxcrt::TEST(), TEST(), TEST_F(), CFXJSE_FormCalcContext::Time2Num(), CXFA_LocaleValue::ValidateNumericTemp(), and XFA_FDEExtension_ResolveNamespaceQualifier().
WideString & fxcrt::WideString::operator= | ( | WideStringView | str | ) |
Definition at line 489 of file widestring.cpp.
References clear().
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().
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().
bool fxcrt::WideString::operator== | ( | WideStringView | str | ) | const |
Definition at line 549 of file widestring.cpp.
|
inline |
Definition at line 146 of file widestring.h.
Referenced by CJS_PublicMethods::AFExtractNums(), CFXJSE_NodeHelper::CreateNodeForCondition(), CPDF_Font::FallbackGlyphFromCharcode(), CPDF_TextPageFind::FindNext(), CFGAS_StringFormatter::FormatNum(), GetCharPosList(), CXFA_Node::GetCount(), CXFA_TextParser::GetEmbeddedObj(), CXFA_Node::GetInstanceMgrOfSubform(), CXFA_Node::GetItemIfExists(), CPDF_CIDFont::GlyphFromCharCode(), CXFA_Node::NormalizeNumStr(), CXFA_Node::NumericLimit(), fxcrt::TEST(), TEST_F(), CFGAS_Decimal::ToWideString(), and CXFA_FFPasswordEdit::UpdateWidgetProperty().
|
inline |
Definition at line 103 of file widestring.h.
References end().
|
protected |
Definition at line 600 of file widestring.cpp.
References clear().
|
protected |
Definition at line 728 of file widestring.cpp.
Referenced by fxcrt::TEST(), and fxcrt::TEST().
void fxcrt::WideString::ReleaseBuffer | ( | size_t | nNewLength | ) |
Definition at line 633 of file widestring.cpp.
References WideString(), and clear().
size_t fxcrt::WideString::Remove | ( | wchar_t | ch | ) |
Definition at line 916 of file widestring.cpp.
References IsEmpty().
|
inline |
Definition at line 106 of file widestring.h.
References begin().
size_t fxcrt::WideString::Replace | ( | WideStringView | pOld, |
WideStringView | pNew ) |
Definition at line 950 of file widestring.cpp.
References clear(), and FXSYS_wmemcpy().
void fxcrt::WideString::Reserve | ( | size_t | len | ) |
Definition at line 654 of file widestring.cpp.
absl::optional< size_t > fxcrt::WideString::ReverseFind | ( | wchar_t | ch | ) | const |
Definition at line 888 of file widestring.cpp.
void fxcrt::WideString::SetAt | ( | size_t | index, |
wchar_t | c ) |
Definition at line 1082 of file widestring.cpp.
|
inline |
Definition at line 91 of file widestring.h.
WideString fxcrt::WideString::Substr | ( | size_t | first, |
size_t | count ) const |
Definition at line 803 of file widestring.cpp.
References WideString().
WideString fxcrt::WideString::Substr | ( | size_t | offset | ) | const |
Definition at line 798 of file widestring.cpp.
ByteString fxcrt::WideString::ToASCII | ( | ) | const |
Definition at line 732 of file widestring.cpp.
Referenced by fxcrt::TEST().
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().
ByteString fxcrt::WideString::ToLatin1 | ( | ) | const |
Definition at line 740 of file widestring.cpp.
Referenced by fxcrt::TEST().
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().
ByteString fxcrt::WideString::ToUTF8 | ( | ) | const |
Definition at line 764 of file widestring.cpp.
Referenced by CBC_EncoderContext::CBC_EncoderContext(), CJS_PublicMethods::AFRange_Validate(), ByteStringFromFPDFWideString(), CBC_Code39::Encode(), CBC_OnedCode39Writer::encodedContents(), CPDFXFA_DocEnvironment::ExportData(), CFXJSE_FormCalcContext::Format(), FPDFAction_GetFilePath(), GetPlatformString(), CFXJSE_FormCalcContext::IsoDate2Local(), CFXJSE_FormCalcContext::IsoTime2Local(), fxcrt::operator<<(), CFXJSE_FormCalcContext::Parse(), CFXJSE_FormCalcContext::Post(), CBC_EANCode::Preprocess(), CJX_Object::ScriptSomMessage(), TEST(), and CJX_Object::ThrowException().
void fxcrt::WideString::Trim | ( | ) |
Definition at line 1125 of file widestring.cpp.
Referenced by CFXJSE_ResolveProcessor::GetFilter(), and fxcrt::TEST().
void fxcrt::WideString::Trim | ( | wchar_t | target | ) |
Definition at line 1130 of file widestring.cpp.
Referenced by fxcrt::TEST().
void fxcrt::WideString::Trim | ( | WideStringView | targets | ) |
Definition at line 1136 of file widestring.cpp.
void fxcrt::WideString::TrimLeft | ( | ) |
Definition at line 1141 of file widestring.cpp.
Referenced by CJS_PublicMethods::AFSimple_Calculate(), fxcrt::TEST(), and fxcrt::TEST().
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().
void fxcrt::WideString::TrimLeft | ( | WideStringView | targets | ) |
Definition at line 1150 of file widestring.cpp.
void fxcrt::WideString::TrimRight | ( | ) |
Definition at line 1179 of file widestring.cpp.
Referenced by CJS_PublicMethods::AFSimple_Calculate(), fxcrt::TEST(), and fxcrt::TEST().
void fxcrt::WideString::TrimRight | ( | wchar_t | target | ) |
Definition at line 1183 of file widestring.cpp.
Referenced by CPDF_LinkExtract::CheckMailLink(), and fxcrt::TEST().
void fxcrt::WideString::TrimRight | ( | WideStringView | targets | ) |
Definition at line 1188 of file widestring.cpp.
References IsEmpty().
|
staticnodiscard |
Definition at line 1117 of file widestring.cpp.
|
friend |
Definition at line 251 of file widestring.h.
|
friend |
Definition at line 248 of file widestring.h.
|
friend |
Definition at line 249 of file widestring.h.
|
friend |
Definition at line 250 of file widestring.h.
|
protected |
Definition at line 246 of file widestring.h.