/external/chromium_org/v8/test/mjsunit/ |
D | date.js | 39 var date0 = Date.parse("Dec 25 1995 1:30"); 40 var date1 = Date.parse("Dec 25, 1995 1:30"); 41 var date2 = Date.parse("Dec 25 1995, 1:30"); 42 var date3 = Date.parse("Dec 25, 1995, 1:30"); 209 assertEquals(0, Date.parse("1970-01-01T00:00:00.000+00:00")); 210 assertEquals(0, Date.parse("1970-01-01T00:00:00.000-00:00")); 211 assertEquals(0, Date.parse("1970-01-01T00:00:00.000Z")); 212 assertEquals(0, Date.parse("1970-01-01T00:00:00.000")); 213 assertEquals(0, Date.parse("1970-01-01T00:00:00")); 214 assertEquals(0, Date.parse("1970-01-01T00:00")); [all …]
|
D | json.js | 92 assertEquals({}, JSON.parse("{}")); 93 assertEquals({42:37}, JSON.parse('{"42":37}')); 94 assertEquals(null, JSON.parse("null")); 95 assertEquals(true, JSON.parse("true")); 96 assertEquals(false, JSON.parse("false")); 97 assertEquals("foo", JSON.parse('"foo"')); 98 assertEquals("f\no", JSON.parse('"f\\no"')); 100 JSON.parse('"\\b\\f\\n\\r\\t\\"\\u2028\\/\\\\"')); 101 assertEquals([1.1], JSON.parse("[1.1]")); 102 assertEquals([1], JSON.parse("[1.0]")); [all …]
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/ast-output/ |
D | rewrites.rb | 8 def parse( grammar, rule, input, expect_errors = false ) method in TestASTViaRewriteRules 60 result = parse( <<-'END', :a, 'abc 34' ) 73 result = parse( <<-'END', :a, 'abc' ) 87 result = parse( <<-'END', :a, 'abc' ) 101 result = parse( <<-'END', :a, 'abc' ) 115 result = parse( <<-'END', :a, 'abc' ) 128 result = parse( <<-'END', :a, 'c' ) 142 result = parse( <<-'END', :a, 'ick' ) 156 result = parse( <<-'END', :a, 'abc' ) 171 result = parse( <<-'END', :a, 'abc 34' ) [all …]
|
D | auto-ast.rb | 8 def parse( grammar, rule, input, expect_errors = false ) method in TestAutoAST 61 result = parse( <<-'END', :a, 'abc 34' ) 73 result = parse( <<-'END', :a, 'abc 34' ) 85 result = parse( <<-'END', :a, 'abc 34' ) 97 result = parse( <<-'END', :a, '34 abc' ) 109 result = parse( <<-'END', :a, 'abc 34 dag 4532' ) 122 result = parse( <<-'END', :a, 'a 1 b' ) 134 result = parse( <<-'END', :a, 'void foo;' ) 146 result = parse( <<-'END', :a, 'void foo;' ) 158 result = parse( <<-'END', :a, 'void foo;' ) [all …]
|
D | hetero-nodes.rb | 593 def parse( grammar_name, grammar_rule, input ) method in TestHeterogeneousNodeTypes 621 result = parse( :VToken, :a, 'a' ) 627 result = parse( :TokenWithQualifiedType, :a, 'a' ) 633 result = parse( :TokenWithLabel, :a, 'a' ) 639 result = parse( :TokenWithListLabel, :a, 'a' ) 645 result = parse( :TokenRoot, :a, 'a' ) 651 result = parse( :TokenRootWithListLabel, :a, 'a' ) 657 result = parse( :FromString, :a, 'begin' ) 663 result = parse( :StringRoot, :a, 'begin' ) 669 result = parse( :RewriteToken, :a, 'a' ) [all …]
|
/external/chromium_org/v8/test/webkit/ |
D | date-parse-comments-test-expected.txt | 29 PASS Date.parse("Dec ((27) 26 (24)) 25 1995 1:30 PM UTC") == 819898200000 is true 30 PASS Date.parse("DEC ((27) 26 (24)) 25 1995 1:30 PM UTC") == 819898200000 is true 31 PASS Date.parse("dec ((27) 26 (24)) 25 1995 1:30 pm utc") == 819898200000 is true 32 PASS Date.parse("Dec 25 1995 1:30 PM UTC (") == 819898200000 is true 33 PASS Date.parse("DEC 25 1995 1:30 PM UTC (") == 819898200000 is true 34 PASS Date.parse("dec 25 1995 1:30 pm utc (") == 819898200000 is true 35 PASS Date.parse("Dec 25 1995 1:30 (PM)) UTC") is NaN 36 PASS Date.parse("DEC 25 1995 1:30 (PM)) UTC") is NaN 37 PASS Date.parse("dec 25 1995 1:30 (pm)) utc") is NaN 38 PASS Date.parse("(Nov) Dec (24) 25 (26) 1995 (1996) GMT (EST)") == 819849600000 is true [all …]
|
/external/antlr/antlr-3.4/runtime/Python/tests/ |
D | t042ast.py | 25 def parse(self, text, method, rArgs=[], **kwargs): member in t042ast 40 r = self.parse("1 + 2", 'r1') 48 r = self.parse("assert 2+3;", 'r2') 56 r = self.parse("assert 2+3 : 5;", 'r2') 64 r = self.parse("if 1 fooze", 'r3') 72 r = self.parse("if 1 fooze else fooze", 'r3') 80 r = self.parse("while 2 fooze", 'r4') 88 r = self.parse("return;", 'r5') 96 r = self.parse("return 2+3;", 'r5') 104 r = self.parse("3", 'r6') [all …]
|
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
D | LevelTest.java | 112 assertSame(Level.SEVERE, Level.parse("SEVERE")); in testParse_PredefinedConstStrings() 113 assertSame(Level.WARNING, Level.parse("WARNING")); in testParse_PredefinedConstStrings() 114 assertSame(Level.INFO, Level.parse("INFO")); in testParse_PredefinedConstStrings() 115 assertSame(Level.CONFIG, Level.parse("CONFIG")); in testParse_PredefinedConstStrings() 116 assertSame(Level.FINE, Level.parse("FINE")); in testParse_PredefinedConstStrings() 117 assertSame(Level.FINER, Level.parse("FINER")); in testParse_PredefinedConstStrings() 118 assertSame(Level.FINEST, Level.parse("FINEST")); in testParse_PredefinedConstStrings() 119 assertSame(Level.OFF, Level.parse("OFF")); in testParse_PredefinedConstStrings() 120 assertSame(Level.ALL, Level.parse("ALL")); in testParse_PredefinedConstStrings() 128 Level.parse("SEVERe"); in testParse_IllegalConstString() [all …]
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src/org/eclipse/releng/ |
D | ElementParser.java | 57 public void parse(String xmlFile){ in parse() method in ElementParser 61 parser.parse(xmlFile,this); in parse() 70 public void parse(String install, String type, String id){ in parse() method in ElementParser 82 parse(xmlFile); in parse() 107 xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform-feature"); in main() 108 xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform.win32-feature"); in main() 109 … xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform.linux.motif-feature"); in main() 110 … xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform.linux.gtk-feature"); in main() 111 … xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform.solaris.motif-feature"); in main() 112 … xmlParser.parse("l:/vabase/team/sonia", "feature", "org.eclipse.platform.aix.motif-feature"); in main() [all …]
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/style/ |
D | optparser_unittest.py | 77 return parser.parse(args) 100 parse = self._parse 106 self.assertRaises(SystemExit, parse, ['--help']) 108 self.assertRaises(SystemExit, parse, ['--filter=']) 111 parse = self._parse 114 self.assertRaises(SystemExit, parse, ['--bad']) 117 self.assertRaises(SystemExit, parse, ['--min-confidence=bad']) 120 self.assertRaises(SystemExit, parse, ['--min-confidence=0']) 123 self.assertRaises(SystemExit, parse, ['--min-confidence=6']) 126 parse(['--min-confidence=1']) # works [all …]
|
/external/chromium_org/v8/test/mjsunit/regress/ |
D | regress-944.js | 31 assertEquals(1290722550521, Date.parse("2010-11-25T22:02:30.521Z")); 35 assertEquals(1290722550500, Date.parse("2010-11-25T22:02:30.5Z")); 36 assertEquals(1290722550520, Date.parse("2010-11-25T22:02:30.52Z")); 37 assertFalse(Date.parse("2010-11-25T22:02:30.5Z") === Date.parse("2010-11-25T22:02:30.005Z")); 40 assertEquals(Date.parse("2010-11-25T22:02:30.1005Z"), Date.parse("2010-11-25T22:02:30.100Z")); 43 assertEquals(Date.parse("2010-11-25T22:02:30.999Z"), Date.parse("2010-11-25T22:02:30.99999999999999… 46 assertTrue(isNaN(Date.parse("2010-11-25T22:02:30.Z")));
|
D | regress-857.js | 30 assertEquals(1283326536000, Date.parse("2010-08-31T22:35:36-09:00")); 31 assertEquals(1283261736000, Date.parse("2010-08-31T22:35:36+09:00")); 32 assertEquals(1283326536000, Date.parse("2010-08-31T22:35:36.0-09:00")); 33 assertEquals(1283261736000, Date.parse("2010-08-31T22:35:36.0+09:00")); 36 assertEquals(1283326536000, Date.parse("2010-08-31T22:35:36-0900")); 37 assertEquals(1283261736000, Date.parse("2010-08-31T22:35:36+0900"));
|
D | regress-crbug-158185.js | 29 Object.keys(JSON.parse('{"0023456": 1}'))[0]); 31 Object.keys(JSON.parse('{"1234567890123": 1}'))[0]); 33 Object.keys(JSON.parse('{"123456789ABCD": 1}'))[0]); 35 Object.keys(JSON.parse('{"12A": 1}'))[0]); 37 assertEquals(1, JSON.parse('{"0":1}')[0]); 38 assertEquals(undefined, JSON.parse('{"00":1}')[0]);
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/tgsi/ |
D | tgsi_iterate.c | 36 struct tgsi_parse_context parse; in tgsi_iterate_shader() local 38 if (tgsi_parse_init( &parse, tokens ) != TGSI_PARSE_OK) in tgsi_iterate_shader() 41 ctx->processor = parse.FullHeader.Processor; in tgsi_iterate_shader() 47 while (!tgsi_parse_end_of_tokens( &parse )) { in tgsi_iterate_shader() 48 tgsi_parse_token( &parse ); in tgsi_iterate_shader() 50 switch (parse.FullToken.Token.Type) { in tgsi_iterate_shader() 53 if (!ctx->iterate_instruction( ctx, &parse.FullToken.FullInstruction )) in tgsi_iterate_shader() 59 if (!ctx->iterate_declaration( ctx, &parse.FullToken.FullDeclaration )) in tgsi_iterate_shader() 65 if (!ctx->iterate_immediate( ctx, &parse.FullToken.FullImmediate )) in tgsi_iterate_shader() 71 if (!ctx->iterate_property( ctx, &parse.FullToken.FullProperty )) in tgsi_iterate_shader() [all …]
|
D | tgsi_scan.c | 55 struct tgsi_parse_context parse; in tgsi_scan_shader() local 64 if (tgsi_parse_init( &parse, tokens ) != TGSI_PARSE_OK) { in tgsi_scan_shader() 68 procType = parse.FullHeader.Processor.Processor; in tgsi_scan_shader() 78 while( !tgsi_parse_end_of_tokens( &parse ) ) { in tgsi_scan_shader() 82 tgsi_parse_token( &parse ); in tgsi_scan_shader() 84 switch( parse.FullToken.Token.Type ) { in tgsi_scan_shader() 88 = &parse.FullToken.FullInstruction; in tgsi_scan_shader() 146 = &parse.FullToken.FullDeclaration; in tgsi_scan_shader() 230 = &parse.FullToken.FullProperty; in tgsi_scan_shader() 266 tgsi_parse_free (&parse); in tgsi_scan_shader() [all …]
|
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
D | tgsi_iterate.c | 36 struct tgsi_parse_context parse; in tgsi_iterate_shader() local 38 if (tgsi_parse_init( &parse, tokens ) != TGSI_PARSE_OK) in tgsi_iterate_shader() 41 ctx->processor = parse.FullHeader.Processor; in tgsi_iterate_shader() 47 while (!tgsi_parse_end_of_tokens( &parse )) { in tgsi_iterate_shader() 48 tgsi_parse_token( &parse ); in tgsi_iterate_shader() 50 switch (parse.FullToken.Token.Type) { in tgsi_iterate_shader() 53 if (!ctx->iterate_instruction( ctx, &parse.FullToken.FullInstruction )) in tgsi_iterate_shader() 59 if (!ctx->iterate_declaration( ctx, &parse.FullToken.FullDeclaration )) in tgsi_iterate_shader() 65 if (!ctx->iterate_immediate( ctx, &parse.FullToken.FullImmediate )) in tgsi_iterate_shader() 71 if (!ctx->iterate_property( ctx, &parse.FullToken.FullProperty )) in tgsi_iterate_shader() [all …]
|
D | tgsi_scan.c | 55 struct tgsi_parse_context parse; in tgsi_scan_shader() local 64 if (tgsi_parse_init( &parse, tokens ) != TGSI_PARSE_OK) { in tgsi_scan_shader() 68 procType = parse.FullHeader.Processor.Processor; in tgsi_scan_shader() 78 while( !tgsi_parse_end_of_tokens( &parse ) ) { in tgsi_scan_shader() 82 tgsi_parse_token( &parse ); in tgsi_scan_shader() 84 switch( parse.FullToken.Token.Type ) { in tgsi_scan_shader() 88 = &parse.FullToken.FullInstruction; in tgsi_scan_shader() 146 = &parse.FullToken.FullDeclaration; in tgsi_scan_shader() 230 = &parse.FullToken.FullProperty; in tgsi_scan_shader() 266 tgsi_parse_free (&parse); in tgsi_scan_shader() [all …]
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/template-output/ |
D | template-output.rb | 8 def parse( grammar, input, options = nil ) method in TestTemplateOutput 29 ANTLR3::Template::Group.parse( source.fixed_indent( 0 ) ) 34 text = parse( <<-'END', "abc 34" ) 61 text = parse( <<-'END', 'a + b', :templates => templates ) 82 text = parse( <<-'END', 'abc 34' ) 101 text = parse( <<-'END', "abc def ghi" ) 122 text = parse( <<-'END', "abc" ) 140 text = parse( <<-'END', 'abc' ) 185 text = parse( <<-'END', 'abc', :templates => templates ) 206 text = parse( <<-'END', 'b 34' ) [all …]
|
/external/wpa_supplicant_8/src/rsn_supp/ |
D | wpa_ft.c | 380 struct wpa_ft_ies parse; in wpa_ft_process_response() local 411 if (wpa_ft_parse_ies(ies, ies_len, &parse) < 0) { in wpa_ft_process_response() 416 mdie = (struct rsn_mdie *) parse.mdie; in wpa_ft_process_response() 417 if (mdie == NULL || parse.mdie_len < sizeof(*mdie) || in wpa_ft_process_response() 424 ftie = (struct rsn_ftie *) parse.ftie; in wpa_ft_process_response() 425 if (ftie == NULL || parse.ftie_len < sizeof(*ftie)) { in wpa_ft_process_response() 439 if (parse.r0kh_id == NULL) { in wpa_ft_process_response() 444 if (parse.r0kh_id_len != sm->r0kh_id_len || in wpa_ft_process_response() 445 os_memcmp_const(parse.r0kh_id, sm->r0kh_id, parse.r0kh_id_len) != 0) in wpa_ft_process_response() 450 parse.r0kh_id, parse.r0kh_id_len); in wpa_ft_process_response() [all …]
|
/external/wpa_supplicant_8/src/eap_server/ |
D | eap_server_ttls.c | 148 static int eap_ttls_avp_parse(struct wpabuf *buf, struct eap_ttls_avp *parse) in eap_ttls_avp_parse() argument 156 os_memset(parse, 0, sizeof(*parse)); in eap_ttls_avp_parse() 200 if (parse->eap == NULL) { in eap_ttls_avp_parse() 201 parse->eap = os_malloc(dlen); in eap_ttls_avp_parse() 202 if (parse->eap == NULL) { in eap_ttls_avp_parse() 208 os_memcpy(parse->eap, dpos, dlen); in eap_ttls_avp_parse() 209 parse->eap_len = dlen; in eap_ttls_avp_parse() 211 u8 *neweap = os_realloc(parse->eap, in eap_ttls_avp_parse() 212 parse->eap_len + dlen); in eap_ttls_avp_parse() 219 os_memcpy(neweap + parse->eap_len, dpos, dlen); in eap_ttls_avp_parse() [all …]
|
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | MediaTypeTest.java | 38 MediaType mediaType = MediaType.parse("text/plain;boundary=foo;charset=utf-8"); in testParse() 43 assertTrue(mediaType.equals(MediaType.parse("text/plain;boundary=foo;charset=utf-8"))); in testParse() 45 MediaType.parse("text/plain;boundary=foo;charset=utf-8").hashCode()); in testParse() 88 MediaType mediaType = MediaType.parse( in testParseWithSpecialCharacters() 95 MediaType mediaType = MediaType.parse("text/plain;a=1;b=2;charset=utf-8;c=3"); in testCharsetIsOneOfManyParameters() 102 MediaType mediaType = MediaType.parse( in testCharsetAndQuoting() 109 MediaType.parse("text/plain; charset=utf-8; charset=utf-16"); in testMultipleCharsets() 116 MediaType mediaType = MediaType.parse("text/plain; charset=\"!@#$%^&*()\""); in testIllegalCharsetName() 125 MediaType mediaType = MediaType.parse("text/plain; charset=utf-wtf"); in testUnsupportedCharset() 134 MediaType noCharset = MediaType.parse("text/plain"); in testDefaultCharset() [all …]
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/debugging/ |
D | debug-mode.rb | 66 def parse( grammar, rule, input, options = {} ) method in TestDebugGrammars 99 parse( grammar, :a, 'a', :listener => listener ) 121 debugger = parse( grammar, :a, 'a' ) 151 debugger = parse( grammar, :a, "a b" ) 189 debugger = parse( grammar, :a, "a" ) 223 debugger = parse( grammar, :a, "a 1 b c 3" ) 294 debugger = parse( grammar, :a, "a 1 b c 3" ) 364 debugger = parse( grammar, :a, "a" ) 403 debugger = parse( grammar, :a, "a 1" ) 456 debugger = parse( grammar, :a, "a !" ) [all …]
|
/external/jsilver/src/com/google/streamhtmlparser/ |
D | HtmlParserFactory.java | 261 parserInDefaultAttr.parse("<xparsertag htmlparser="); in initializeParsers() 262 parserInDefaultAttrQ.parse("<xparsertag htmlparser=\""); in initializeParsers() 265 parserInUriAttrComplete.parse("<xparsertag src="); in initializeParsers() 266 parserInUriAttrQComplete.parse("<xparsertag src=\""); in initializeParsers() 273 parserInUriAttrPartial.parse("<xparsertag src=" + fakeUrlPrefix); in initializeParsers() 274 parserInUriAttrQPartial.parse("<xparsertag src=\"" + fakeUrlPrefix); in initializeParsers() 279 parserInJsAttr.parse("<xparsertag onmouse="); in initializeParsers() 280 parserInJsAttrQ.parse("<xparsertag onmouse=\""); in initializeParsers() 282 parserInQJsAttr.parse("<xparsertag onmouse=\"'"); in initializeParsers() 286 parserInJsQ.parse("var fakeparservar='"); in initializeParsers() [all …]
|
/external/llvm/lib/Support/ |
D | regcomp.c | 56 struct parse { struct 70 static void p_ere(struct parse *, int); argument 71 static void p_ere_exp(struct parse *); 72 static void p_str(struct parse *); 73 static void p_bre(struct parse *, int, int); 74 static int p_simp_re(struct parse *, int); 75 static int p_count(struct parse *); 76 static void p_bracket(struct parse *); 77 static void p_b_term(struct parse *, cset *); 78 static void p_b_cclass(struct parse *, cset *); [all …]
|
/external/libphonenumber/java/test/com/android/i18n/phonenumbers/ |
D | PhoneNumberUtilTest.java | 912 PhoneNumber number5 = phoneUtil.parse("+442087654321", RegionCode.GB); in testFormatInOriginalFormat() 1695 assertEquals(NZ_NUMBER, phoneUtil.parse("033316005", RegionCode.NZ)); in testParseNationalNumber() 1696 assertEquals(NZ_NUMBER, phoneUtil.parse("33316005", RegionCode.NZ)); in testParseNationalNumber() 1698 assertEquals(NZ_NUMBER, phoneUtil.parse("03-331 6005", RegionCode.NZ)); in testParseNationalNumber() 1699 assertEquals(NZ_NUMBER, phoneUtil.parse("03 331 6005", RegionCode.NZ)); in testParseNationalNumber() 1701 assertEquals(NZ_NUMBER, phoneUtil.parse("tel:03-331-6005;phone-context=+64", RegionCode.NZ)); in testParseNationalNumber() 1702 assertEquals(NZ_NUMBER, phoneUtil.parse("tel:331-6005;phone-context=+64-3", RegionCode.NZ)); in testParseNationalNumber() 1703 assertEquals(NZ_NUMBER, phoneUtil.parse("tel:331-6005;phone-context=+64-3", RegionCode.US)); in testParseNationalNumber() 1706 assertEquals(NZ_NUMBER, phoneUtil.parse("tel:03-331-6005;phone-context=+64;a=%A1", in testParseNationalNumber() 1709 assertEquals(NZ_NUMBER, phoneUtil.parse("tel:03-331-6005;isub=12345;phone-context=+64", in testParseNationalNumber() [all …]
|