Home
last modified time | relevance | path

Searched refs:ByteStringView (Results 1 – 25 of 128) sorted by relevance

123456

/external/pdfium/core/fpdfapi/page/
Dcpdf_streamcontentparser_unittest.cpp9 EXPECT_EQ(ByteStringView("BitsPerComponent"), in TEST()
11 ByteStringView("BPC"))); in TEST()
12 EXPECT_EQ(ByteStringView("Width"), in TEST()
14 ByteStringView("W"))); in TEST()
15 EXPECT_EQ(ByteStringView(""), in TEST()
17 ByteStringView(""))); in TEST()
18 EXPECT_EQ(ByteStringView(""), in TEST()
20 ByteStringView("NoInList"))); in TEST()
22 EXPECT_EQ(ByteStringView(""), in TEST()
24 ByteStringView("WW"))); in TEST()
[all …]
Dcpdf_streamcontentparser.h65 static ByteStringView FindKeyAbbreviationForTesting(ByteStringView abbr);
66 static ByteStringView FindValueAbbreviationForTesting(ByteStringView abbr);
88 void AddNameParam(ByteStringView bsName);
89 void AddNumberParam(ByteStringView str);
106 void OnOperator(ByteStringView op);
/external/pdfium/core/fxcrt/
Dbytestring.h63 explicit ByteString(ByteStringView bstrc);
64 ByteString(ByteStringView str1, ByteStringView str2);
65 ByteString(const std::initializer_list<ByteStringView>& list);
87 ByteStringView AsStringView() const { in AsStringView()
88 return ByteStringView(raw_str(), GetLength()); in AsStringView()
123 int Compare(ByteStringView str) const;
124 bool EqualNoCase(ByteStringView str) const;
127 bool operator==(ByteStringView str) const;
131 bool operator!=(ByteStringView str) const { return !(*this == str); }
135 bool operator<(ByteStringView str) const;
[all …]
Dbytestring_unittest.cpp132 ByteString string1(ByteStringView("abc")); in TEST()
134 string1 = ByteStringView(""); in TEST()
136 string1 = ByteStringView("def"); in TEST()
146 ByteStringView v_empty; in TEST()
147 ByteStringView v_a("a"); in TEST()
148 ByteStringView v_abc("abc"); in TEST()
149 ByteStringView v_def("def"); in TEST()
242 EXPECT_TRUE(pdfium::Contains(str_set, ByteStringView("hello"))); in TEST()
245 EXPECT_FALSE(pdfium::Contains(str_set, ByteStringView("goodbye"))); in TEST()
293 ByteStringView null_string_c; in TEST()
[all …]
Dbytestring.cpp144 ByteString::ByteString(ByteStringView bstrc) { in ByteString()
151 ByteString::ByteString(ByteStringView str1, ByteStringView str2) { in ByteString()
165 ByteString::ByteString(const std::initializer_list<ByteStringView>& list) { in ByteString()
209 ByteString& ByteString::operator=(ByteStringView str) { in operator =()
251 ByteString& ByteString::operator+=(ByteStringView str) { in operator +=()
269 bool ByteString::operator==(ByteStringView str) const { in operator ==()
305 bool ByteString::operator<(ByteStringView str) const { in operator <()
319 bool ByteString::EqualNoCase(ByteStringView str) const { in EqualNoCase()
559 absl::optional<size_t> ByteString::Find(ByteStringView subStr, in Find()
637 size_t ByteString::Replace(ByteStringView pOld, ByteStringView pNew) { in Replace()
[all …]
Dfx_string_unittest.cpp39 EXPECT_EQ(L"", FX_UTF8Decode(ByteStringView())); in TEST()
290 std::vector<ByteStringView> result; in TEST()
291 result = fxcrt::Split(ByteStringView(""), ','); in TEST()
295 result = fxcrt::Split(ByteStringView("a"), ','); in TEST()
299 result = fxcrt::Split(ByteStringView(","), ','); in TEST()
304 result = fxcrt::Split(ByteStringView("a,"), ','); in TEST()
309 result = fxcrt::Split(ByteStringView(",b"), ','); in TEST()
314 result = fxcrt::Split(ByteStringView("a,b"), ','); in TEST()
319 result = fxcrt::Split(ByteStringView("a,b,"), ','); in TEST()
325 result = fxcrt::Split(ByteStringView("a,,"), ','); in TEST()
[all …]
Dfx_string.cpp26 WideString FX_UTF8Decode(ByteStringView bsStr) { in FX_UTF8Decode()
43 T StringTo(ByteStringView strc, pdfium::span<const T> fractional_scales) { in StringTo()
133 float StringToFloat(ByteStringView strc) { in StringToFloat()
145 double StringToDouble(ByteStringView strc) { in StringToDouble()
Dfx_string.h24 WideString FX_UTF8Decode(ByteStringView bsStr);
26 float StringToFloat(ByteStringView str);
30 double StringToDouble(ByteStringView str);
Dcfx_utf8encoder.h24 ByteStringView GetResult() const { in GetResult()
25 return ByteStringView(m_Buffer.data(), m_Buffer.size()); in GetResult()
/external/pdfium/core/fpdfapi/font/
Dcpdf_cmapparser.h23 void ParseWord(ByteStringView word);
25 static CIDSet CharsetFromOrdering(ByteStringView ordering);
42 void HandleCid(ByteStringView word);
43 void HandleCodeSpaceRange(ByteStringView word);
45 static uint32_t GetCode(ByteStringView word);
47 ByteStringView first,
48 ByteStringView second);
Dcpdf_cmapparser.cpp24 ByteStringView CMap_GetString(ByteStringView word) { in CMap_GetString()
26 return ByteStringView(); in CMap_GetString()
39 void CPDF_CMapParser::ParseWord(ByteStringView word) { in ParseWord()
82 void CPDF_CMapParser::HandleCid(ByteStringView word) { in HandleCid()
113 void CPDF_CMapParser::HandleCodeSpaceRange(ByteStringView word) { in HandleCodeSpaceRange()
145 uint32_t CPDF_CMapParser::GetCode(ByteStringView word) { in GetCode()
169 ByteStringView first, in GetCodeRange()
170 ByteStringView second) { in GetCodeRange()
205 CIDSet CPDF_CMapParser::CharsetFromOrdering(ByteStringView ordering) { in CharsetFromOrdering()
Dcpdf_tounicodemap.cpp81 absl::optional<uint32_t> CPDF_ToUnicodeMap::StringToCode(ByteStringView str) { in StringToCode()
99 WideString CPDF_ToUnicodeMap::StringToWideString(ByteStringView str) { in StringToWideString()
128 ByteStringView word = parser.GetWord(); in Load()
152 ByteStringView word = pParser->GetWord(); in HandleBeginBFChar()
166 ByteStringView lowcode_str = pParser->GetWord(); in HandleBeginBFRange()
174 ByteStringView highcode_str = pParser->GetWord(); in HandleBeginBFRange()
182 ByteStringView start = pParser->GetWord(); in HandleBeginBFRange()
Dcpdf_cmap.h66 uint32_t GetNextChar(ByteStringView pString, size_t* pOffset) const;
67 size_t CountChar(ByteStringView pString) const;
88 explicit CPDF_CMap(ByteStringView bsPredefinedName);
/external/pdfium/fxjs/xfa/
Dcfxjse_formcalc_context.h86 ByteStringView bsDate,
87 ByteStringView bsFormat,
88 ByteStringView bsLocale);
90 ByteStringView bsDate,
91 ByteStringView bsFormat,
92 ByteStringView bsLocale);
94 ByteStringView bsTime,
95 ByteStringView bsFormat,
96 ByteStringView bsLocale);
99 ByteStringView bsLocale,
[all …]
Dcfxjse_engine.h85 ByteStringView szPropName);
88 ByteStringView szPropName,
93 ByteStringView szPropName);
96 ByteStringView szPropName,
103 ByteStringView szPropName,
107 ByteStringView szPropName,
188 ByteStringView szPropName,
191 ByteStringView szPropName,
Dcfxjse_value.h55 void SetString(v8::Isolate* pIsolate, ByteStringView szString);
66 ByteStringView szPropName,
69 ByteStringView szPropName,
74 void DeleteObjectProperty(v8::Isolate* pIsolate, ByteStringView szPropName);
76 ByteStringView szPropName,
Dfxjse.h61 ByteStringView szPropName);
64 ByteStringView szPropName,
69 ByteStringView szPropName,
94 void FXJSE_ThrowMessage(v8::Isolate* pIsolate, ByteStringView utf8Message);
/external/pdfium/core/fpdfdoc/
Dcpdf_metadata_unittest.cpp19 stream->SetData(ByteStringView(data).raw_span()); in TEST()
36 stream->SetData(ByteStringView(data).raw_span()); in TEST()
53 stream->SetData(ByteStringView(data).raw_span()); in TEST()
70 stream->SetData(ByteStringView(data).raw_span()); in TEST()
88 stream->SetData(ByteStringView(data).raw_span()); in TEST()
102 stream->SetData(ByteStringView(data).raw_span()); in TEST()
118 stream->SetData(ByteStringView(data).raw_span()); in TEST()
148 stream->SetData(ByteStringView(data).raw_span()); in TEST()
/external/pdfium/core/fpdfapi/parser/
Dcpdf_object_stream_unittest.cpp40 ByteStringView contents_view(kNormalStreamContent); in TEST()
84 ByteStringView contents_view(kNormalStreamContent); in TEST()
96 ByteStringView contents_view(kNormalStreamContent); in TEST()
108 ByteStringView contents_view(kNormalStreamContent); in TEST()
120 ByteStringView contents_view(kNormalStreamContent); in TEST()
131 ByteStringView contents_view(kNormalStreamContent); in TEST()
143 ByteStringView contents_view(kNormalStreamContent); in TEST()
155 ByteStringView contents_view(kNormalStreamContent); in TEST()
167 ByteStringView contents_view(kNormalStreamContent); in TEST()
178 ByteStringView contents_view(kNormalStreamContent); in TEST()
[all …]
Dfpdf_parser_utility.h48 ByteString PDF_NameDecode(ByteStringView orig);
58 bool ValidateDictType(const CPDF_Dictionary* dict, ByteStringView type);
63 ByteStringView type);
69 bool ValidateDictOptionalType(const CPDF_Dictionary* dict, ByteStringView type);
Dcpdf_simple_parser.cpp16 ByteStringView CPDF_SimpleParser::GetWord() { in GetWord()
22 return ByteStringView(); in GetWord()
27 return ByteStringView(); in GetWord()
36 return ByteStringView(); in GetWord()
Dcpdf_syntax_parser.h64 bool BackwardsSearchToWord(ByteStringView word, FX_FILESIZE limit);
65 FX_FILESIZE FindTag(ByteStringView tag);
104 ByteStringView tag,
108 FX_FILESIZE FindWordPos(ByteStringView word);
/external/pdfium/fxjs/
Dfxv8.h43 ByteStringView str);
77 ByteStringView bsUTF8PropertyName);
83 ByteStringView bsUTF8PropertyName);
86 ByteStringView bsUTF8PropertyName,
90 ByteStringView bsUTF8PropertyName,
94 ByteStringView bsUTF8PropertyName);
105 void ThrowExceptionHelper(v8::Isolate* pIsolate, ByteStringView str);
/external/pdfium/testing/
Dxfa_js_embedder_test.h36 bool Execute(ByteStringView input);
37 bool ExecuteSilenceFailure(ByteStringView input);
40 bool ExecuteHelper(ByteStringView input);
/external/pdfium/xfa/fxfa/parser/
Dxfa_basic_data.h56 ByteStringView XFA_ElementToName(XFA_Element elem);
59 ByteStringView XFA_AttributeToName(XFA_Attribute attr);
62 ByteStringView XFA_AttributeValueToName(XFA_AttributeValue item);

123456