mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* re.c (match_captures): rename from "groups".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									8cee72d5c6
								
							
						
					
					
						commit
						2d28a9b130
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		|  | @ -1,3 +1,7 @@ | |||
| Thu Jul 17 18:50:26 2003  Yukihiro Matsumoto  <matz@ruby-lang.org> | ||||
| 
 | ||||
| 	* re.c (match_captures): rename from "groups". | ||||
| 
 | ||||
| Thu Jul 17 17:57:32 2003  Yukihiro Matsumoto  <matz@ruby-lang.org> | ||||
| 
 | ||||
| 	* eval.c (rb_clear_cache_by_class): check both klass and origin. | ||||
|  |  | |||
							
								
								
									
										4
									
								
								re.c
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								re.c
									
										
									
									
									
								
							|  | @ -945,7 +945,7 @@ match_to_a(match) | |||
| } | ||||
| 
 | ||||
| static VALUE | ||||
| match_groups(match) | ||||
| match_captures(match) | ||||
|     VALUE match; | ||||
| { | ||||
|     return match_array(match, 1); | ||||
|  | @ -1771,7 +1771,7 @@ Init_Regexp() | |||
|     rb_define_method(rb_cMatch, "end", match_end, 1); | ||||
|     rb_define_method(rb_cMatch, "to_a", match_to_a, 0); | ||||
|     rb_define_method(rb_cMatch, "[]", match_aref, -1); | ||||
|     rb_define_method(rb_cMatch, "groups", match_groups, 0); | ||||
|     rb_define_method(rb_cMatch, "captures", match_captures, 0); | ||||
|     rb_define_method(rb_cMatch, "select", match_select, -1); | ||||
|     rb_define_method(rb_cMatch, "values_at", match_values_at, -1); | ||||
|     rb_define_method(rb_cMatch, "pre_match", rb_reg_match_pre, 0); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 matz
						matz