Home
last modified time | relevance | path

Searched refs:AsStringView (Results 1 – 25 of 175) sorted by relevance

1234567

/external/pdfium/core/fxcrt/
Dwidetext_buffer_unittest.cpp16 EXPECT_TRUE(wtb.AsStringView().IsEmpty()); in TEST()
29 EXPECT_TRUE(wtb.AsStringView().EqualsASCII("ABCDEFG")); in TEST()
32 EXPECT_TRUE(wtb.AsStringView().EqualsASCII("AEFG")); in TEST()
35 EXPECT_TRUE(wtb.AsStringView().EqualsASCII("AEFG")); in TEST()
38 EXPECT_TRUE(wtb.AsStringView().EqualsASCII("FG")); in TEST()
41 EXPECT_TRUE(wtb.AsStringView().EqualsASCII("")); in TEST()
44 EXPECT_TRUE(wtb.AsStringView().EqualsASCII("")); in TEST()
Dwidestring.h86 WideStringView AsStringView() const { in AsStringView() function
210 bool IsASCII() const { return AsStringView().IsASCII(); } in IsASCII()
212 return AsStringView().EqualsASCII(that); in EqualsASCII()
215 return AsStringView().EqualsASCIINoCase(that); in EqualsASCIINoCase()
265 return WideString(str1.AsStringView(), str2.AsStringView());
268 return WideString(str1.AsStringView(), WideStringView(ch));
271 return WideString(WideStringView(ch), str2.AsStringView());
274 return WideString(str1.AsStringView(), str2);
277 return WideString(str1, str2.AsStringView());
280 return WideString(str1.AsStringView(), str2);
[all …]
Dbytestring.h87 ByteStringView AsStringView() const { in AsStringView() function
207 uint32_t GetID() const { return AsStringView().GetID(); } in GetID()
265 return ByteString(str1.AsStringView(), str2.AsStringView());
268 return ByteString(str1.AsStringView(), ByteStringView(ch));
271 return ByteString(ByteStringView(ch), str2.AsStringView());
274 return ByteString(str1.AsStringView(), str2);
277 return ByteString(str1, str2.AsStringView());
280 return ByteString(str1.AsStringView(), str2);
283 return ByteString(str1, str2.AsStringView());
303 return FX_HashCode_GetA(str.AsStringView());
Dwidetext_buffer.cpp28 WideStringView WideTextBuffer::AsStringView() const { in AsStringView() function in fxcrt::WideTextBuffer
33 return WideString(AsStringView()); in MakeString()
62 AppendWideString(str.AsStringView()); in operator <<()
72 AppendWideString(buf.AsStringView()); in operator <<()
/external/cronet/net/third_party/quiche/src/quiche/common/
Dquiche_buffer_allocator_test.cc26 EXPECT_EQ("foobar", buffer.AsStringView()); in TEST()
61 EXPECT_EQ("foobar", buffer.AsStringView()); in TEST()
67 EXPECT_EQ("foo", buffer.AsStringView()); in TEST()
73 EXPECT_EQ("bar", buffer.AsStringView()); in TEST()
79 EXPECT_EQ("ooba", buffer.AsStringView()); in TEST()
92 EXPECT_EQ("foobar", buffer.AsStringView()); in TEST()
98 EXPECT_EQ("foo", buffer.AsStringView()); in TEST()
104 EXPECT_EQ("bar", buffer.AsStringView()); in TEST()
110 EXPECT_EQ("ooba", buffer.AsStringView()); in TEST()
Dquiche_mem_slice_storage_test.cc30 EXPECT_EQ("ccc", span[0].AsStringView()); in TEST_F()
43 EXPECT_EQ("aaabbbb", span[0].AsStringView()); in TEST_F()
55 EXPECT_EQ("aaaa", span[0].AsStringView()); in TEST_F()
56 EXPECT_EQ("bbbb", span[1].AsStringView()); in TEST_F()
/external/pdfium/fxjs/xfa/
Dcfxjse_formcalc_context.cpp843 temp.AsStringView(), cmpFunc); in HTMLSTR2Code()
976 WideString wsURL = WideString::FromUTF8(bsURL.AsStringView()); in EncodeURL()
1067 WideString wsHTML = WideString::FromUTF8(bsHTML.AsStringView()); in EncodeHTML()
1106 WideString wsXML = WideString::FromUTF8(bsXML.AsStringView()); in EncodeXML()
1363 bsName.AsStringView()); in GetExtractedValue()
1462 pIsolate, jsValue.As<v8::Object>(), bsName.AsStringView())); in ExtractDouble()
1530 pIsolate, jsValue.As<v8::Object>(), bsName.AsStringView())); in UnfoldArgs()
1553 WideString::FromUTF8(bsAccessorName).AsStringView(), in GetObjectForName()
1615 return pScriptContext->ResolveObjects(pNode, wsSomExpression.AsStringView(), in ResolveObjects()
1932 .AsStringView())); in Date()
[all …]
Dcjx_field.cpp65 execSingleEventByName(eventString.AsStringView(), XFA_Element::Field); in execEvent()
120 runtime->NewString(value->ToUTF8().AsStringView())); in getSaveItem()
134 WideString boundValue = node->GetItemValue(value.AsStringView()); in boundItem()
136 runtime->NewString(boundValue.ToUTF8().AsStringView())); in boundItem()
186 runtime->NewString(value->ToUTF8().AsStringView())); in getDisplayItem()
289 fxv8::NewStringHelper(pIsolate, content.ToUTF8().AsStringView()); in defaultValue()
291 CFGAS_Decimal decimal(content.AsStringView()); in defaultValue()
300 CFGAS_Decimal decimal(content.AsStringView()); in defaultValue()
303 *pValue = fxv8::NewStringHelper(pIsolate, content.ToUTF8().AsStringView()); in defaultValue()
322 node->GetValue(XFA_ValuePicture::kEdit).ToUTF8().AsStringView()); in editValue()
[all …]
Dcjx_exclgroup.cpp45 execSingleEventByName(runtime->ToWideString(params[0]).AsStringView(), in execEvent()
107 runtime->ToWideString(params[0]).AsStringView()); in selectedMember()
127 fxv8::ReentrantToWideStringHelper(pIsolate, *pValue).AsStringView(), in defaultValue()
138 *pValue = fxv8::NewStringHelper(pIsolate, wsValue.ToUTF8().AsStringView()); in defaultValue()
Dcjx_node.cpp153 GetAttributeByString(expression.AsStringView()).ToUTF8().AsStringView())); in getAttribute()
164 XFA_Element eElement = XFA_GetElementByName(expression.AsStringView()); in getElement()
184 XFA_GetAttributeByName(expression.AsStringView()); in isPropertySpecified()
188 XFA_Element eType = XFA_GetElementByName(expression.AsStringView()); in isPropertySpecified()
358 runtime->NewString(bsXMLHeader.AsStringView())); in saveXML()
365 pMemoryStream->WriteString(bsXMLHeader.AsStringView()); in saveXML()
389 SetAttributeByString(attribute.AsStringView(), attributeValue); in setAttribute()
412 pIsolate, TryNamespace().value_or(WideString()).ToUTF8().AsStringView()); in ns()
/external/pdfium/xfa/fxfa/formcalc/
Dcxfa_fmexpression_unittest.cpp53 EXPECT_EQ(result.AsStringView(), js.AsStringView()); in TEST_F()
63 EXPECT_EQ(L"", accumulator.AsStringView()); in TEST_F()
73 EXPECT_EQ(L"a", accumulator.AsStringView()); in TEST_F()
83 EXPECT_EQ(L"\"abcd\"", accumulator.AsStringView()); in TEST_F()
104 EXPECT_EQ(L"\"Simon says \\\"run\\\"\"", accumulator.AsStringView()); in TEST_F()
/external/cronet/net/cert/
Dasn1_util.cc193 *subject_out = subject.AsStringView(); in ExtractSubjectFromDERCert()
205 *spki_out = spki.AsStringView(); in ExtractSPKIFromDERCert()
234 *spk_out = spk.AsStringView(); in ExtractSubjectPublicKeyFromSPKI()
305 *cert_signature_algorithm_sequence = cert_algorithm.AsStringView(); in ExtractSignatureAlgorithmsFromDERCert()
306 *tbs_signature_algorithm_sequence = tbs_algorithm.AsStringView(); in ExtractSignatureAlgorithmsFromDERCert()
327 *out_contents = extension.value.AsStringView(); in ExtractExtensionFromDERCert()
/external/pdfium/xfa/fxfa/parser/
Dxfa_utils.cpp148 return WideString{L" ", wsName, L"=\"", wsEncoded.AsStringView(), L"\""}; in SaveAttribute()
165 wsAttrs += SaveAttribute(pNode, attr, wsAttr.AsStringView(), bSaveXML); in RegenerateFormFile_Changed()
224 wsChildren += buf.AsStringView(); in RegenerateFormFile_Changed()
253 wsChildren += newBuf.AsStringView(); in RegenerateFormFile_Changed()
264 wsChildren += newBuf.AsStringView(); in RegenerateFormFile_Changed()
297 pStream->WriteString(buf.MakeString().ToUTF8().AsStringView()); in RegenerateFormFile_Container()
303 pStream->WriteString(wsElement.ToUTF8().AsStringView()); in RegenerateFormFile_Container()
315 wsOutput += SaveAttribute(pNode, attr, wsAttr.AsStringView(), false); in RegenerateFormFile_Container()
319 pStream->WriteString(wsOutput.ToUTF8().AsStringView()); in RegenerateFormFile_Container()
333 pStream->WriteString(wsElement.ToUTF8().AsStringView()); in RegenerateFormFile_Container()
[all …]
/external/pdfium/fxjs/
Dcjs_global.cpp198 pRuntime->NewString(pData->sData.AsStringView())); in GetProperty()
251 v8::Local<v8::Name> name = pRuntime->NewString(it.first.AsStringView()); in EnumProperties()
285 pData->data.sKey.AsStringView(), in UpdateGlobalPersistentVariables()
293 ToV8Object(), pData->data.sKey.AsStringView(), in UpdateGlobalPersistentVariables()
301 ToV8Object(), pData->data.sKey.AsStringView(), in UpdateGlobalPersistentVariables()
302 pRuntime->NewString(pData->data.sData.AsStringView())); in UpdateGlobalPersistentVariables()
311 pData->data.sKey.AsStringView(), pObj); in UpdateGlobalPersistentVariables()
319 ToV8Object(), pData->data.sKey.AsStringView(), pRuntime->NewNull()); in UpdateGlobalPersistentVariables()
373 pRuntime->GetObjectProperty(pObj, sKey.AsStringView()); in ObjectToArray()
427 pRuntime->PutObjectProperty(pObj, pObjData->sKey.AsStringView(), in PutObjectProperty()
[all …]
Dcjs_document.cpp291 pRuntime->NewString(pField->GetFullName().AsStringView())); in getNthFieldName()
680 pRuntime->NewString(cwAuthor.AsStringView())); in get_info()
682 pRuntime->NewString(cwTitle.AsStringView())); in get_info()
684 pRuntime->NewString(cwSubject.AsStringView())); in get_info()
686 pRuntime->NewString(cwKeywords.AsStringView())); in get_info()
688 pRuntime->NewString(cwCreator.AsStringView())); in get_info()
690 pRuntime->NewString(cwProducer.AsStringView())); in get_info()
692 pObj, "CreationDate", pRuntime->NewString(cwCreationDate.AsStringView())); in get_info()
694 pRuntime->NewString(cwModDate.AsStringView())); in get_info()
696 pRuntime->NewString(cwTrapped.AsStringView())); in get_info()
[all …]
/external/pdfium/fxbarcode/
Dcbc_codabar.cpp41 return pWriter->RenderResult(m_renderContents.AsStringView(), in Encode()
49 pWriter->encodedContents(m_renderContents.AsStringView()); in RenderDevice()
50 return pWriter->RenderDeviceResult(device, matrix, renderCon.AsStringView()); in RenderDevice()
Dcbc_code128.cpp43 m_renderContents = pWriter->FilterContents(content.AsStringView()); in Encode()
45 return pWriter->RenderResult(m_renderContents.AsStringView(), in Encode()
52 device, matrix, m_renderContents.AsStringView()); in RenderDevice()
Dcbc_code39.cpp42 return pWriter->RenderResult(m_renderContents.AsStringView(), in Encode()
50 if (!pWriter->encodedContents(m_renderContents.AsStringView(), &renderCon)) in RenderDevice()
52 return pWriter->RenderDeviceResult(device, matrix, renderCon.AsStringView()); in RenderDevice()
Dcbc_eancode.cpp31 return pWriter->RenderResult(m_renderContents.AsStringView(), in Encode()
38 device, matrix, m_renderContents.AsStringView()); in RenderDevice()
53 encoded_contents = WideString::FromUTF8(str.AsStringView()); in Preprocess()
/external/pdfium/core/fpdfapi/parser/
Dcpdf_string.cpp74 return archive->WriteString(content.AsStringView()); in WriteTo()
78 return m_bHex ? PDF_HexEncodeString(m_String.AsStringView()) in EncodeString()
79 : PDF_EncodeString(m_String.AsStringView()); in EncodeString()
/external/cronet/net/third_party/quiche/src/quiche/quic/core/http/
Dquic_spdy_client_stream_test.cc156 ? absl::StrCat(header.AsStringView(), body_) in TEST_P()
183 ? absl::StrCat(header.AsStringView(), body_) in TEST_P()
212 ? absl::StrCat(header.AsStringView(), body_) in TEST_P()
243 ? absl::StrCat(header.AsStringView(), body_) in TEST_P()
266 ? absl::StrCat(header.AsStringView(), large_body) in TEST_P()
307 ? absl::StrCat(header.AsStringView(), body_) in TEST_P()
/external/pdfium/core/fpdfdoc/
Dcpdf_nametree.cpp34 pLimits->SetNewAt<CPDF_String>(0, csRight.AsStringView()); in GetNodeLimitsAndSanitize()
35 pLimits->SetNewAt<CPDF_String>(1, csLeft.AsStringView()); in GetNodeLimitsAndSanitize()
122 pLimits->SetNewAt<CPDF_String>(0, csNewLeft.AsStringView()); in UpdateNodesAndLimitsUponDeletion()
123 pLimits->SetNewAt<CPDF_String>(1, csNewRight.AsStringView()); in UpdateNodesAndLimitsUponDeletion()
163 pLimits->SetNewAt<CPDF_String>(0, csNewLeft.AsStringView()); in UpdateNodesAndLimitsUponDeletion()
164 pLimits->SetNewAt<CPDF_String>(1, csNewRight.AsStringView()); in UpdateNodesAndLimitsUponDeletion()
523 pFind->InsertNewAt<CPDF_String>(nNameIndex, name.AsStringView()); in AddValueAndName()
535 pLimits->SetNewAt<CPDF_String>(0, name.AsStringView()); in AddValueAndName()
538 pLimits->SetNewAt<CPDF_String>(1, name.AsStringView()); in AddValueAndName()
/external/cronet/net/cert/pki/
Dtrust_store_in_memory.cc50 auto range = entries_.equal_range(cert->normalized_issuer().AsStringView()); in SyncGetIssuersOf()
79 std::make_pair(entry.cert->normalized_subject().AsStringView(), entry)); in AddCertificate()
84 auto range = entries_.equal_range(cert->normalized_subject().AsStringView()); in GetEntry()
Dcert_issuer_source_static.cc15 cert->normalized_subject().AsStringView(), std::move(cert))); in AddCert()
25 intermediates_.equal_range(cert->normalized_issuer().AsStringView()); in SyncGetIssuersOf()
/external/pdfium/core/fxcrt/xml/
Dcfx_xmlinstruction.cpp48 pXMLStream->WriteString(name_.ToUTF8().AsStringView()); in Save()
52 pXMLStream->WriteString(target.ToUTF8().AsStringView()); in Save()

1234567