/macosx-10.10.1/ruby-106/ruby/test/rdoc/ |
H A D | test_rdoc_rd_inline_parser.rb | 14 assert_equal 'regular <em>emphasis</em>', parse('regular ((*emphasis*))') 18 assert_equal '<code>text</code>', parse('(({text}))') 22 assert_equal '<em>text</em>', parse('((*text*))') 26 assert_equal '{*1}[rdoc-label:foottext-1:footmark-1]', parse('((-text-))') 37 assert_equal '<span id="label-text">text</span>', parse('((:text:))') 43 assert_equal '<tt>text</tt>', parse('((%text%))') 47 assert_equal '<em>one</em> <em>two</em>', parse('((*one*)) ((*two*))') 51 assert_equal "one\ntwo", parse("one\ntwo") 55 assert_equal 'one " two', parse('one " two') 59 assert_equal '{text}[rdoc-label:text]', parse('((<tex 173 def parse text method in class:TestRDocRdInlineParser [all...] |
H A D | test_rdoc_rd.rb | 10 assert_equal expected, RDoc::RD.parse("hello") 18 assert_equal expected, RDoc::RD.parse("=begin\nhello\n=end\n") 26 assert_equal expected, RDoc::RD.parse("hello\n")
|
/macosx-10.10.1/ruby-106/ruby/test/ripper/ |
H A D | test_parser_events.rb | 21 def parse(str, nm = nil, &bl) method in class:TestRipper 24 dp.parse.to_s 28 parse(str, :compile_error) {|e, msg| return msg} 33 assert_equal '[void()]', parse('', :on_program) {thru_program = true} 38 assert_equal '[void()]', parse('') 42 assert_equal '[ref(nil)]', parse('nil') 43 assert_equal '[ref(nil),ref(nil)]', parse('nil;nil') 44 assert_equal '[ref(nil),ref(nil),ref(nil)]', parse('nil;nil;nil') 48 assert_equal '[void()]', parse('') 49 assert_equal '[void()]', parse('; ;') [all...] |
/macosx-10.10.1/ruby-106/ruby/test/json/ |
H A D | test_json.rb | 59 assert_equal([], parse('[]')) 60 assert_equal([], parse(' [ ] ')) 61 assert_equal([nil], parse('[null]')) 62 assert_equal([false], parse('[false]')) 63 assert_equal([true], parse('[true]')) 64 assert_equal([-23], parse('[-23]')) 65 assert_equal([23], parse('[23]')) 66 assert_equal([0.23], parse('[0.23]')) 67 assert_equal([0.0], parse('[0e0]')) 68 assert_raises(JSON::ParserError) { parse('[ [all...] |
/macosx-10.10.1/cups-408/cups/vcnet/regex/ |
H A D | regcomp.ih | 7 static void p_ere(register struct parse *p, int stop); 8 static void p_ere_exp(register struct parse *p); 9 static void p_str(register struct parse *p); 10 static void p_bre(register struct parse *p, register int end1, register int end2); 11 static int p_simp_re(register struct parse *p, int starordinary); 12 static int p_count(register struct parse *p); 13 static void p_bracket(register struct parse *p); 14 static void p_b_term(register struct parse *p, register cset *cs); 15 static void p_b_cclass(register struct parse *p, register cset *cs); 16 static void p_b_eclass(register struct parse * [all...] |
/macosx-10.10.1/ruby-106/ruby/test/uri/ |
H A D | test_http.rb | 19 u = URI.parse('http://a') 28 u1 = URI.parse('http://' + host + '/eFg?HiJ') 29 u2 = URI.parse('http://' + host.downcase + '/eFg?HiJ') 36 assert_equal('http://abc/', URI.parse('http://abc').normalize.to_s) 40 assert(URI.parse('http://abc') == URI.parse('http://ABC')) 41 assert(URI.parse('http://abc/def') == URI.parse('http://ABC/def')) 42 assert(URI.parse('http://abc/def') != URI.parse('htt [all...] |
H A D | test_ftp.rb | 12 url = URI.parse('ftp://user:pass@host.com/abc/def') 31 assert_raise(InvalidURIError){URI.parse('ftp:example')} 37 u = URI.parse('ftp://ftp.example.com/foo/bar/file.ext') 39 u = URI.parse('ftp://ftp.example.com//foo/bar/file.ext') 41 u = URI.parse('ftp://ftp.example.com/%2Ffoo/bar/file.ext') 55 assert_equal(['ftp', 'a.b.c', 21], URI.parse('ftp://a.b.c/').select(:scheme, :host, :port)) 56 u = URI.parse('ftp://a.b.c/')
|
/macosx-10.10.1/ruby-106/ruby/benchmark/ |
H A D | bm_app_uri.rb | 4 uri = URI.parse('http://www.ruby-lang.org')
|
/macosx-10.10.1/ruby-106/ruby/lib/optparse/ |
H A D | uri.rb | 6 OptionParser.accept(URI) {|s,| URI.parse(s) if s}
|
H A D | date.rb | 6 DateTime.parse(s) if s 13 Date.parse(s) if s
|
/macosx-10.10.1/ruby-106/ruby/test/optparse/ |
H A D | test_acceptable.rb | 20 assert_equal(%w"", no_error {@opt.parse!(%w"--integer 0")}) 23 assert_equal(%w"", no_error {@opt.parse!(%w"--integer 0b10")}) 26 assert_equal(%w"", no_error {@opt.parse!(%w"--integer 077")}) 29 assert_equal(%w"", no_error {@opt.parse!(%w"--integer 10")}) 32 assert_equal(%w"", no_error {@opt.parse!(%w"--integer 0x3")}) 36 @opt.parse!(%w"--integer 0b") 40 @opt.parse!(%w"--integer 09") 44 @opt.parse!(%w"--integer 0x") 48 @opt.parse!(%w"--integer 1234xyz") 53 assert_equal(%w"", no_error {@opt.parse!( [all...] |
H A D | test_placearg.rb | 16 assert_equal(%w"", no_error {@opt.parse!(%w"-x -n")}) 19 assert_equal(%w"", no_error {@opt.parse!(%w"-x foo")}) 21 assert_equal(%w"", no_error {@opt.parse!(%w"-xbar")}) 23 assert_equal(%w"", no_error {@opt.parse!(%w"-x=")}) 28 assert_equal(%w"", no_error {@opt.parse!(%w"-o -n")}) 31 assert_equal(%w"", no_error {@opt.parse!(%w"-o foo")}) 33 assert_equal(%w"", no_error {@opt.parse!(%w"-obar")}) 35 assert_equal(%w"", no_error {@opt.parse!(%w"-o=")}) 40 assert_equal(%w"", no_error {@opt.parse!(%w"--opt -n")}) 42 assert_equal(%w"foo", no_error {@opt.parse!( [all...] |
H A D | test_noarg.rb | 21 assert_raise(OptionParser::InvalidOption) {@opt.parse!(%w"-xq")} 22 assert_equal(%w"", no_error {@opt.parse!(%w"-x")}) 25 assert_equal(%w"foo", no_error {@opt.parse!(%w"-x foo")}) 30 assert_raise(OptionParser::InvalidOption) {@opt.parse!(%w"-oq")} 31 assert_equal(%w"", no_error {@opt.parse!(%w"-o")}) 34 assert_raise(OptionParser::InvalidOption) {@opt.parse!(%w"-O")} 37 assert_equal(%w"foo", no_error {@opt.parse!(%w"-o foo")}) 42 assert_raise(OptionParser::NeedlessArgument) {@opt.parse!(%w"--option=x")} 43 assert_equal(%w"", no_error {@opt.parse!(%w"--opt")}) 46 assert_equal(%w"foo", no_error {@opt.parse!( [all...] |
H A D | test_optarg.rb | 13 assert_equal(%w"", no_error {@opt.parse!(%w"-x")}) 16 assert_equal(%w"foo", no_error {@opt.parse!(%w"-x foo")}) 18 assert_equal(%w"", no_error {@opt.parse!(%w"-xfoo")}) 20 assert_equal(%w"", no_error {@opt.parse!(%w"-x=")}) 25 assert_equal(%w"", no_error {@opt.parse!(%w"-o")}) 28 assert_equal(%w"foo", no_error {@opt.parse!(%w"-o foo")}) 30 assert_equal(%w"", no_error {@opt.parse!(%w"-ofoo")}) 32 assert_equal(%w"", no_error {@opt.parse!(%w"-o=")}) 37 assert_equal(%w"", no_error {@opt.parse!(%w"--opt")}) 39 assert_equal(%w"foo", no_error {@opt.parse!( [all...] |
H A D | test_reqarg.rb | 37 assert_raise(OptionParser::MissingArgument) {@opt.parse!(%w"-x")} 38 assert_equal(%w"", no_error {@opt.parse!(%w"-x foo")}) 40 assert_equal(%w"", no_error {@opt.parse!(%w"-xbar")}) 42 assert_equal(%w"", no_error {@opt.parse!(%w"-x=")}) 47 assert_raise(OptionParser::MissingArgument) {@opt.parse!(%w"-o")} 48 assert_equal(%w"", no_error {@opt.parse!(%w"-o foo")}) 50 assert_equal(%w"", no_error {@opt.parse!(%w"-obar")}) 52 assert_equal(%w"", no_error {@opt.parse!(%w"-o=")}) 57 assert_raise(OptionParser::MissingArgument) {@opt.parse!(%w"--opt")} 58 assert_equal(%w"", no_error {@opt.parse!( [all...] |
/macosx-10.10.1/ruby-106/ruby/test/net/smtp/ |
H A D | test_response.rb | 8 res = Response.parse("250-ubuntu-desktop\n250-PIPELINING\n250-SIZE 10240000\n250-VRFY\n250-ETRN\n250-STARTTLS\n250-ENHANCEDSTATUSCODES\n250 DSN\n") 17 res = Response.parse("250-ubuntu-desktop\n250-PIPELINING\n250 DSN\n") 22 res = Response.parse("250-ubuntu-desktop\n250-SIZE 1234\n250 DSN\n") 27 res = Response.parse("250-ubuntu-desktop\n250-SIZE 1 2 3\n250 DSN\n") 32 res = Response.parse("badstring") 37 res = Response.parse("250-ubuntu-desktop\n250-SIZE 1 2 3\n250 DSN\n") 44 res = Response.parse("3yz-ubuntu-desktop\n250-SIZE 1 2 3\n250 DSN\n") 50 res = Response.parse("3yz-ubuntu-desktop\n250-SIZE 1 2 3\n250 DSN\n") 53 res = Response.parse("250-ubuntu-desktop\n250-SIZE 1 2 3\n250 DSN\n") 58 res = Response.parse("25 [all...] |
/macosx-10.10.1/JavaScriptCore-7600.1.17/dfg/ |
H A D | DFGByteCodeParser.h | 42 bool parse(Graph&);
|
/macosx-10.10.1/ntp-92/ntpd/ |
H A D | refclock_parse.c | 184 #include "parse.h" 288 #define ERR(_X_) if (list_err(parse, (_X_))) 385 * parse state 412 parsetime_t timedata; /* last (parse module) data */ 1372 #define PARSE_STATETIME(parse, i) ((parse->generic->currentstatus == i) ? parse->statetime[i] + current_time - parse->lastchange : parse->statetime[i]) 1385 struct parseunit *parse, 1384 clear_err( struct parseunit *parse, u_long lstate ) argument 1413 list_err( struct parseunit *parse, u_long lstate ) argument 1745 stream_setcs( struct parseunit *parse, parsectl_t *tcl ) argument 1817 stream_getfmt( struct parseunit *parse, parsectl_t *tcl ) argument 1840 stream_setfmt( struct parseunit *parse, parsectl_t *tcl ) argument 1865 stream_timecode( struct parseunit *parse, parsectl_t *tcl ) argument 1895 struct parseunit *parse = (struct parseunit *)((void *)rbufp->recv_srcclock); local 1988 local_setcs( struct parseunit *parse, parsectl_t *tcl ) argument 2000 local_getfmt( struct parseunit *parse, parsectl_t *tcl ) argument 2012 local_setfmt( struct parseunit *parse, parsectl_t *tcl ) argument 2024 local_timecode( struct parseunit *parse, parsectl_t *tcl ) argument 2041 struct parseunit *parse = (struct parseunit *)((void *)rbufp->recv_srcclock); local 2251 struct parseunit *parse = (struct parseunit *)((void *)rbufp->recv_srcclock); local 2604 struct parseunit *parse = (struct parseunit *)0; local 2668 parse_hardpps( struct parseunit *parse, int mode ) argument 2804 struct parseunit * parse; local 3195 parse_ctl( struct parseunit *parse, struct refclockstat *in ) argument 3258 struct parseunit *parse = (struct parseunit *)peer->procptr->unitptr; local 3315 struct parseunit *parse = (struct parseunit *)peer->procptr->unitptr; local 3525 parse_event( struct parseunit *parse, int event ) argument 3553 parse_process( struct parseunit *parse, parsetime_t *parsetime ) argument 4088 gps16x_message( struct parseunit *parse, parsetime_t *parsetime ) argument 4479 struct parseunit *parse = (struct parseunit *)peer->procptr->unitptr; local 4568 gps16x_message( struct parseunit *parse, parsetime_t *parsetime ) argument 4621 struct parseunit *parse = (struct parseunit *)peer->procptr->unitptr; local 4699 trimbletaip_event( struct parseunit *parse, int event ) argument 4950 trimbletsip_setup( struct parseunit *parse, const char *reason ) argument 5016 struct parseunit *parse = (struct parseunit *)peer->procptr->unitptr; local 5145 trimbletsip_event( struct parseunit *parse, int event ) argument 5238 trimbletsip_message( struct parseunit *parse, parsetime_t *parsetime ) argument [all...] |
/macosx-10.10.1/tcl-105/tcl_ext/memchan/memchan/tools/ |
H A D | changelog_to_list | 12 set out [cl:parse [read [set fh [open $in r]]][close $fh]] 19 proc cl:parse {data} { 27 if {[cl:parse:chunk_intro $line date person]} { 28 cl:parse:close_last_item 29 cl:parse:close_last_chunk 30 cl:parse:init_chunk $date $person 33 if {[cl:parse:item_line $line data]} { 34 cl:parse:close_last_item 35 cl:parse:init_item $data 38 if {[cl:parse [all...] |
/macosx-10.10.1/tcl-105/tcl_ext/trf/trf/tools/ |
H A D | changelog_to_list | 12 set out [cl:parse [read [set fh [open $in r]]][close $fh]] 19 proc cl:parse {data} { 27 if {[cl:parse:chunk_intro $line date person]} { 28 cl:parse:close_last_item 29 cl:parse:close_last_chunk 30 cl:parse:init_chunk $date $person 33 if {[cl:parse:item_line $line data]} { 34 cl:parse:close_last_item 35 cl:parse:init_item $data 38 if {[cl:parse [all...] |
/macosx-10.10.1/ncurses-44/ncurses/misc/ |
H A D | cleantic.cmd | 35 parse arg dir
|
/macosx-10.10.1/JavaScriptCore-7600.1.17/tests/mozilla/ecma/Date/ |
H A D | 15.9.5.2-1.js | 55 // parsable by Date.parse 58 "Math.abs(Date.parse(now.toString()) - now.valueOf()) < 1000", 60 Math.abs(Date.parse(now.toString()) - now.valueOf()) < 1000 ); 71 "Date.parse( (new Date(0)).toString() )", 73 Date.parse( (new Date(0)).toString() ) ) 76 "Date.parse( (new Date("+TZ_ADJUST+")).toString() )", 78 Date.parse( (new Date(TZ_ADJUST)).toString() ) ) 82 "Date.parse( (new Date("+TIME_1900+")).toString() )", 84 Date.parse( (new Date(TIME_1900)).toString() ) ) 87 "Date.parse( (ne [all...] |
H A D | 15.9.5.2.js | 55 // parsable by Date.parse 58 "Math.abs(Date.parse(now.toString()) - now.valueOf()) < 1000", 60 Math.abs(Date.parse(now.toString()) - now.valueOf()) < 1000 ); 71 "Date.parse( (new Date(0)).toString() )", 73 Date.parse( (new Date(0)).toString() ) ) 76 "Date.parse( (new Date("+TZ_ADJUST+")).toString() )", 78 Date.parse( (new Date(TZ_ADJUST)).toString() ) ) 82 "Date.parse( (new Date("+TIME_1900+")).toString() )", 84 Date.parse( (new Date(TIME_1900)).toString() ) ) 87 "Date.parse( (ne [all...] |
/macosx-10.10.1/ruby-106/ruby/test/psych/ |
H A D | test_parser.rb | 37 parser.parse('null') 66 parser.parse yaml 74 @parser.parse '--- foo' 80 @parser.parse '--- `', 'omg!' 87 @parser.parse "---\n- hello\n- world" 103 @parser.parse "---\n- hello\n- world" 119 @parser.parse "---\n- hello\n- world" 138 @parser.parse yml 146 @parser.parse tadpole.encode 'UTF-16LE' 156 @parser.parse [all...] |
/macosx-10.10.1/ICU-531.30/icuSources/tools/genrb/ |
H A D | parse.h | 9 * File parse.h 30 struct SRBRoot* parse(UCHARBUF *buf, const char* inputDir, const char* outputDir,
|