/aosp_15_r20/external/pdfium/fxjs/xfa/ |
H A D | cfxjse_formcalc_context.cpp | 533 temp.AsStringView(), cmpFunc); in HTMLSTR2Code() 668 WideString wsURL = WideString::FromUTF8(bsURL.AsStringView()); in EncodeURL() 673 for (char32_t ch : pdfium::CodePointView(wsURL.AsStringView())) { in EncodeURL() 759 WideString wsHTML = WideString::FromUTF8(bsHTML.AsStringView()); in EncodeHTML() 765 for (char32_t ch : pdfium::CodePointView(wsHTML.AsStringView())) { in EncodeHTML() 798 WideString wsXML = WideString::FromUTF8(bsXML.AsStringView()); in EncodeXML() 804 for (char32_t ch : pdfium::CodePointView(wsXML.AsStringView())) { in EncodeXML() 1055 bsName.AsStringView()); in GetExtractedValue() 1154 pIsolate, jsValue.As<v8::Object>(), bsName.AsStringView())); in ExtractDouble() 1222 pIsolate, jsValue.As<v8::Object>(), bsName.AsStringView())); in UnfoldArgs() [all …]
|
H A D | cjx_field.cpp | 65 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 …]
|
H A D | cjx_node.cpp | 151 GetAttributeByString(expression.AsStringView()).ToUTF8().AsStringView())); in getAttribute() 162 XFA_Element eElement = XFA_GetElementByName(expression.AsStringView()); in getElement() 181 XFA_GetAttributeByName(expression.AsStringView()); in isPropertySpecified() 185 XFA_Element eType = XFA_GetElementByName(expression.AsStringView()); in isPropertySpecified() 355 runtime->NewString(bsXMLHeader.AsStringView())); in saveXML() 362 pMemoryStream->WriteString(bsXMLHeader.AsStringView()); in saveXML() 386 SetAttributeByString(attribute.AsStringView(), attributeValue); in setAttribute() 409 pIsolate, TryNamespace().value_or(WideString()).ToUTF8().AsStringView()); in ns()
|
H A D | cjx_hostpseudomodel.cpp | 140 *pValue = fxv8::NewStringHelper(pIsolate, lang.AsStringView()); in language() 174 *pValue = fxv8::NewStringHelper(pIsolate, plat.AsStringView()); in platform() 195 *pValue = fxv8::NewStringHelper(pIsolate, bsTitle.AsStringView()); in title() 256 *pValue = fxv8::NewStringHelper(pIsolate, bsName.AsStringView()); in name() 304 pObject, runtime->ToWideString(params[0]).AsStringView(), kFlags); in openList() 346 runtime->NewString(answer.ToUTF8().AsStringView())); in response() 379 nStart = FilterName(expression.AsStringView(), nStart, wsName); in resetData() 388 runtime->ResolveObjects(pObject, wsName.AsStringView(), kFlags); in resetData() 452 pObject, runtime->ToWideString(params[0]).AsStringView(), kFlags); in setFocus()
|
H A D | cfxjse_resolveprocessor.cpp | 41 rnd.m_wsName.AsStringView()); in Resolve() 79 rnd.m_wsName.AsStringView())) { in Resolve() 99 WideStringView wsName = rnd.m_wsName.AsStringView(); in ResolveAnyChild() 140 FX_HashCode_GetW(wsName.AsStringView().Last(nNameLen - 1))); in ResolveDollar() 167 FX_HashCode_GetW(rndFind.m_wsName.AsStringView())); in ResolveExcalmatory() 184 if (ResolveForAttributeRs(curNode, &rnd.m_Result, wsName.AsStringView())) in ResolveNumberSign() 194 FX_HashCode_GetW(rndFind.m_wsName.AsStringView())); in ResolveNumberSign() 336 if (ResolveForAttributeRs(curNode, &rnd.m_Result, wsName.AsStringView())) in ResolveNormal() 366 XFA_Element eType = XFA_GetElementByName(wsName.AsStringView()); in ResolveNormal() 579 static_cast<XFA_HashCode>(FX_HashCode_GetW(wsName.AsStringView())); in GetFilter() [all …]
|
H A D | cfxjse_engine.cpp | 188 btScript = FX_UTF8Encode(wsJavaScript.value().AsStringView()); in RunScript() 200 return m_JsContext->ExecuteScript(btScript.AsStringView(), hRetValue, in RunScript() 267 pRefNode, wsPropName.AsStringView(), pValue, in GlobalPropertySetter() 310 static_cast<XFA_HashCode>(FX_HashCode_GetW(wsPropName.AsStringView())); in GlobalPropertyGetter() 324 pRefNode, wsPropName.AsStringView(), &pValue, in GlobalPropertyGetter() 331 pRefNode, wsPropName.AsStringView(), &pValue, in GlobalPropertyGetter() 402 pRefNode, wsPropName.AsStringView(), &pReturnValue, in NormalPropertyGetter() 412 pRefNode, wsPropName.AsStringView(), &pReturnValue, in NormalPropertyGetter() 429 pObject->GetElementType(), wsPropName.AsStringView()); in NormalPropertyGetter() 468 WideStringView wsPropNameView = wsPropName.AsStringView(); in NormalPropertySetter() [all …]
|
H A D | cjx_object.cpp | 208 FXJSE_ThrowMessage(pIsolate, str.ToUTF8().AsStringView()); in ThrowException() 222 XFA_GetAttributeValueByName(wsValue.AsStringView()); in SetAttributeByEnum() 242 SetMeasure(eAttr, CXFA_Measurement(wsValue.AsStringView()), bNotify); in SetAttributeByEnum() 988 pIsolate, GetAttributeByEnum(eAttribute).ToUTF8().AsStringView()); in ScriptAttributeString() 1020 pProtoRoot, wsSOM.AsStringView(), in ScriptAttributeString() 1030 pProtoNode = GetDocument()->GetNodeByID(pProtoRoot, wsID.AsStringView()); in ScriptAttributeString() 1101 pIsolate, ByteString::Format("%d,%d,%d", r, g, b).AsStringView()); in ScriptSomFontColor() 1131 pIsolate, ByteString::Format("%d,%d,%d", r, g, b).AsStringView()); in ScriptSomFillColor() 1164 pIsolate, ByteString::Format("%d,%d,%d", r, g, b).AsStringView()); in ScriptSomBorderColor() 1177 pIsolate, thickness.ToString().ToUTF8().AsStringView()); in ScriptSomBorderWidth() [all …]
|
H A D | cjx_exclgroup.cpp | 45 execSingleEventByName(runtime->ToWideString(params[0]).AsStringView(), in execEvent() 107 runtime->ToWideString(params[0]).AsStringView()); in selectedMember() 125 fxv8::ReentrantToWideStringHelper(pIsolate, *pValue).AsStringView(), in defaultValue() 136 *pValue = fxv8::NewStringHelper(pIsolate, wsValue.ToUTF8().AsStringView()); in defaultValue()
|
/aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/common/ |
H A D | quiche_buffer_allocator_test.cc | 26 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()
|
H A D | quiche_mem_slice_storage_test.cc | 30 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()
|
/aosp_15_r20/external/pdfium/core/fxcrt/ |
H A D | widestring.h | 87 WideStringView AsStringView() const { in AsStringView() function 211 bool IsASCII() const { return AsStringView().IsASCII(); } in IsASCII() 213 return AsStringView().EqualsASCII(that); in EqualsASCII() 216 return AsStringView().EqualsASCIINoCase(that); in EqualsASCIINoCase() 266 return WideString(str1.AsStringView(), str2.AsStringView()); 269 return WideString(str1.AsStringView(), WideStringView(ch)); 272 return WideString(WideStringView(ch), str2.AsStringView()); 275 return WideString(str1.AsStringView(), str2); 278 return WideString(str1, str2.AsStringView()); 281 return WideString(str1.AsStringView(), str2); [all …]
|
H A D | widetext_buffer_unittest.cpp | 16 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()
|
H A D | bytestring.h | 87 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()); 310 return FX_HashCode_GetA(str.AsStringView());
|
H A D | widetext_buffer.cpp | 28 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 <<()
|
/aosp_15_r20/external/pdfium/fxjs/ |
H A D | cjs_global.cpp | 198 pRuntime->NewString(pData->sData.AsStringView())); in GetProperty() 248 v8::Local<v8::Name> name = pRuntime->NewString(it.first.AsStringView()); in EnumProperties() 282 pData->data.sKey.AsStringView(), in UpdateGlobalPersistentVariables() 290 ToV8Object(), pData->data.sKey.AsStringView(), in UpdateGlobalPersistentVariables() 298 ToV8Object(), pData->data.sKey.AsStringView(), in UpdateGlobalPersistentVariables() 299 pRuntime->NewString(pData->data.sData.AsStringView())); in UpdateGlobalPersistentVariables() 308 pData->data.sKey.AsStringView(), pObj); in UpdateGlobalPersistentVariables() 316 ToV8Object(), pData->data.sKey.AsStringView(), pRuntime->NewNull()); in UpdateGlobalPersistentVariables() 370 pRuntime->GetObjectProperty(pObj, sKey.AsStringView()); in ObjectToArray() 424 pRuntime->PutObjectProperty(pObj, pObjData->sKey.AsStringView(), in PutObjectProperty() [all …]
|
H A D | cjs_document.cpp | 291 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 …]
|
H A D | cjs_publicmethods.cpp | 340 pRuntime->NewString(StrTrim(ByteString(p)).AsStringView())); in AF_MakeArrayFromList() 346 pRuntime->NewString(StrTrim(ByteString(p, pTemp - p)).AsStringView())); in AF_MakeArrayFromList() 651 Value = WideString::FromUTF8(strValue.AsStringView()); in AFNumber_Format() 869 Value = WideString::FromUTF8(strValue.AsStringView()); in AFPercent_Format() 942 int nDay = StringToFloat(wsArray[2].AsStringView()); in ParseDateAsGMT() 943 int nHour = StringToFloat(wsArray[3].AsStringView()); in ParseDateAsGMT() 944 int nMin = StringToFloat(wsArray[4].AsStringView()); in ParseDateAsGMT() 945 int nSec = StringToFloat(wsArray[5].AsStringView()); in ParseDateAsGMT() 946 int nYear = StringToFloat(wsArray[7].AsStringView()); in ParseDateAsGMT() 1220 return CJS_Result::Success(pRuntime->NewString(swValue.AsStringView())); in AFMergeChange() [all …]
|
/aosp_15_r20/external/pdfium/xfa/fxfa/parser/ |
H A D | xfa_utils.cpp | 148 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 …]
|
/aosp_15_r20/external/pdfium/xfa/fxfa/formcalc/ |
H A D | cxfa_fmexpression_unittest.cpp | 53 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()
|
/aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/quic/moqt/ |
H A D | moqt_framer_test.cc | 87 absl::StrCat(header.AsStringView(), payload)); in SerializeObject() 181 EXPECT_EQ(buffer.AsStringView(), message->PacketSample()); in TEST_P() 199 EXPECT_EQ(buffer1.AsStringView(), header->PacketSample()); in TEST_F() 205 EXPECT_EQ(buffer2.AsStringView(), middler->PacketSample()); in TEST_F() 213 EXPECT_EQ(buffer1.AsStringView(), header->PacketSample()); in TEST_F() 219 EXPECT_EQ(buffer2.AsStringView(), middler->PacketSample()); in TEST_F() 258 EXPECT_EQ(buffer.AsStringView(), datagram->PacketSample()); in TEST_F()
|
/aosp_15_r20/external/cronet/net/cert/ |
H A D | asn1_util.cc | 203 *subject_out = subject.AsStringView(); in ExtractSubjectFromDERCert() 215 *spki_out = spki.AsStringView(); in ExtractSPKIFromDERCert() 246 *spk_out = spk.AsStringView(); in ExtractSubjectPublicKeyFromSPKI() 319 *cert_signature_algorithm_sequence = cert_algorithm.AsStringView(); in ExtractSignatureAlgorithmsFromDERCert() 320 *tbs_signature_algorithm_sequence = tbs_algorithm.AsStringView(); in ExtractSignatureAlgorithmsFromDERCert() 342 *out_contents = extension.value.AsStringView(); in ExtractExtensionFromDERCert()
|
/aosp_15_r20/external/pdfium/core/fpdfdoc/ |
H A D | cpdf_nametree.cpp | 34 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()
|
/aosp_15_r20/external/cronet/net/third_party/quiche/src/quiche/quic/core/http/ |
H A D | quic_spdy_client_stream_test.cc | 157 ? absl::StrCat(header.AsStringView(), body_) in TEST_P() 198 ? absl::StrCat(header.AsStringView(), body_) in TEST_P() 232 ? absl::StrCat(header.AsStringView(), body_) in TEST_P() 281 ? absl::StrCat(header.AsStringView(), body_) in TEST_P() 320 ? absl::StrCat(header.AsStringView(), body_) in TEST_P() 343 ? absl::StrCat(header.AsStringView(), large_body) in TEST_P() 386 ? absl::StrCat(header.AsStringView(), body_) in TEST_P()
|
/aosp_15_r20/external/pdfium/fxbarcode/ |
H A D | cbc_codabar.cpp | 41 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()
|
H A D | cbc_code128.cpp | 43 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()
|