Home
last modified time | relevance | path

Searched refs:parse (Results 1 – 25 of 1928) sorted by relevance

12345678910>>...78

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DHttpUrlTest.java37 HttpUrl expected = HttpUrl.parse("http://host/"); in parseTrimsAsciiWhitespace()
38 assertEquals(expected, HttpUrl.parse("http://host/\f\n\t \r")); // Leading. in parseTrimsAsciiWhitespace()
39 assertEquals(expected, HttpUrl.parse("\r\n\f \thttp://host/")); // Trailing. in parseTrimsAsciiWhitespace()
40 assertEquals(expected, HttpUrl.parse(" http://host/ ")); // Both. in parseTrimsAsciiWhitespace()
41 assertEquals(expected, HttpUrl.parse(" http://host/ ")); // Both. in parseTrimsAsciiWhitespace()
42 assertEquals(expected, HttpUrl.parse("http://host/").resolve(" ")); in parseTrimsAsciiWhitespace()
43 assertEquals(expected, HttpUrl.parse("http://host/").resolve(" . ")); in parseTrimsAsciiWhitespace()
48 assertNull(HttpUrl.parse("http://" + host + "/")); in parseHostAsciiNonPrintable()
53 assertEquals("/%0B", HttpUrl.parse("http://h/\u000b").encodedPath()); // line tabulation in parseDoesNotTrimOtherWhitespaceCharacters()
54 assertEquals("/%1C", HttpUrl.parse("http://h/\u001c").encodedPath()); // information separator 4 in parseDoesNotTrimOtherWhitespaceCharacters()
[all …]
DMediaTypeTest.java38 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()
91 MediaType mediaType = MediaType.parse( in testParseWithSpecialCharacters()
98 MediaType mediaType = MediaType.parse("text/plain;a=1;b=2;charset=utf-8;c=3"); in testCharsetIsOneOfManyParameters()
105 MediaType mediaType = MediaType.parse( in testCharsetAndQuoting()
111 MediaType mediaType = MediaType.parse("text/plain; charset=utf-8; charset=UTF-8"); in testDuplicatedCharsets()
117 MediaType.parse("text/plain; charset=utf-8; charset=utf-16"); in testMultipleCharsets()
124 MediaType mediaType = MediaType.parse("text/plain; charset=\"!@#$%^&*()\""); in testIllegalCharsetName()
133 MediaType mediaType = MediaType.parse("text/plain; charset=utf-wtf"); in testUnsupportedCharset()
[all …]
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/ast-output/
Drewrites.rb8 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 …]
Dauto-ast.rb8 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 …]
Dhetero-nodes.rb593 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/guava/guava-gwt/test-super/com/google/common/net/super/com/google/common/net/
DMediaTypeTest.java103 assertEquals("text", MediaType.parse("text/plain").type()); in testGetType()
105 MediaType.parse("application/atom+xml; charset=utf-8").type()); in testGetType()
109 assertEquals("plain", MediaType.parse("text/plain").subtype()); in testGetSubtype()
111 MediaType.parse("application/atom+xml; charset=utf-8").subtype()); in testGetSubtype()
118 assertEquals(ImmutableListMultimap.of(), MediaType.parse("text/plain").parameters()); in testGetParameters()
120 MediaType.parse("application/atom+xml; charset=utf-8").parameters()); in testGetParameters()
122 MediaType.parse("application/atom+xml; a=1; a=2; b=3").parameters()); in testGetParameters()
126 assertSame(MediaType.parse("image/gif"), in testWithoutParameters()
127 MediaType.parse("image/gif").withoutParameters()); in testWithoutParameters()
128 assertEquals(MediaType.parse("image/gif"), in testWithoutParameters()
[all …]
/external/antlr/antlr-3.4/runtime/Python/tests/
Dt042ast.py25 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/guava/guava-tests/test/com/google/common/net/
DMediaTypeTest.java65 assertSame(constant, MediaType.parse(constant.toString())); in testParse_useConstants()
163 assertEquals("text", MediaType.parse("text/plain").type());
165 MediaType.parse("application/atom+xml; charset=utf-8").type());
169 assertEquals("plain", MediaType.parse("text/plain").subtype());
171 MediaType.parse("application/atom+xml; charset=utf-8").subtype());
178 assertEquals(ImmutableListMultimap.of(), MediaType.parse("text/plain").parameters());
180 MediaType.parse("application/atom+xml; charset=utf-8").parameters());
182 MediaType.parse("application/atom+xml; a=1; a=2; b=3").parameters());
186 assertSame(MediaType.parse("image/gif"),
187 MediaType.parse("image/gif").withoutParameters());
[all …]
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/
DLevelTest.java112 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/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderSpecTest.java19 import static com.google.common.cache.CacheBuilderSpec.parse;
38 CacheBuilderSpec spec = parse(""); in testParse_empty()
51 CacheBuilderSpec spec = parse("initialCapacity=10"); in testParse_initialCapacity()
66 parse("initialCapacity=10, initialCapacity=20"); in testParse_initialCapacityRepeated()
74 CacheBuilderSpec spec = parse("maximumSize=9000"); in testParse_maximumSize()
88 parse("maximumSize=10, maximumSize=20"); in testParse_maximumSizeRepeated()
96 CacheBuilderSpec spec = parse("maximumWeight=9000"); in testParse_maximumWeight()
110 parse("maximumWeight=10, maximumWeight=20"); in testParse_maximumWeightRepeated()
119 parse("maximumSize=10, maximumWeight=20"); in testParse_maximumSizeAndMaximumWeight()
127 CacheBuilderSpec spec = parse("concurrencyLevel=32"); in testParse_concurrencyLevel()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DHttpDateTest.java47 assertEquals(0L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT").getTime()); in parseStandardFormats()
48 assertEquals(1402057830000L, HttpDate.parse("Fri, 06 Jun 2014 12:30:30 GMT").getTime()); in parseStandardFormats()
51 assertEquals(0L, HttpDate.parse("Thursday, 01-Jan-70 00:00:00 GMT").getTime()); in parseStandardFormats()
52 assertEquals(1402057830000L, HttpDate.parse("Friday, 06-Jun-14 12:30:30 GMT").getTime()); in parseStandardFormats()
55 assertEquals(0L, HttpDate.parse("Thu Jan 1 00:00:00 1970").getTime()); in parseStandardFormats()
56 assertEquals(1402057830000L, HttpDate.parse("Fri Jun 6 12:30:30 2014").getTime()); in parseStandardFormats()
66 assertEquals(3600000L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT-01:00").getTime()); in parseNonStandardStrings()
67 assertEquals(28800000L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 PST").getTime()); in parseNonStandardStrings()
69 assertEquals(0L, HttpDate.parse("Thu, 01 Jan 1970 00:00:00 GMT JUNK").getTime()); in parseNonStandardStrings()
71 assertNull(HttpDate.parse("Thu, 01 Jan 1970 00:00:00")); in parseNonStandardStrings()
[all …]
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_iterate.c36 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 …]
/external/wpa_supplicant_8/src/rsn_supp/
Dwpa_ft.c376 struct wpa_ft_ies parse; in wpa_ft_process_response() local
407 if (wpa_ft_parse_ies(ies, ies_len, &parse) < 0) { in wpa_ft_process_response()
412 mdie = (struct rsn_mdie *) parse.mdie; in wpa_ft_process_response()
413 if (mdie == NULL || parse.mdie_len < sizeof(*mdie) || in wpa_ft_process_response()
420 ftie = (struct rsn_ftie *) parse.ftie; in wpa_ft_process_response()
421 if (ftie == NULL || parse.ftie_len < sizeof(*ftie)) { in wpa_ft_process_response()
435 if (parse.r0kh_id == NULL) { in wpa_ft_process_response()
440 if (parse.r0kh_id_len != sm->r0kh_id_len || in wpa_ft_process_response()
441 os_memcmp_const(parse.r0kh_id, sm->r0kh_id, parse.r0kh_id_len) != 0) in wpa_ft_process_response()
446 parse.r0kh_id, parse.r0kh_id_len); in wpa_ft_process_response()
[all …]
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/template-output/
Dtemplate-output.rb8 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/python/cpython2/Lib/xml/etree/
DElementInclude.py77 def default_loader(href, parse, encoding=None): argument
79 if parse == "xml":
80 data = ElementTree.parse(file).getroot()
108 parse = e.get("parse", "xml")
109 if parse == "xml":
110 node = loader(href, parse)
113 "cannot load %r as %r" % (href, parse)
119 elif parse == "text":
120 text = loader(href, parse, e.get("encoding"))
123 "cannot load %r as %r" % (href, parse)
[all …]
/external/libphonenumber/libphonenumber/test/com/google/i18n/phonenumbers/
DShortNumberInfoTest.java34 shortInfo.isPossibleShortNumberForRegion(parse("123456", RegionCode.FR), RegionCode.FR)); in testIsPossibleShortNumber()
49 assertTrue(shortInfo.isValidShortNumberForRegion(parse("1010", RegionCode.FR), RegionCode.FR)); in testIsValidShortNumber()
53 shortInfo.isValidShortNumberForRegion(parse("123456", RegionCode.FR), RegionCode.FR)); in testIsValidShortNumber()
65 shortInfo.isCarrierSpecificForRegion(parse("33669", RegionCode.US), RegionCode.US)); in testIsCarrierSpecific()
71 shortInfo.isCarrierSpecificForRegion(parse("911", RegionCode.US), RegionCode.US)); in testIsCarrierSpecific()
86 parse(premiumRateExample, RegionCode.FR), RegionCode.FR)); in testGetExpectedCost()
95 parse(standardRateExample, RegionCode.FR), RegionCode.FR)); in testGetExpectedCost()
104 shortInfo.getExpectedCostForRegion(parse(tollFreeExample, RegionCode.FR), RegionCode.FR)); in testGetExpectedCost()
111 shortInfo.getExpectedCostForRegion(parse("12345", RegionCode.FR), RegionCode.FR)); in testGetExpectedCost()
119 shortInfo.isValidShortNumberForRegion(parse("116123", RegionCode.FR), RegionCode.FR)); in testGetExpectedCost()
[all …]
DPhoneNumberUtilTest.java962 PhoneNumber number5 = phoneUtil.parse("+442087654321", RegionCode.GB); in testFormatInOriginalFormat()
1731 assertEquals(NZ_NUMBER, phoneUtil.parse("033316005", RegionCode.NZ)); in testParseNationalNumber()
1732 assertEquals(NZ_NUMBER, phoneUtil.parse("33316005", RegionCode.NZ)); in testParseNationalNumber()
1734 assertEquals(NZ_NUMBER, phoneUtil.parse("03-331 6005", RegionCode.NZ)); in testParseNationalNumber()
1735 assertEquals(NZ_NUMBER, phoneUtil.parse("03 331 6005", RegionCode.NZ)); in testParseNationalNumber()
1737 assertEquals(NZ_NUMBER, phoneUtil.parse("tel:03-331-6005;phone-context=+64", RegionCode.NZ)); in testParseNationalNumber()
1738 assertEquals(NZ_NUMBER, phoneUtil.parse("tel:331-6005;phone-context=+64-3", RegionCode.NZ)); in testParseNationalNumber()
1739 assertEquals(NZ_NUMBER, phoneUtil.parse("tel:331-6005;phone-context=+64-3", RegionCode.US)); in testParseNationalNumber()
1740 assertEquals(NZ_NUMBER, phoneUtil.parse( in testParseNationalNumber()
1744 assertEquals(NZ_NUMBER, phoneUtil.parse("tel:03-331-6005;phone-context=+64;a=%A1", in testParseNationalNumber()
[all …]
/external/wpa_supplicant_8/src/eap_server/
Deap_server_ttls.c178 static int eap_ttls_avp_parse(struct wpabuf *buf, struct eap_ttls_avp *parse) in eap_ttls_avp_parse() argument
186 os_memset(parse, 0, sizeof(*parse)); in eap_ttls_avp_parse()
230 if (parse->eap == NULL) { in eap_ttls_avp_parse()
231 parse->eap = os_malloc(dlen); in eap_ttls_avp_parse()
232 if (parse->eap == NULL) { in eap_ttls_avp_parse()
238 os_memcpy(parse->eap, dpos, dlen); in eap_ttls_avp_parse()
239 parse->eap_len = dlen; in eap_ttls_avp_parse()
241 u8 *neweap = os_realloc(parse->eap, in eap_ttls_avp_parse()
242 parse->eap_len + dlen); in eap_ttls_avp_parse()
249 os_memcpy(neweap + parse->eap_len, dpos, dlen); in eap_ttls_avp_parse()
[all …]
/external/swiftshader/third_party/LLVM/lib/Support/
Dregcomp.c56 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/llvm/lib/Support/
Dregcomp.c64 struct parse { struct
78 static void p_ere(struct parse *, int); argument
79 static void p_ere_exp(struct parse *);
80 static void p_str(struct parse *);
81 static void p_bre(struct parse *, int, int);
82 static int p_simp_re(struct parse *, int);
83 static int p_count(struct parse *);
84 static void p_bracket(struct parse *);
85 static void p_b_term(struct parse *, cset *);
86 static void p_b_cclass(struct parse *, cset *);
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
Dregcomp.c64 struct parse { struct
78 static void p_ere(struct parse *, int); argument
79 static void p_ere_exp(struct parse *);
80 static void p_str(struct parse *);
81 static void p_bre(struct parse *, int, int);
82 static int p_simp_re(struct parse *, int);
83 static int p_count(struct parse *);
84 static void p_bracket(struct parse *);
85 static void p_b_term(struct parse *, cset *);
86 static void p_b_cclass(struct parse *, cset *);
[all …]
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DParseExceptionsTest.java63 DescriptorProto parse(InputStream in) throws IOException; in parse() method
87 public DescriptorProto parse(InputStream in) throws IOException { in message_parseFrom_InputStream()
98 public DescriptorProto parse(InputStream in) throws IOException { in message_parseFrom_InputStreamAndExtensionRegistry()
109 public DescriptorProto parse(InputStream in) throws IOException { in message_parseFrom_CodedInputStream()
120 public DescriptorProto parse(InputStream in) throws IOException { in message_parseFrom_CodedInputStreamAndExtensionRegistry()
132 public DescriptorProto parse(InputStream in) throws IOException { in message_parseDelimitedFrom_InputStream()
143 public DescriptorProto parse(InputStream in) throws IOException { in message_parseDelimitedFrom_InputStreamAndExtensionRegistry()
154 public DescriptorProto parse(InputStream in) throws IOException { in messageBuilder_mergeFrom_InputStream()
165 public DescriptorProto parse(InputStream in) throws IOException { in messageBuilder_mergeFrom_InputStreamAndExtensionRegistry()
178 public DescriptorProto parse(InputStream in) throws IOException { in messageBuilder_mergeFrom_CodedInputStream()
[all …]
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/debugging/
Ddebug-mode.rb66 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/
DHtmlParserFactory.java261 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/r8/src/test/java/com/android/tools/r8/shaking/
DProguardConfigurationParserTest.java81 public void parse() throws IOException, ProguardRuleParserException { in parse() method in ProguardConfigurationParserTest
83 parser.parse(Paths.get(PROGUARD_SPEC_FILE)); in parse()
92 parser.parse(Paths.get(MULTIPLE_NAME_PATTERNS_FILE)); in parseMultipleNamePatterns()
113 parser.parse(Paths.get(ACCESS_FLAGS_FILE)); in parseAccessFlags()
151 parser.parse(Paths.get(WHY_ARE_YOU_KEEPING_FILE)); in parseWhyAreYouKeeping()
164 parser.parse(Paths.get(ASSUME_NO_SIDE_EFFECTS)); in parseAssumeNoSideEffects()
176 parser.parse(Paths.get(ASSUME_NO_SIDE_EFFECTS_WITH_RETURN_VALUE)); in parseAssumeNoSideEffectsWithReturnValue()
216 parser.parse(Paths.get(ASSUME_VALUES_WITH_RETURN_VALUE)); in parseAssumeValuesWithReturnValue()
254 new ProguardConfigurationParser(new DexItemFactory()).parse(Paths.get(DONT_OBFUSCATE)); in parseDontobfuscate()
259 new ProguardConfigurationParser(new DexItemFactory()).parse(Paths.get(INCLUDING)); in parseIncluding()
[all …]

12345678910>>...78