/external/curl/lib/ |
D | ftplistparser.c | 271 struct ftp_parselist_data *parser = tmpdata->parser; in PL_ERROR() local 272 if(parser->file_data) in PL_ERROR() 273 Curl_fileinfo_dtor(NULL, parser->file_data); in PL_ERROR() 274 parser->file_data = NULL; in PL_ERROR() 275 parser->error = err; in PL_ERROR() 278 static bool ftp_pl_gettime(struct ftp_parselist_data *parser, char *string) in ftp_pl_gettime() argument 280 (void)parser; in ftp_pl_gettime() 305 struct ftp_parselist_data *parser = tmpdata->parser; in ftp_pl_insert_finfo() local 310 finfo->filename = str + parser->offsets.filename; in ftp_pl_insert_finfo() 311 finfo->strings.group = parser->offsets.group ? in ftp_pl_insert_finfo() [all …]
|
/external/pdfium/third_party/freetype/src/type1/ |
D | t1parse.c | 136 T1_New_Parser( T1_Parser parser, in T1_New_Parser() argument 146 psaux->ps_parser_funcs->init( &parser->root, NULL, NULL, memory ); in T1_New_Parser() 148 parser->stream = stream; in T1_New_Parser() 149 parser->base_len = 0; in T1_New_Parser() 150 parser->base_dict = NULL; in T1_New_Parser() 151 parser->private_len = 0; in T1_New_Parser() 152 parser->private_dict = NULL; in T1_New_Parser() 153 parser->in_pfb = 0; in T1_New_Parser() 154 parser->in_memory = 0; in T1_New_Parser() 155 parser->single_block = 0; in T1_New_Parser() [all …]
|
/external/antlr/antlr-3.4/runtime/C/src/ |
D | antlr3parser.c | 38 static void setDebugListener (pANTLR3_PARSER parser, pANTLR3_DEBUG_EVENT_LISTENER dbg); 39 static void setTokenStream (pANTLR3_PARSER parser, pANTLR3_TOKEN_STREAM); 40 static pANTLR3_TOKEN_STREAM getTokenStream (pANTLR3_PARSER parser); 41 static void freeParser (pANTLR3_PARSER parser); 46 pANTLR3_PARSER parser; in antlr3ParserNewStreamDbg() local 48 parser = antlr3ParserNewStream(sizeHint, tstream, state); in antlr3ParserNewStreamDbg() 50 if (parser == NULL) in antlr3ParserNewStreamDbg() 55 parser->setDebugListener(parser, dbg); in antlr3ParserNewStreamDbg() 57 return parser; in antlr3ParserNewStreamDbg() 63 pANTLR3_PARSER parser; in antlr3ParserNew() local [all …]
|
D | antlr3treeparser.c | 42 static void setTreeNodeStream (pANTLR3_TREE_PARSER parser, pANTLR3_COMMON_TREE_NODE_STREAM in… 44 getTreeNodeStream (pANTLR3_TREE_PARSER parser); 45 static void freeParser (pANTLR3_TREE_PARSER parser); 54 pANTLR3_TREE_PARSER parser; in antlr3TreeParserNewStream() local 58 parser =(pANTLR3_TREE_PARSER) ANTLR3_MALLOC(sizeof(ANTLR3_TREE_PARSER)); in antlr3TreeParserNewStream() 60 if (parser == NULL) in antlr3TreeParserNewStream() 67 parser->rec = antlr3BaseRecognizerNew(ANTLR3_TYPE_PARSER, sizeHint, state); in antlr3TreeParserNewStream() 69 if (parser->rec == NULL) in antlr3TreeParserNewStream() 71 parser->free(parser); in antlr3TreeParserNewStream() 78 parser->rec->super = parser; in antlr3TreeParserNewStream() [all …]
|
/external/jsmn/ |
D | jsmn.c | 8 static jsmntok_t *jsmn_alloc_token(jsmn_parser *parser, in jsmn_alloc_token() argument 11 if (parser->toknext >= num_tokens) { in jsmn_alloc_token() 14 tok = &tokens[parser->toknext++]; in jsmn_alloc_token() 37 static jsmnerr_t jsmn_parse_primitive(jsmn_parser *parser, const char *js, in jsmn_parse_primitive() argument 42 start = parser->pos; in jsmn_parse_primitive() 44 for (; parser->pos < len && js[parser->pos] != '\0'; parser->pos++) { in jsmn_parse_primitive() 45 switch (js[parser->pos]) { in jsmn_parse_primitive() 54 if (js[parser->pos] < 32 || js[parser->pos] >= 127) { in jsmn_parse_primitive() 55 parser->pos = start; in jsmn_parse_primitive() 61 parser->pos = start; in jsmn_parse_primitive() [all …]
|
/external/pdfium/core/src/fpdfapi/fpdf_parser/ |
D | fpdf_parser_parser_unittest.cpp | 96 CPDF_SyntaxParser parser; in TEST() local 97 parser.InitParser(stream.get(), 0); in TEST() 98 EXPECT_EQ("", parser.ReadHexString()); in TEST() 99 EXPECT_EQ(0, parser.SavePos()); in TEST() 107 CPDF_SyntaxParser parser; in TEST() local 108 parser.InitParser(stream.get(), 0); in TEST() 109 EXPECT_EQ("", parser.ReadHexString()); in TEST() 110 EXPECT_EQ(2, parser.SavePos()); in TEST() 118 CPDF_SyntaxParser parser; in TEST() local 119 parser.InitParser(stream.get(), 0); in TEST() [all …]
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
D | rtcp_packet_unittest.cc | 55 RtcpPacketParser parser; in TEST() local 56 parser.Parse(packet->Buffer(), packet->Length()); in TEST() 58 EXPECT_EQ(1, parser.sender_report()->num_packets()); in TEST() 59 EXPECT_EQ(kSenderSsrc, parser.sender_report()->Ssrc()); in TEST() 60 EXPECT_EQ(0x11111111U, parser.sender_report()->NtpSec()); in TEST() 61 EXPECT_EQ(0x22222222U, parser.sender_report()->NtpFrac()); in TEST() 62 EXPECT_EQ(0x33333333U, parser.sender_report()->RtpTimestamp()); in TEST() 63 EXPECT_EQ(0x44444444U, parser.sender_report()->PacketCount()); in TEST() 64 EXPECT_EQ(0x55555555U, parser.sender_report()->OctetCount()); in TEST() 65 EXPECT_EQ(0, parser.report_block()->num_packets()); in TEST() [all …]
|
D | rtcp_sender_unittest.cc | 251 test::RtcpPacketParser* parser() { return &test_transport_.parser_; } in parser() function in webrtc::RtcpSenderTest 292 EXPECT_EQ(1, parser()->sender_report()->num_packets()); in TEST_F() 293 EXPECT_EQ(kSenderSsrc, parser()->sender_report()->Ssrc()); in TEST_F() 294 EXPECT_EQ(ntp_secs, parser()->sender_report()->NtpSec()); in TEST_F() 295 EXPECT_EQ(ntp_frac, parser()->sender_report()->NtpFrac()); in TEST_F() 296 EXPECT_EQ(kPacketCount, parser()->sender_report()->PacketCount()); in TEST_F() 297 EXPECT_EQ(kOctetCount, parser()->sender_report()->OctetCount()); in TEST_F() 298 EXPECT_EQ(0, parser()->report_block()->num_packets()); in TEST_F() 304 EXPECT_EQ(1, parser()->receiver_report()->num_packets()); in TEST_F() 305 EXPECT_EQ(kSenderSsrc, parser()->receiver_report()->Ssrc()); in TEST_F() [all …]
|
D | h264_sps_parser.cc | 65 rtc::BitBuffer parser(reinterpret_cast<const uint8_t*>(rbsp_buffer.Data()), in Parse() 81 RETURN_FALSE_ON_FAIL(parser.ReadUInt8(&profile_idc)); in Parse() 84 RETURN_FALSE_ON_FAIL(parser.ConsumeBytes(1)); in Parse() 86 RETURN_FALSE_ON_FAIL(parser.ConsumeBytes(1)); in Parse() 88 RETURN_FALSE_ON_FAIL(parser.ReadExponentialGolomb(&golomb_ignored)); in Parse() 95 RETURN_FALSE_ON_FAIL(parser.ReadExponentialGolomb(&chroma_format_idc)); in Parse() 98 RETURN_FALSE_ON_FAIL(parser.ReadBits(&separate_colour_plane_flag, 1)); in Parse() 101 RETURN_FALSE_ON_FAIL(parser.ReadExponentialGolomb(&golomb_ignored)); in Parse() 103 RETURN_FALSE_ON_FAIL(parser.ReadExponentialGolomb(&golomb_ignored)); in Parse() 105 RETURN_FALSE_ON_FAIL(parser.ConsumeBits(1)); in Parse() [all …]
|
/external/mesa3d/src/glsl/glcpp/ |
D | glcpp-parse.y | 36 yyerror (YYLTYPE *locp, glcpp_parser_t *parser, const char *error); 39 _define_object_macro (glcpp_parser_t *parser, 45 _define_function_macro (glcpp_parser_t *parser, 98 _parser_active_list_push (glcpp_parser_t *parser, 103 _parser_active_list_pop (glcpp_parser_t *parser); 106 _parser_active_list_contains (glcpp_parser_t *parser, const char *identifier); 112 _glcpp_parser_expand_and_lex_from (glcpp_parser_t *parser, 118 _glcpp_parser_expand_token_list (glcpp_parser_t *parser, 122 _glcpp_parser_print_expanded_token_list (glcpp_parser_t *parser, 126 _glcpp_parser_skip_stack_push_if (glcpp_parser_t *parser, YYLTYPE *loc, [all …]
|
/external/dbus/bus/ |
D | desktop-file.c | 90 static void report_error (BusDesktopFileParser *parser, 96 parser_free (BusDesktopFileParser *parser) in parser_free() argument 98 bus_desktop_file_free (parser->desktop_file); in parser_free() 100 _dbus_string_free (&parser->data); in parser_free() 182 unescape_string (BusDesktopFileParser *parser, in unescape_string() argument 210 report_error (parser, "Text to be unescaped contains embedded nul", in unescape_string() 223 report_error (parser, "Text to be unescaped ended in \\", in unescape_string() 248 report_error (parser, "Text to be unescaped had invalid escape sequence", in unescape_string() 304 open_section (BusDesktopFileParser *parser, in open_section() argument 309 section = new_section (parser->desktop_file, name); in open_section() [all …]
|
/external/skia/gyp/ |
D | svg.gyp | 44 '../include/svg/parser', 47 '../include/svg/parser/SkSVGAttribute.h', 48 '../include/svg/parser/SkSVGBase.h', 49 '../include/svg/parser/SkSVGPaintState.h', 50 '../include/svg/parser/SkSVGParser.h', 51 '../include/svg/parser/SkSVGTypes.h', 53 '../src/svg/parser/SkSVGCircle.cpp', 54 '../src/svg/parser/SkSVGCircle.h', 55 '../src/svg/parser/SkSVGClipPath.cpp', 56 '../src/svg/parser/SkSVGClipPath.h', [all …]
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/ |
D | basic.rb | 40 parser = Identifiers::Parser.new( tokens ) 42 parser.document 44 parser.reported_errors.should be_empty 45 parser.identifiers.should == %w(blah_de_blah) 52 parser = Identifiers::Parser.new( lexer ) 53 parser.document 55 parser.reported_errors.should have( 1 ).thing 64 parser = Identifiers::Parser.new( 'blah_de_blah', :file => 'blah.txt' ) 66 parser.document 68 parser.reported_errors.should be_empty [all …]
|
/external/dbus-binding-generator/chromeos-dbus-bindings/ |
D | name_parser_unittest.cc | 22 NameParser parser{"foo"}; in TEST() local 23 EXPECT_EQ("foo", parser.type_name); in TEST() 24 EXPECT_TRUE(parser.namespaces.empty()); in TEST() 28 NameParser parser{"foo.bar.FooBar"}; in TEST() local 29 EXPECT_EQ("FooBar", parser.type_name); in TEST() 30 EXPECT_THAT(parser.namespaces, testing::ElementsAre("foo", "bar")); in TEST() 34 NameParser parser{"foo.bar.FooBar"}; in TEST() local 35 EXPECT_EQ("foo::bar::FooBar", parser.MakeFullCppName()); in TEST() 39 NameParser parser{"foo.bar.FooBar"}; in TEST() local 40 EXPECT_EQ("foo_bar", parser.MakeVariableName()); in TEST() [all …]
|
/external/expat/tests/ |
D | runtests.c | 31 static XML_Parser parser; variable 37 parser = XML_ParserCreate(NULL); in basic_setup() 38 if (parser == NULL) in basic_setup() 45 if (parser != NULL) in basic_teardown() 46 XML_ParserFree(parser); in basic_teardown() 54 _xml_failure(XML_Parser parser, const char *file, int line) in _xml_failure() argument 57 enum XML_Error err = XML_GetErrorCode(parser); in _xml_failure() 63 XML_GetCurrentLineNumber(parser), in _xml_failure() 64 XML_GetCurrentColumnNumber(parser), in _xml_failure() 69 #define xml_failure(parser) _xml_failure((parser), __FILE__, __LINE__) argument [all …]
|
/external/libweave/third_party/chromium/base/json/ |
D | json_parser_unittest.cc | 21 JSONParser* parser = new JSONParser(JSON_PARSE_RFC); in NewTestParser() local 22 parser->start_pos_ = input.data(); in NewTestParser() 23 parser->pos_ = parser->start_pos_; in NewTestParser() 24 parser->end_pos_ = parser->start_pos_ + input.length(); in NewTestParser() 25 return parser; in NewTestParser() 28 void TestLastThree(JSONParser* parser) { in TestLastThree() argument 29 EXPECT_EQ(',', *parser->NextChar()); in TestLastThree() 30 EXPECT_EQ('|', *parser->NextChar()); in TestLastThree() 31 EXPECT_EQ('\0', *parser->NextChar()); in TestLastThree() 32 EXPECT_EQ(parser->end_pos_, parser->pos_); in TestLastThree() [all …]
|
/external/libchrome/base/json/ |
D | json_parser_unittest.cc | 20 JSONParser* parser = new JSONParser(JSON_PARSE_RFC); in NewTestParser() local 21 parser->start_pos_ = input.data(); in NewTestParser() 22 parser->pos_ = parser->start_pos_; in NewTestParser() 23 parser->end_pos_ = parser->start_pos_ + input.length(); in NewTestParser() 24 return parser; in NewTestParser() 27 void TestLastThree(JSONParser* parser) { in TestLastThree() argument 28 EXPECT_EQ(',', *parser->NextChar()); in TestLastThree() 29 EXPECT_EQ('|', *parser->NextChar()); in TestLastThree() 30 EXPECT_EQ('\0', *parser->NextChar()); in TestLastThree() 31 EXPECT_EQ(parser->end_pos_, parser->pos_); in TestLastThree() [all …]
|
/external/pdfium/third_party/freetype/src/cid/ |
D | cidparse.c | 51 cid_parser_new( CID_Parser* parser, in cid_parser_new() argument 62 FT_MEM_ZERO( parser, sizeof ( *parser ) ); in cid_parser_new() 63 psaux->ps_parser_funcs->init( &parser->root, 0, 0, memory ); in cid_parser_new() 65 parser->stream = stream; in cid_parser_new() 143 FT_FRAME_EXTRACT( ps_len, parser->postscript ) ) in cid_parser_new() 146 parser->data_offset = offset; in cid_parser_new() 147 parser->postscript_len = ps_len; in cid_parser_new() 148 parser->root.base = parser->postscript; in cid_parser_new() 149 parser->root.cursor = parser->postscript; in cid_parser_new() 150 parser->root.limit = parser->root.cursor + ps_len; in cid_parser_new() [all …]
|
/external/autotest/server/ |
D | autoserv_parser.py | 19 self.parser = argparse.ArgumentParser( 27 self.options = self.parser.parse_args(args=[]) 33 self.parser.add_argument('-m', action='store', type=str, 36 self.parser.add_argument('-M', action='store', type=str, 39 self.parser.add_argument('-c', action='store_true', 42 self.parser.add_argument('-s', action='store_true', 45 self.parser.add_argument('-r', action='store', type=str, 48 self.parser.add_argument('-l', action='store', type=str, 51 self.parser.add_argument('-G', action='store', type=str, 54 self.parser.add_argument('-u', action='store', type=str, [all …]
|
D | autoserv | 85 def _get_machines(parser): argument 93 if parser.options.machines: 94 machines = parser.options.machines.replace(',', ' ').strip().split() 97 machines_file = parser.options.machines_file 111 parser.parser.error("Invalid machine: %s" % str(machine)) 117 def _stage_ssp(parser): argument 135 namespace = {'machines': _get_machines(parser), 136 'image': (parser.options.test_source_build or 137 parser.options.image),} 143 def _run_with_ssp(job, container_name, job_id, results, parser, ssp_url): argument [all …]
|
/external/chromium-trace/catapult/third_party/html5lib-python/html5lib/ |
D | html5parser.py | 89 parser=self, **kwargs) 358 self.parser.phase() 438 self.parser.log.append((self.parser.tokenizer.state.__name__, 439 self.parser.phase.__class__.__name__, 458 def __init__(self, parser, tree): argument 459 self.parser = parser 471 self.parser.parseError("unexpected-doctype") 483 if not self.parser.firstStartTag and token["name"] == "html": 484 self.parser.parseError("non-html-root") 490 self.parser.firstStartTag = False [all …]
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/browser/ |
D | browser_options_unittest.py | 14 parser = options.CreateParser() 15 parser.add_option('-x', action='store', default=3) 16 parser.parse_args(['--browser', 'any']) 21 parser = options.CreateParser() 22 parser.add_option('-x', action='store', default=3) 23 parser.parse_args(['--browser', 'any', '-x', 10]) 29 parser = options.CreateParser() 30 parser.add_option('-x', action='store', default=3) 31 parser.parse_args(['--browser', 'any']) 36 parser = options.CreateParser() [all …]
|
/external/antlr/antlr-3.4/runtime/Python/tests/ |
D | t014parser.py | 14 parser = self.getParser(tStream) 15 parser.document() 17 assert len(parser.reportedErrors) == 0, parser.reportedErrors 18 assert parser.events == [ 23 ], parser.events 30 parser = self.getParser(tStream) 32 parser.document() 36 assert len(parser.reportedErrors) == 1, parser.reportedErrors 37 assert parser.events == [], parser.events 44 parser = self.getParser(tStream) [all …]
|
/external/expat/lib/ |
D | expat.h | 155 XML_SetElementDeclHandler(XML_Parser parser, 175 XML_SetAttlistDeclHandler(XML_Parser parser, 192 XML_SetXmlDeclHandler(XML_Parser parser, 247 XML_ParserReset(XML_Parser parser, const XML_Char *encoding); 341 XML_SetEntityDeclHandler(XML_Parser parser, 433 XML_Parser parser, 534 XML_SetElementHandler(XML_Parser parser, 539 XML_SetStartElementHandler(XML_Parser parser, 543 XML_SetEndElementHandler(XML_Parser parser, 547 XML_SetCharacterDataHandler(XML_Parser parser, [all …]
|
/external/chromium-trace/catapult/third_party/py_vulcanize/py_vulcanize/ |
D | parse_html_deps_unittest.py | 16 parser = parse_html_deps.HTMLModuleParser() 17 module = parser.Parse('') 24 parser = parse_html_deps.HTMLModuleParser() 25 module = parser.Parse(None) 41 parser = parse_html_deps.HTMLModuleParser() 42 module = parser.Parse(html) 60 parser = parse_html_deps.HTMLModuleParser() 61 module = parser.Parse(html) 77 parser = parse_html_deps.HTMLModuleParser() 78 module = parser.Parse(html) [all …]
|