Home
last modified time | relevance | path

Searched refs:parser (Results 1 – 25 of 2165) sorted by relevance

12345678910>>...87

/external/pdfium/core/fpdfapi/parser/
Dcpdf_syntax_parser_unittest.cpp20 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()
32 EXPECT_EQ(2, parser.SavePos()); in TEST()
38 CPDF_SyntaxParser parser; in TEST() local
39 parser.InitParser(IFX_MemoryStream::Create(data, 4, false), 0); in TEST()
[all …]
/external/pdfium/xfa/fde/xml/
Dfde_xml_imp_unittest.cpp31 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/
Dftplistparser.c270 struct ftp_parselist_data *parser = tmpdata->parser; in PL_ERROR() local
271 if(parser->file_data) in PL_ERROR()
272 Curl_fileinfo_dtor(NULL, parser->file_data); in PL_ERROR()
273 parser->file_data = NULL; in PL_ERROR()
274 parser->error = err; in PL_ERROR()
284 struct ftp_parselist_data *parser = tmpdata->parser; in ftp_pl_insert_finfo() local
289 finfo->filename = str + parser->offsets.filename; in ftp_pl_insert_finfo()
290 finfo->strings.group = parser->offsets.group ? in ftp_pl_insert_finfo()
291 str + parser->offsets.group : NULL; in ftp_pl_insert_finfo()
292 finfo->strings.perm = parser->offsets.perm ? in ftp_pl_insert_finfo()
[all …]
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3parser.c38 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 …]
Dantlr3treeparser.c42 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/pdfium/third_party/freetype/src/type1/
Dt1parse.c136 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/jsmn/
Djsmn.c8 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/mesa3d/src/compiler/glsl/glcpp/
Dglcpp-parse.y36 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,
52 _string_list_create(glcpp_parser_t *parser);
55 _string_list_append_item(glcpp_parser_t *parser, string_list_t *list,
71 _argument_list_create(glcpp_parser_t *parser);
74 _argument_list_append(glcpp_parser_t *parser, argument_list_t *list,
84 _token_create_str(glcpp_parser_t *parser, int type, char *str);
87 _token_create_ival(glcpp_parser_t *parser, int type, int ival);
90 _token_list_create(glcpp_parser_t *parser);
[all …]
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Drtcp_packet_unittest.cc55 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 …]
Drtcp_sender_unittest.cc251 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 …]
Dh264_sps_parser.cc65 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/antlr/antlr-3.4/runtime/Ruby/test/functional/parser/
Dbasic.rb40 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/python/cpython2/Lib/test/
Dtest_pyexpat.py15 self.parser = expat.ParserCreate(namespace_separator='!')
18 self.assertIs(self.parser.buffer_text, False)
20 self.parser.buffer_text = x
21 self.assertIs(self.parser.buffer_text, bool(x))
24 self.assertIs(self.parser.namespace_prefixes, False)
26 self.parser.namespace_prefixes = x
27 self.assertIs(self.parser.namespace_prefixes, bool(x))
30 self.assertIs(self.parser.returns_unicode, test_support.have_unicode)
32 self.parser.returns_unicode = x
33 self.assertIs(self.parser.returns_unicode, bool(x))
[all …]
Dtest_optparse.py63 (options, positional_args) = self.parser.parse_args(args)
145 self.parser.parse_args(cmdline_args)
164 self.parser.parse_args(cmdline_args)
187 def assertHelp(self, parser, expected_help): argument
188 actual_help = parser.format_help()
203 self.parser = OptionParser(usage=SUPPRESS_USAGE)
327 self.parser = OptionParser()
328 self.parser.add_option("-v", "--verbose", "-n", "--noisy",
330 self.parser.add_option("-q", "--quiet", "--silent",
334 self.assertTypeError(self.parser.add_option,
[all …]
/external/expat/tests/
Druntests.c36 static XML_Parser parser; variable
42 parser = XML_ParserCreate(NULL); in basic_setup()
43 if (parser == NULL) in basic_setup()
50 if (parser != NULL) in basic_teardown()
51 XML_ParserFree(parser); in basic_teardown()
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()
68 XML_GetCurrentLineNumber(parser), in _xml_failure()
69 XML_GetCurrentColumnNumber(parser), in _xml_failure()
75 _XML_Parse_SINGLE_BYTES(XML_Parser parser, const char *s, int len, int isFinal) in _XML_Parse_SINGLE_BYTES() argument
[all …]
/external/pdfium/third_party/freetype/src/cid/
Dcidparse.c51 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/
Dautoserv.py72 def _get_machines(parser): argument
80 if parser.options.machines:
81 machines = parser.options.machines.replace(',', ' ').strip().split()
84 machines_file = parser.options.machines_file
98 parser.parser.error("Invalid machine: %s" % str(machine))
104 def _stage_ssp(parser): argument
123 machines_list = _get_machines(parser)
125 machines_list, parser.options.lab, parser.options.host_attributes)
130 'image': (parser.options.test_source_build or
131 parser.options.image),}
[all …]
Dautoserv72 def _get_machines(parser): argument
80 if parser.options.machines:
81 machines = parser.options.machines.replace(',', ' ').strip().split()
84 machines_file = parser.options.machines_file
98 parser.parser.error("Invalid machine: %s" % str(machine))
104 def _stage_ssp(parser): argument
123 machines_list = _get_machines(parser)
125 machines_list, parser.options.lab, parser.options.host_attributes)
130 'image': (parser.options.test_source_build or
131 parser.options.image),}
[all …]
Dautoserv_parser.py19 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 …]
/external/libchrome/base/json/
Djson_parser_unittest.cc21 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/libmojo/mojo/public/tools/bindings/pylib/mojom_tests/parse/
Dparser_unittest.py26 import mojom.parse.parser as parser namespace
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")
109 parser.ParseError,
[all …]
/external/antlr/antlr-3.4/runtime/Python/tests/
Dt014parser.py14 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/python/cpython2/Modules/expat/
Dexpat.h155 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/expat/lib/
Dexpat.h155 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/webrtc/webrtc/tools/frame_editing/
Dframe_editing.cc63 webrtc::test::CommandLineParser parser; in main() local
66 parser.Init(argc, argv); in main()
67 parser.SetUsageMessage(usage); in main()
68 parser.SetFlag("in_path", "-1"); in main()
69 parser.SetFlag("width", "-1"); in main()
70 parser.SetFlag("height", "-1"); in main()
71 parser.SetFlag("f", "-1"); in main()
72 parser.SetFlag("interval", "-1"); in main()
73 parser.SetFlag("l", "-1"); in main()
74 parser.SetFlag("out_path", "edited_output.yuv"); in main()
[all …]

12345678910>>...87