Home
last modified time | relevance | path

Searched refs:WideString (Results 1 – 25 of 465) sorted by relevance

12345678910>>...19

/external/pdfium/core/fxcrt/
Dwidestring.h29 class WideString {
35 static WideString Format(const wchar_t* pFormat, ...) WARN_UNUSED_RESULT;
36 static WideString FormatV(const wchar_t* lpszFormat,
39 WideString();
40 WideString(const WideString& other);
43 WideString(WideString&& other) noexcept;
47 WideString(wchar_t ch);
49 WideString(const wchar_t* ptr);
53 WideString(char) = delete;
55 WideString(const wchar_t* pStr, size_t len);
[all …]
Dwidestring.cpp24 template class fxcrt::StringPoolTemplate<WideString>;
25 template struct std::hash<WideString>;
251 Optional<WideString> TryVSWPrintf(size_t size, in TryVSWPrintf()
257 WideString str; in TryVSWPrintf()
283 static_assert(sizeof(WideString) <= sizeof(wchar_t*),
287 WideString WideString::FormatV(const wchar_t* format, va_list argList) { in FormatV()
299 return WideString(); in FormatV()
305 Optional<WideString> ret = in FormatV()
313 return WideString(); in FormatV()
317 WideString WideString::Format(const wchar_t* pFormat, ...) { in Format()
[all …]
Dwidestring_unittest.cpp19 TEST(WideString, ElementAccess) { in TEST() argument
20 const WideString abc(L"abc"); in TEST()
32 WideString mutable_abc = abc; in TEST()
60 TEST(WideString, Construct) { in TEST() argument
63 WideString string1(L"abc"); in TEST()
64 WideString string2(string1); in TEST()
72 WideString string1(L"abc"); in TEST()
73 WideString string2(std::move(string1)); in TEST()
81 TEST(WideString, Assign) { in TEST() argument
84 WideString string1; in TEST()
[all …]
/external/pdfium/xfa/fgas/crt/
Dcfgas_stringformatter.h26 const WideString& wsPattern);
29 static std::vector<WideString> SplitOnBars(const WideString& wsFormatString);
33 bool ParseText(const WideString& wsSrcText,
34 WideString* wsValue) const;
35 bool ParseNum(const WideString& wsSrcNum,
36 WideString* wsValue) const;
37 bool ParseDateTime(const WideString& wsSrcDateTime,
40 bool ParseZero(const WideString& wsSrcText) const;
41 bool ParseNull(const WideString& wsSrcText) const;
43 bool FormatText(const WideString& wsSrcText,
[all …]
Dlocale_iface.h51 virtual WideString GetName() const = 0;
52 virtual WideString GetDecimalSymbol() const = 0;
53 virtual WideString GetGroupingSymbol() const = 0;
54 virtual WideString GetPercentSymbol() const = 0;
55 virtual WideString GetMinusSymbol() const = 0;
56 virtual WideString GetCurrencySymbol() const = 0;
57 virtual WideString GetDateTimeSymbols() const = 0;
58 virtual WideString GetMonthName(int32_t nMonth, bool bAbbr) const = 0;
59 virtual WideString GetDayName(int32_t nWeek, bool bAbbr) const = 0;
60 virtual WideString GetMeridiemName(bool bAM) const = 0;
[all …]
/external/pdfium/core/fxcrt/xml/
Dcfx_xmlelement.h19 explicit CFX_XMLElement(const WideString& wsTag);
27 const WideString& GetName() const { return name_; } in GetName()
29 const std::map<WideString, WideString>& GetAttributes() const { in GetAttributes()
32 bool HasAttribute(const WideString& name) const;
33 void SetAttribute(const WideString& name, const WideString& value);
34 WideString GetAttribute(const WideString& name) const;
36 void RemoveAttribute(const WideString& name);
41 WideString GetLocalTagName() const;
42 WideString GetNamespacePrefix() const;
43 WideString GetNamespaceURI() const;
[all …]
Dcfx_xmlelement.cpp17 CFX_XMLElement::CFX_XMLElement(const WideString& wsTag) : name_(wsTag) { in CFX_XMLElement()
41 WideString CFX_XMLElement::GetLocalTagName() const { in GetLocalTagName()
47 WideString CFX_XMLElement::GetNamespacePrefix() const { in GetNamespacePrefix()
49 return pos.has_value() ? name_.First(pos.value()) : WideString(); in GetNamespacePrefix()
52 WideString CFX_XMLElement::GetNamespaceURI() const { in GetNamespaceURI()
53 WideString attr(L"xmlns"); in GetNamespaceURI()
54 WideString wsPrefix = GetNamespacePrefix(); in GetNamespaceURI()
68 return WideString(); in GetNamespaceURI()
71 WideString CFX_XMLElement::GetTextData() const { in GetTextData()
130 bool CFX_XMLElement::HasAttribute(const WideString& name) const { in HasAttribute()
[all …]
/external/pdfium/xfa/fxfa/parser/
Dcxfa_xmllocale.cpp65 WideString CXFA_XMLLocale::GetName() const { in GetName()
69 WideString CXFA_XMLLocale::GetDecimalSymbol() const { in GetDecimalSymbol()
72 : WideString(); in GetDecimalSymbol()
75 WideString CXFA_XMLLocale::GetGroupingSymbol() const { in GetGroupingSymbol()
78 : WideString(); in GetGroupingSymbol()
81 WideString CXFA_XMLLocale::GetPercentSymbol() const { in GetPercentSymbol()
84 : WideString(); in GetPercentSymbol()
87 WideString CXFA_XMLLocale::GetMinusSymbol() const { in GetMinusSymbol()
90 : WideString(); in GetMinusSymbol()
93 WideString CXFA_XMLLocale::GetCurrencySymbol() const { in GetCurrencySymbol()
[all …]
Dcxfa_localevalue.h34 const WideString& wsValue,
37 const WideString& wsValue,
38 const WideString& wsFormat,
46 bool ValidateValue(const WideString& wsValue,
47 const WideString& wsPattern,
49 WideString* pMatchFormat);
51 bool FormatPatterns(WideString& wsResult,
52 const WideString& wsFormat,
56 void GetNumericFormat(WideString& wsFormat, int32_t nIntLen, int32_t nDecLen);
57 bool ValidateNumericTemp(const WideString& wsNumeric,
[all …]
Dcxfa_nodelocale.h15 WideString XFA_PatternToString(FX_LOCALENUMSUBCATEGORY category);
23 WideString GetName() const override;
24 WideString GetDecimalSymbol() const override;
25 WideString GetGroupingSymbol() const override;
26 WideString GetPercentSymbol() const override;
27 WideString GetMinusSymbol() const override;
28 WideString GetCurrencySymbol() const override;
29 WideString GetDateTimeSymbols() const override;
30 WideString GetMonthName(int32_t nMonth, bool bAbbr) const override;
31 WideString GetDayName(int32_t nWeek, bool bAbbr) const override;
[all …]
Dcxfa_nodelocale.cpp29 WideString XFA_PatternToString(FX_LOCALENUMSUBCATEGORY category) { in XFA_PatternToString()
40 return WideString(); in XFA_PatternToString()
47 WideString CXFA_NodeLocale::GetName() const { in GetName()
48 return WideString(m_pLocale in GetName()
53 WideString CXFA_NodeLocale::GetDecimalSymbol() const { in GetDecimalSymbol()
57 WideString CXFA_NodeLocale::GetGroupingSymbol() const { in GetGroupingSymbol()
61 WideString CXFA_NodeLocale::GetPercentSymbol() const { in GetPercentSymbol()
65 WideString CXFA_NodeLocale::GetMinusSymbol() const { in GetMinusSymbol()
69 WideString CXFA_NodeLocale::GetCurrencySymbol() const { in GetCurrencySymbol()
73 WideString CXFA_NodeLocale::GetDateTimeSymbols() const { in GetDateTimeSymbols()
[all …]
Dcxfa_xmllocale.h27 WideString GetName() const override;
28 WideString GetDecimalSymbol() const override;
29 WideString GetGroupingSymbol() const override;
30 WideString GetPercentSymbol() const override;
31 WideString GetMinusSymbol() const override;
32 WideString GetCurrencySymbol() const override;
33 WideString GetDateTimeSymbols() const override;
34 WideString GetMonthName(int32_t nMonth, bool bAbbr) const override;
35 WideString GetDayName(int32_t nWeek, bool bAbbr) const override;
36 WideString GetMeridiemName(bool bAM) const override;
[all …]
Dcxfa_validate.h20 WideString GetFormatMessageText();
21 void SetFormatMessageText(const WideString& wsMessage);
24 void SetNullTest(const WideString& wsValue);
26 WideString GetNullMessageText();
27 void SetNullMessageText(const WideString& wsMessage);
30 WideString GetScriptMessageText();
31 void SetScriptMessageText(const WideString& wsMessage);
33 WideString GetPicture();
37 WideString GetMessageText(const WideString& wsMessageType);
38 void SetMessageText(const WideString& wsMessageType,
[all …]
Dxfa_utils.cpp35 WideString ExportEncodeAttribute(const WideString& str) { in ExportEncodeAttribute()
67 WideString ExportEncodeContent(const WideString& str) { in ExportEncodeContent()
116 Optional<WideString> wsContent = in ContentNodeNeedtoExport()
138 const WideString& wsName, in SaveAttribute()
140 WideString& wsOutput) { in SaveAttribute()
144 Optional<WideString> value = pNode->JSObject()->TryAttribute(eName, false); in SaveAttribute()
158 WideString wsAttrs; in RegenerateFormFile_Changed()
168 WideString wsAttr; in RegenerateFormFile_Changed()
169 SaveAttribute(pNode, attr, WideString::FromASCII(XFA_AttributeToName(attr)), in RegenerateFormFile_Changed()
174 WideString wsChildren; in RegenerateFormFile_Changed()
[all …]
Dcxfa_validate.cpp62 void CXFA_Validate::SetNullTest(const WideString& wsValue) { in SetNullTest()
77 WideString CXFA_Validate::GetMessageText(const WideString& wsMessageType) { in GetMessageText()
81 return WideString(); in GetMessageText()
88 WideString wsName = pItemNode->JSObject()->GetCData(XFA_Attribute::Name); in GetMessageText()
92 return WideString(); in GetMessageText()
95 void CXFA_Validate::SetFormatMessageText(const WideString& wsMessage) { in SetFormatMessageText()
99 WideString CXFA_Validate::GetFormatMessageText() { in GetFormatMessageText()
103 void CXFA_Validate::SetNullMessageText(const WideString& wsMessage) { in SetNullMessageText()
107 WideString CXFA_Validate::GetNullMessageText() { in GetNullMessageText()
111 WideString CXFA_Validate::GetScriptMessageText() { in GetScriptMessageText()
[all …]
/external/pdfium/fpdfsdk/
Dcpdfsdk_formfillenvironment.h111 WideString GetLanguage();
112 WideString GetPlatform();
114 int JS_appAlert(const WideString& Msg,
115 const WideString& Title,
118 int JS_appResponse(const WideString& Question,
119 const WideString& Title,
120 const WideString& Default,
121 const WideString& cLabel,
126 WideString JS_fieldBrowse();
130 const WideString& To,
[all …]
Dcpdfsdk_formfillenvironment.cpp124 WideString CPDFSDK_FormFillEnvironment::GetLanguage() { in GetLanguage()
127 return WideString(); in GetLanguage()
131 return WideString(); in GetLanguage()
137 return WideString(); in GetLanguage()
139 return WideString::FromUTF16LE(reinterpret_cast<uint16_t*>(pBuff.data()), in GetLanguage()
142 return WideString(); in GetLanguage()
146 WideString CPDFSDK_FormFillEnvironment::GetPlatform() { in GetPlatform()
149 return WideString(); in GetPlatform()
153 return WideString(); in GetPlatform()
159 return WideString(); in GetPlatform()
[all …]
/external/pdfium/fxjs/
Dcjs_eventrecorder.h68 const WideString& strTargetName);
82 WideString* Value,
84 void OnField_Format(CPDF_FormField* pTarget, WideString* Value);
85 void OnField_Keystroke(WideString* strChange,
86 const WideString& strChangeEx,
93 WideString* Value,
97 void OnField_Validate(WideString* strChange,
98 const WideString& strChangeEx,
103 WideString* Value,
112 WideString* Value);
[all …]
/external/pdfium/xfa/fxfa/
Dfxfa.h100 virtual WideString GetLanguage() = 0;
105 virtual WideString GetPlatform() = 0;
110 virtual WideString GetAppName() = 0;
115 virtual WideString GetAppTitle() const = 0;
133 virtual int32_t MsgBox(const WideString& wsMessage,
134 const WideString& wsTitle,
146 virtual WideString Response(const WideString& wsQuestion,
147 const WideString& wsTitle,
148 const WideString& wsDefaultAnswer,
157 const WideString& wsURL) = 0;
[all …]
/external/pdfium/fpdfsdk/fpdfxfa/
Dcpdfxfa_context.h65 WideString GetLanguage() override;
66 WideString GetPlatform() override;
67 WideString GetAppName() override;
68 WideString GetAppTitle() const override;
70 int32_t MsgBox(const WideString& wsMessage,
71 const WideString& wsTitle,
74 WideString Response(const WideString& wsQuestion,
75 const WideString& wsTitle,
76 const WideString& wsDefaultAnswer,
79 const WideString& wsURL) override;
[all …]
Dcpdfxfa_context.cpp272 WideString CPDFXFA_Context::GetAppTitle() const { in GetAppTitle()
276 WideString CPDFXFA_Context::GetAppName() { in GetAppName()
277 return m_pFormFillEnv ? m_pFormFillEnv->FFI_GetAppName() : WideString(); in GetAppName()
280 WideString CPDFXFA_Context::GetLanguage() { in GetLanguage()
281 return m_pFormFillEnv ? m_pFormFillEnv->GetLanguage() : WideString(); in GetLanguage()
284 WideString CPDFXFA_Context::GetPlatform() { in GetPlatform()
285 return m_pFormFillEnv ? m_pFormFillEnv->GetPlatform() : WideString(); in GetPlatform()
293 int32_t CPDFXFA_Context::MsgBox(const WideString& wsMessage, in MsgBox()
294 const WideString& wsTitle, in MsgBox()
308 WideString CPDFXFA_Context::Response(const WideString& wsQuestion, in Response()
[all …]
/external/pdfium/core/fpdfdoc/
Dcpdf_filespec.cpp24 WideString ChangeSlashToPlatform(const wchar_t* str) { in ChangeSlashToPlatform()
25 WideString result; in ChangeSlashToPlatform()
41 WideString ChangeSlashToPDF(const wchar_t* str) { in ChangeSlashToPDF()
42 WideString result; in ChangeSlashToPDF()
68 WideString CPDF_FileSpec::DecodeFileName(const WideString& filepath) { in DecodeFileName()
70 return WideString(); in DecodeFileName()
83 WideString result; in DecodeFileName()
89 WideString result; in DecodeFileName()
94 return WideString(filepath); in DecodeFileName()
98 WideString CPDF_FileSpec::GetFileName() const { in GetFileName()
[all …]
Dcpdf_formfield.h82 static WideString GetFullNameForDict(CPDF_Dictionary* pFieldDict);
84 WideString GetFullName() const;
97 WideString GetAlternateName() const;
98 WideString GetMappingName() const;
106 WideString GetValue() const;
107 WideString GetDefaultValue() const;
108 bool SetValue(const WideString& value, NotificationOption notify);
122 WideString GetOptionLabel(int index) const;
123 WideString GetOptionValue(int index) const;
124 int FindOption(const WideString& csOptValue) const;
[all …]
Dcpdf_pagelabel.cpp16 WideString MakeRoman(int num) { in MakeRoman()
18 const WideString kRoman[] = {L"m", L"cm", L"d", L"cd", L"c", L"xc", L"l", in MakeRoman()
24 WideString wsRomanNumber; in MakeRoman()
35 WideString MakeLetters(int num) { in MakeLetters()
37 return WideString(); in MakeLetters()
39 WideString wsLetters; in MakeLetters()
52 WideString GetLabelNumPortion(int num, const ByteString& bsStyle) { in GetLabelNumPortion()
54 return WideString(); in GetLabelNumPortion()
56 return WideString::Format(L"%d", num); in GetLabelNumPortion()
58 WideString wsNumPortion = MakeRoman(num); in GetLabelNumPortion()
[all …]
/external/pdfium/core/fxcrt/css/
Dcfx_cssvaluelistparser_unittest.cpp21 EXPECT_EQ(L"#abc", WideString(start, len)); in TEST()
27 EXPECT_EQ(L"#abcdef", WideString(start, len)); in TEST()
34 EXPECT_EQ(L"rgb(1, 255, 4)", WideString(start, len)); in TEST()
39 EXPECT_EQ(L"#abcdefghij", WideString(start, len)); in TEST()
51 EXPECT_EQ(L"1234", WideString(start, len)); in TEST()
56 EXPECT_EQ(L"-1234", WideString(start, len)); in TEST()
61 EXPECT_EQ(L"+1234", WideString(start, len)); in TEST()
66 EXPECT_EQ(L".1234", WideString(start, len)); in TEST()
71 EXPECT_EQ(L"4321.1234", WideString(start, len)); in TEST()
77 EXPECT_EQ(L"4321.12.34", WideString(start, len)); in TEST()
[all …]

12345678910>>...19