Home
last modified time | relevance | path

Searched refs:parser_ (Results 1 – 25 of 64) sorted by relevance

123

/external/webrtc/webrtc/tools/
Dsimple_command_line_parser_unittest.cc20 parser_ = new CommandLineParser(); in SetUp()
37 delete parser_; in TearDown()
39 CommandLineParser* parser_; member in webrtc::test::CommandLineParserTest
47 parser_->SetFlag("foo", "false"); in TEST_F()
48 parser_->SetFlag("foo-foo", "false"); // To test boolean flags defaults. in TEST_F()
49 parser_->SetFlag("bar", "222"); in TEST_F()
50 parser_->SetFlag("baz", "333"); // To test the default value functionality. in TEST_F()
52 parser_->Init(test_flags_length_, test_flags_); in TEST_F()
53 parser_->ProcessFlags(); in TEST_F()
54 EXPECT_EQ("true", parser_->GetFlag("foo")); in TEST_F()
[all …]
/external/pdfium/core/fpdfapi/parser/
Dcpdf_cross_ref_avail.cpp31 : parser_(parser), last_crossref_offset_(last_crossref_offset) { in CPDF_CrossRefAvail()
32 ASSERT(parser_); in CPDF_CrossRefAvail()
86 parser_->SetPos(cross_refs_for_check_.front()); in CheckCrossRef()
88 const ByteString first_word = parser_->PeekNextWord(nullptr); in CheckCrossRef()
102 const ByteString keyword = parser_->GetKeyword(); in CheckCrossRefV4()
112 current_offset_ = parser_->GetPos(); in CheckCrossRefV4()
117 parser_->SetPos(current_offset_); in CheckCrossRefV4Item()
118 const ByteString keyword = parser_->GetKeyword(); in CheckCrossRefV4Item()
131 current_offset_ = parser_->GetPos(); in CheckCrossRefV4Item()
136 parser_->SetPos(current_offset_); in CheckCrossRefV4Trailer()
[all …]
/external/flatbuffers/src/
Didl_gen_cpp.cpp158 auto name_space = parser_.current_namespace_; in GenIncludeGuard()
170 for (auto it = parser_.native_included_files_.begin(); in GenIncludeDependencies()
171 it != parser_.native_included_files_.end(); ++it) { in GenIncludeDependencies()
175 for (auto it = parser_.included_files_.begin(); in GenIncludeDependencies()
176 it != parser_.included_files_.end(); ++it) { in GenIncludeDependencies()
181 code_ += "#include \"" + parser_.opts.include_prefix + in GenIncludeDependencies()
182 (parser_.opts.keep_include_path ? noext : basename) + in GenIncludeDependencies()
210 if (parser_.opts.gen_nullable) { in generate()
215 if (parser_.uses_flexbuffers_) { in generate()
220 if (parser_.opts.include_dependence_headers) { GenIncludeDependencies(); } in generate()
[all …]
Didl_gen_js_ts.cpp82 lang_(GetJsLangParams(parser_.opts.lang)) {} in JsTsGenerator()
107 !parser_.opts.skip_js_exports) { in generate()
108 if (parser_.opts.use_ES6_js_export_format) in generate()
140 if (!parser_.opts.reexport_ts_modules || in generateReexports()
168 for (auto it = parser_.enums_.vec.begin(); it != parser_.enums_.vec.end(); in generateEnums()
179 for (auto it = parser_.structs_.vec.begin(); in generateStructs()
180 it != parser_.structs_.vec.end(); ++it) { in generateStructs()
182 GenStruct(parser_, struct_def, decl_code_ptr, exports_code_ptr, in generateStructs()
188 parser_.opts.skip_flatbuffers_import) { in GenNamespaces()
194 for (auto it = parser_.namespaces_.begin(); it != parser_.namespaces_.end(); in GenNamespaces()
[all …]
Didl_gen_grpc.cpp191 : parser_(parser), file_name_(file_name), language_(language) {} in FlatBufFile()
214 return parser_.current_namespace_->GetFullyQualifiedName(""); in package()
218 return parser_.current_namespace_->components; in package_parts()
237 return static_cast<int>(parser_.services_.vec.size()); in service_count()
242 new FlatBufService(parser_.services_.vec[i])); in service()
251 const Parser &parser_; member in flatbuffers::FlatBufFile
261 parser_(parser), in GoGRPCGenerator()
266 FlatBufFile file(parser_, file_name_, FlatBufFile::kLanguageGo); in generate()
271 const Definition *def = parser_.services_.vec[i]; in generate()
284 const Parser &parser_; member in flatbuffers::GoGRPCGenerator
[all …]
Didl_gen_json_schema.cpp126 for (auto e = parser_.enums_.vec.cbegin(); e != parser_.enums_.vec.cend(); in generate()
140 for (auto s = parser_.structs_.vec.cbegin(); in generate()
141 s != parser_.structs_.vec.cend(); ++s) { in generate()
184 if (*s != parser_.structs_.vec.back()) { closeType.append(","); } in generate()
191 GenFullName(parser_.root_struct_def_) + "\""; in generate()
Didl_gen_rust.cpp312 for (auto ns_it = parser_.namespaces_.begin(); in generate()
313 ns_it != parser_.namespaces_.end(); in generate()
318 for (auto it = parser_.enums_.vec.begin(); it != parser_.enums_.vec.end(); in generate()
329 for (auto it = parser_.structs_.vec.begin(); in generate()
330 it != parser_.structs_.vec.end(); ++it) { in generate()
340 for (auto it = parser_.structs_.vec.begin(); in generate()
341 it != parser_.structs_.vec.end(); ++it) { in generate()
351 if (parser_.root_struct_def_) { in generate()
352 auto &struct_def = *parser_.root_struct_def_; in generate()
1282 auto nested_root = parser_.LookupStruct(nested->constant); in GenTable()
[all …]
Didl_gen_general.cpp157 lang_(GetLangParams(parser_.opts.lang)), in GeneralGenerator()
163 cur_name_space_ = parser_.current_namespace_; in generate()
165 for (auto it = parser_.enums_.vec.begin(); it != parser_.enums_.vec.end(); in generate()
169 if (!parser_.opts.one_file) cur_name_space_ = enum_def.defined_namespace; in generate()
171 if (parser_.opts.one_file) { in generate()
180 for (auto it = parser_.structs_.vec.begin(); in generate()
181 it != parser_.structs_.vec.end(); ++it) { in generate()
184 if (!parser_.opts.one_file) in generate()
187 if (parser_.opts.one_file) { in generate()
196 if (parser_.opts.one_file) { in generate()
[all …]
/external/perfetto/src/trace_processor/
Dtrace_sorter_unittest.cc79 parser_ = new MockTraceParser(&context_); in TraceSorterTest()
80 context_.parser.reset(parser_); in TraceSorterTest()
85 MockTraceParser* parser_; member in perfetto::trace_processor::__anoneb0575660111::TraceSorterTest
92 EXPECT_CALL(*parser_, MOCK_ParseFtracePacket(0, 1000, view.data(), 1)); in TEST_F()
101 EXPECT_CALL(*parser_, MOCK_ParseTracePacket(1000, view.data(), 1)); in TEST_F()
115 EXPECT_CALL(*parser_, MOCK_ParseFtracePacket(0, 1000, view_1.data(), 1)); in TEST_F()
116 EXPECT_CALL(*parser_, MOCK_ParseTracePacket(1001, view_2.data(), 2)); in TEST_F()
117 EXPECT_CALL(*parser_, MOCK_ParseTracePacket(1100, view_3.data(), 3)); in TEST_F()
118 EXPECT_CALL(*parser_, MOCK_ParseFtracePacket(2, 1200, view_4.data(), 4)); in TEST_F()
140 EXPECT_CALL(*parser_, MOCK_ParseFtracePacket(_, _, _, _)) in TEST_F()
/external/bcc/src/cc/frontends/b/
Dloader.cc46 parser_ = make_unique<ebpf::cc::Parser>(filename); in parse()
47 rc = parser_->parse(); in parse()
56 ebpf::cc::TypeCheck type_check(parser_->scopes_.get(), proto_parser_->scopes_.get()); in parse()
57 auto ret = type_check.visit(parser_->root_node_); in parse()
63 …codegen_ = ebpf::make_unique<ebpf::cc::CodegenLLVM>(mod, parser_->scopes_.get(), proto_parser_->sc… in parse()
64 ret = codegen_->visit(parser_->root_node_, ts, id, maps_ns); in parse()
Dtype_check.cc437 n->parser_ = ParserStateStmtNode::make(n->id_); in visit_state_decl_stmt_node()
438 n->parser_->next_state_ = s1->subs_[0].block_.get(); in visit_state_decl_stmt_node()
439 n->parser_->scope_id_ = n->scope_id_; in visit_state_decl_stmt_node()
465 it->parser_ = ParserStateStmtNode::make(it->id_); in visit_state_decl_stmt_node()
466 it->parser_->next_state_ = s1->subs_[0].block_.get(); in visit_state_decl_stmt_node()
467 it->parser_->scope_id_ = n->scope_id_ + n->id_->name_ + "_"; in visit_state_decl_stmt_node()
469 it->parser_ = ParserStateStmtNode::make(it->id_); in visit_state_decl_stmt_node()
470 it->parser_->next_state_ = s2->subs_[0].block_.get(); in visit_state_decl_stmt_node()
471 it->parser_->scope_id_ = n->scope_id_ + n->id_->name_ + "_"; in visit_state_decl_stmt_node()
474 if (it->parser_) { in visit_state_decl_stmt_node()
[all …]
/external/pcre/pcrecpp/include/
Dpcrecpparg.h69 Arg(type* p) : arg_(p), parser_(name) { } \
70 Arg(type* p, Parser parser) : arg_(p), parser_(parser) { }
98 : arg_(p), parser_(_RE_MatchObject<T>::Parse) { in Arg()
106 Parser parser_; variable
138 inline Arg::Arg() : arg_(NULL), parser_(parse_null) { } in Arg()
139 inline Arg::Arg(void* p) : arg_(p), parser_(parse_null) { } in Arg()
142 return (*parser_)(str, n, arg_); in Parse()
/external/webrtc/webrtc/test/
Drtp_rtcp_observer.h61 parser_(RtpHeaderParser::Create()), in RtpRtcpObserver()
63 parser_->RegisterRtpHeaderExtension(kRtpExtensionTransmissionTimeOffset, in RtpRtcpObserver()
65 parser_->RegisterRtpHeaderExtension(kRtpExtensionAbsoluteSendTime, in RtpRtcpObserver()
67 parser_->RegisterRtpHeaderExtension(kRtpExtensionTransportSequenceNumber, in RtpRtcpObserver()
72 const rtc::scoped_ptr<RtpHeaderParser> parser_; variable
/external/webrtc/webrtc/voice_engine/test/auto_test/standard/
Drtp_rtcp_extensions.cc25 : parser_(webrtc::RtpHeaderParser::Create()), in ExtensionVerifyTransport()
35 if (parser_->Parse(reinterpret_cast<const uint8_t*>(data), len, &header)) { in SendRtp()
62 parser_->RegisterRtpHeaderExtension(webrtc::kRtpExtensionAudioLevel, id); in SetAudioLevelId()
67 parser_->RegisterRtpHeaderExtension(webrtc::kRtpExtensionAbsoluteSendTime, in SetAbsoluteSenderTimeId()
86 rtc::scoped_ptr<webrtc::RtpHeaderParser> parser_; member in ExtensionVerifyTransport
/external/v4l2_codec2/vda/
Dvp9_decoder.cc23 parser_(accelerator->IsFrameContextRequired()) { in VP9Decoder()
34 parser_.SetStream(ptr, size); in SetStream()
48 parser_.Reset(); in Reset()
59 Vp9Parser::Result res = parser_.ParseNextFrame(hdr.get()); in Decode()
191 parser_.GetContextRefreshCb(pic->frame_hdr->frame_context_idx); in DecodeAndOutputPicture()
196 const Vp9Parser::Context& context = parser_.context(); in DecodeAndOutputPicture()
Dh264_decoder.cc59 parser_.Reset(); in Reset()
138 const H264SPS* sps = parser_.GetSPS(curr_sps_id_); in InitCurrPicture()
187 const H264SPS* sps = parser_.GetSPS(curr_sps_id_); in CalculatePicOrderCounts()
719 const H264PPS* pps = parser_.GetPPS(curr_pps_id_); in StartNewFrame()
724 const H264SPS* sps = parser_.GetSPS(curr_sps_id_); in StartNewFrame()
897 const H264SPS* sps = parser_.GetSPS(curr_sps_id_); in SlidingWindowPictureMarking()
1082 const H264SPS* sps = parser_.GetSPS(sps_id); in ProcessSPS()
1172 const H264SPS* sps = parser_.GetSPS(curr_sps_id_); in HandleFrameNumGap()
1225 const H264SPS* sps = parser_.GetSPS(curr_sps_id_); in IsNewPrimaryCodedPicture()
1293 const H264PPS* pps = parser_.GetPPS(curr_pps_id_); in ProcessCurrentSlice()
[all …]
/external/expat/xmlwf/
Dxmlwin32url.cxx70 XML_Parser parser_; member in Callback
199 XML_SetEncoding(parser_, wcharset); in OnDataAvailable()
201 XML_SetEncoding(parser_, charset); in OnDataAvailable()
208 if (!parser_) in OnDataAvailable()
216 void *buf = XML_GetBuffer(parser_, nToRead); in OnDataAvailable()
225 if (!XML_ParseBuffer(parser_, in OnDataAvailable()
229 reportError(parser_); in OnDataAvailable()
249 XML_Parser entParser = XML_ExternalEntityParserCreate(parser_, context, 0); in externalEntityRef()
258 : parser_(parser), in Callback()
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/
Drtp_file_source.cc52 assert(parser_.get()); in RegisterRtpHeaderExtension()
53 return parser_->RegisterRtpHeaderExtension(type, id); in RegisterRtpHeaderExtension()
71 temp_packet.original_length, temp_packet.time_ms, *parser_.get())); in NextPacket()
87 parser_(RtpHeaderParser::Create()) {} in RtpFileSource()
Drtc_event_log_source.cc74 RTC_CHECK(parser_.get()); in RegisterRtpHeaderExtension()
75 return parser_->RegisterRtpHeaderExtension(type, id); in RegisterRtpHeaderExtension()
89 event.timestamp_us() / 1000, *parser_.get()); in NextPacket()
120 : PacketSource(), parser_(RtpHeaderParser::Create()) {} in RtcEventLogSource()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_flags.cc90 FlagParser *parser_; member in __sanitizer::FlagHandlerInclude
95 : parser_(parser), ignore_missing_(ignore_missing) {} in FlagHandlerInclude()
100 bool res = parser_->ParseFile(buf, ignore_missing_); in Parse()
104 return parser_->ParseFile(value, ignore_missing_); in Parse()
/external/libchrome/base/json/
Djson_reader.cc45 : parser_(new internal::JSONParser(options, max_depth)) {} in JSONReader()
114 Optional<Value> value = parser_->Parse(json); in ReadToValue()
119 return parser_->error_code(); in error_code()
123 return parser_->GetErrorMessage(); in GetErrorMessage()
/external/protobuf/src/google/protobuf/compiler/
Dparser_unittest.cc112 parser_.reset(new Parser()); in SetupParser()
113 parser_->RecordErrorsTo(&error_collector_); in SetupParser()
114 parser_->SetRequireSyntaxIdentifier(require_syntax_identifier_); in SetupParser()
124 parser_->Parse(input_.get(), &actual); in ExpectParsesTo()
153 parser_->Parse(input_.get(), &file); in ExpectHasEarlyExitErrors()
163 parser_->RecordSourceLocationsTo(&source_locations); in ExpectHasValidationErrors()
167 parser_->Parse(input_.get(), &file); in ExpectHasValidationErrors()
183 google::protobuf::scoped_ptr<Parser> parser_; member in google::protobuf::compiler::__anone5943b270111::ParserTest
194 parser_->SetStopAfterSyntaxIdentifier(true); in TEST_F()
195 EXPECT_TRUE(parser_->Parse(input_.get(), NULL)); in TEST_F()
[all …]
/external/libtextclassifier/annotator/datetime/
Dparser_test.cc61 parser_ = classifier_->DatetimeParserForTests(); in LoadModel()
62 TC3_CHECK(parser_); in LoadModel()
70 if (!parser_->Parse(text, 0, timezone, /*locales=*/"", ModeFlag_ANNOTATION, in HasNoResult()
104 if (!parser_->Parse(text, 0, timezone, locales, ModeFlag_ANNOTATION, in ParsesCorrectly()
183 const DatetimeParser* parser_; member in libtextclassifier3::__anon902cab6b0111::ParserTest
456 std::unique_ptr<DatetimeParser> parser_; member in libtextclassifier3::__anon902cab6b0111::ParserLocaleTest
495 parser_ = DatetimeParser::Instance(model_fb, unilib_, calendarlib_, in SetUp()
497 ASSERT_TRUE(parser_); in SetUp()
503 EXPECT_TRUE(parser_->Parse( in HasResult()
/external/v8/src/parsing/
Dpattern-rewriter.cc56 parser_(parser), in PatternRewriter()
97 AstNodeFactory* factory() const { return parser_->factory(); } in factory()
99 return parser_->ast_value_factory(); in ast_value_factory()
101 Zone* zone() const { return parser_->zone(); } in zone()
105 Parser* const parser_; member in v8::internal::PatternRewriter
217 Variable* var = parser_->Declare( in VisitVariableProxy()
234 parser_->ReportMessage(MessageTemplate::kTooManyVariables); in VisitVariableProxy()
363 ReparentExpressionScope(parser_->stack_limit(), expr, scope()); in RewriteParameterScopes()
382 block_->statements()->Add(parser_->BuildAssertIsCoercible(temp, pattern), in VisitObjectLiteral()
533 parser_->BuildIteratorNextResult( in VisitArrayLiteral()
[all …]
/external/v8/src/compiler-dispatcher/
Dunoptimized-compile-job.cc200 parser_.reset(new Parser(parse_info_.get())); in PrepareOnMainThread()
201 parser_->DeserializeScopeChain(isolate, parse_info_.get(), in PrepareOnMainThread()
227 parser_->set_stack_limit(stack_limit); in Compile()
229 parser_->ParseOnBackground(parse_info_.get()); in Compile()
276 parser_->UpdateStatistics(isolate, script); in FinalizeOnMainThread()
278 parser_->HandleSourceURLComments(isolate, script); in FinalizeOnMainThread()
326 parser_.reset(); in ResetDataOnMainThread()

123