/external/pdfium/xfa/fde/xml/ |
D | fde_xml_imp_unittest.cpp | 31 CFDE_XMLSyntaxParser parser; in TEST() local 32 parser.Init(stream, 256); in TEST() 33 EXPECT_EQ(FDE_XmlSyntaxResult::ElementOpen, parser.DoSyntaxParse()); in TEST() 34 EXPECT_EQ(FDE_XmlSyntaxResult::TagName, parser.DoSyntaxParse()); in TEST() 37 parser.GetTagName(data); in TEST() 40 EXPECT_EQ(FDE_XmlSyntaxResult::AttriName, parser.DoSyntaxParse()); in TEST() 41 parser.GetAttributeName(data); in TEST() 43 EXPECT_EQ(FDE_XmlSyntaxResult::AttriValue, parser.DoSyntaxParse()); in TEST() 44 parser.GetAttributeValue(data); in TEST() 47 EXPECT_EQ(FDE_XmlSyntaxResult::ElementBreak, parser.DoSyntaxParse()); in TEST() [all …]
|
/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() 285 struct ftp_parselist_data *parser = tmpdata->parser; in ftp_pl_insert_finfo() local 290 finfo->filename = str + parser->offsets.filename; in ftp_pl_insert_finfo() 291 finfo->strings.group = parser->offsets.group ? in ftp_pl_insert_finfo() 292 str + parser->offsets.group : NULL; in ftp_pl_insert_finfo() 293 finfo->strings.perm = parser->offsets.perm ? in ftp_pl_insert_finfo() [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 …]
|
/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_syntax_parser_unittest.cpp | 8 #include "core/fpdfapi/parser/cpdf_object.h" 9 #include "core/fpdfapi/parser/cpdf_parser.h" 10 #include "core/fpdfapi/parser/cpdf_syntax_parser.h" 20 CPDF_SyntaxParser parser; in TEST() local 21 parser.InitParser(IFX_MemoryStream::Create(data, 0, false), 0); in TEST() 22 EXPECT_EQ("", parser.ReadHexString()); in TEST() 23 EXPECT_EQ(0, parser.SavePos()); in TEST() 29 CPDF_SyntaxParser parser; in TEST() local 30 parser.InitParser(IFX_MemoryStream::Create(data, 2, false), 0); in TEST() 31 EXPECT_EQ("", parser.ReadHexString()); in TEST() [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/antlr/antlr-3.4/runtime/C/src/ |
D | antlr3parser.c | 2 * Implementation of the base functionality for an ANTLR3 parser. 36 /* Parser API 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() [all …]
|
D | antlr3treeparser.c | 2 * Implementation of the tree parser and overrides for the base recognizer 40 /* Tree parser API 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 56 /** Allocate tree parser memory in antlr3TreeParserNewStream() 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() [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/pdfium/third_party/freetype/src/type1/ |
D | t1parse.c | 5 /* Type 1 parser (body). */ 21 /* The Type 1 parser is in charge of the following: */ 60 /***** INPUT STREAM PARSER *****/ 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() [all …]
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/ |
D | basic.rb | 11 @parser::init { 16 @parser::members { 36 # to build a parser, this is the standard chain of calls to prepare the input 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 [all …]
|
/external/autotest/server/ |
D | autoserv | 73 def _get_machines(parser): argument 76 @param parser: Parser for the command line arguments. 81 if parser.options.machines: 82 machines = parser.options.machines.replace(',', ' ').strip().split() 85 machines_file = parser.options.machines_file 99 parser.parser.error("Invalid machine: %s" % str(machine)) 105 def _stage_ssp(parser): argument 116 @param parser: Command line arguments parser passed in the autoserv process. 124 machines_list = _get_machines(parser) 126 machines_list, parser.options.lab, parser.options.host_attributes) [all …]
|
D | autoserv.py | 73 def _get_machines(parser): argument 76 @param parser: Parser for the command line arguments. 81 if parser.options.machines: 82 machines = parser.options.machines.replace(',', ' ').strip().split() 85 machines_file = parser.options.machines_file 99 parser.parser.error("Invalid machine: %s" % str(machine)) 105 def _stage_ssp(parser): argument 116 @param parser: Command line arguments parser passed in the autoserv process. 124 machines_list = _get_machines(parser) 126 machines_list, parser.options.lab, parser.options.host_attributes) [all …]
|
D | autoserv_parser.py | 10 """Custom command-line options parser for autoserv. 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, [all …]
|
/external/libxml2/result/HTML/ |
D | wired.html.err | 1 ./test/HTML/wired.html:6: HTML parser error : htmlParseEntityRef: expecting ';' 4 ./test/HTML/wired.html:6: HTML parser error : htmlParseEntityRef: expecting ';' 7 ./test/HTML/wired.html:6: HTML parser error : htmlParseEntityRef: expecting ';' 10 ./test/HTML/wired.html:6: HTML parser error : htmlParseEntityRef: expecting ';' 13 ./test/HTML/wired.html:6: HTML parser error : htmlParseEntityRef: expecting ';' 16 ./test/HTML/wired.html:6: HTML parser error : htmlParseEntityRef: expecting ';' 19 ./test/HTML/wired.html:52: HTML parser error : htmlParseEntityRef: expecting ';' 22 ./test/HTML/wired.html:52: HTML parser error : htmlParseEntityRef: expecting ';' 25 ./test/HTML/wired.html:52: HTML parser error : htmlParseEntityRef: expecting ';' 28 ./test/HTML/wired.html:52: HTML parser error : htmlParseEntityRef: expecting ';' [all …]
|
/external/libchrome/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/expat/tests/ |
D | runtests.c | 36 static XML_Parser parser; variable 42 parser = XML_ParserCreate(NULL); in basic_setup() 43 if (parser == NULL) in basic_setup() 44 fail("Parser not created."); in basic_setup() 50 if (parser != NULL) in basic_teardown() 51 XML_ParserFree(parser); in basic_teardown() 54 /* Generate a failure using the parser state to create an error message; 55 this should be used when the parser reports an error we weren't 59 _xml_failure(XML_Parser parser, const char *file, int line) in _xml_failure() argument 62 enum XML_Error err = XML_GetErrorCode(parser); in _xml_failure() [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/testng/ant/3rdparty/ |
D | cobertura.jar | META-INF/
META-INF/MANIFEST.MF
net/
net/sourceforge/
net/ ... |
/external/jsilver/src/com/google/streamhtmlparser/ |
D | HtmlParser.java | 21 * of Automatic context-aware escaping. The HTML parser also embeds a 22 * Javascript parser for processing Javascript fragments. In the future, 26 * <p>Note: These are the exact methods exposed in the original C++ Parser. The 29 public interface HtmlParser extends Parser { 32 * The Parser Mode requested for parsing a given template. 59 * Indicates the type of HTML attribute that the parser is currently in or 60 * {@code NONE} if the parser is not currently in an attribute. 77 * All the states in which the parser can be. These are external states. 78 * The parser has many more internal states that are not exposed and which 80 * {@code STATE_TEXT} the parser is in HTML proper. [all …]
|
/external/pdfium/xfa/fde/css/ |
D | cfde_cssvaluelistparser_unittest.cpp | 17 auto parser = pdfium::MakeUnique<CFDE_CSSValueListParser>(L"#abc", 4, L' '); in TEST() local 18 EXPECT_TRUE(parser->NextValue(type, start, len)); in TEST() 21 EXPECT_FALSE(parser->NextValue(type, start, len)); in TEST() 23 parser = pdfium::MakeUnique<CFDE_CSSValueListParser>(L"#abcdef", 7, L' '); in TEST() 24 EXPECT_TRUE(parser->NextValue(type, start, len)); in TEST() 27 EXPECT_FALSE(parser->NextValue(type, start, len)); in TEST() 29 parser = in TEST() 31 EXPECT_TRUE(parser->NextValue(type, start, len)); in TEST() 35 parser = in TEST() 37 EXPECT_TRUE(parser->NextValue(type, start, len)); in TEST() [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, 202 /* Constructs a new parser; encoding is the encoding specified by the 208 /* Constructs a new parser and namespace processor. Element type 223 /* Constructs a new parser using the memory management suite referred to 225 suite. If namespaceSeparator is non-NULL it creates a parser with 229 All further memory operations used for the created parser will come from 237 /* Prepare a parser object to be re-used. This is particularly 240 All handlers are cleared from the parser, except for the [all …]
|
/external/libmojo/mojo/public/tools/bindings/pylib/mojom_tests/parse/ |
D | parser_unittest.py | 26 import mojom.parse.parser as parser namespace 30 """Tests |parser.Parse()|.""" 44 self.assertEquals(parser.Parse(source, "my_file.mojom"), expected) 54 self.assertEquals(parser.Parse(source, "my_file.mojom"), expected) 65 parser.ParseError, 67 parser.Parse(source, "my_file.mojom") 80 parser.ParseError, 82 parser.Parse(source1, "my_file.mojom") 97 parser.ParseError, 99 parser.Parse(source2, "my_file.mojom") [all …]
|
/external/webrtc/webrtc/test/ |
D | rtcp_packet_parser.cc | 26 RTCPUtility::RTCPParserV2 parser(packet, len, true); in Parse() local 27 EXPECT_TRUE(parser.IsValid()); in Parse() 28 for (RTCPUtility::RTCPPacketTypes type = parser.Begin(); in Parse() 29 type != RTCPPacketTypes::kInvalid; type = parser.Iterate()) { in Parse() 32 sender_report_.Set(parser.Packet().SR); in Parse() 35 receiver_report_.Set(parser.Packet().RR); in Parse() 38 report_block_.Set(parser.Packet().ReportBlockItem); in Parse() 39 ++report_blocks_per_ssrc_[parser.Packet().ReportBlockItem.SSRC]; in Parse() 45 sdes_chunk_.Set(parser.Packet().CName); in Parse() 48 bye_.Set(parser.Packet().BYE); in Parse() [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 …]
|