mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* string.c (rb_str_associate_encoding): commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									e41b84895e
								
							
						
					
					
						commit
						19d8793ef4
					
				
					 1 changed files with 0 additions and 16 deletions
				
			
		
							
								
								
									
										16
									
								
								string.c
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								string.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -5106,21 +5106,6 @@ str_encoding(VALUE str)
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/*
 | 
			
		||||
 *  call-seq:
 | 
			
		||||
 *     str.associate_encoding(encoding)   => str
 | 
			
		||||
 *
 | 
			
		||||
 *  Changes the encoding to +encoding+ and returns self.
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
static VALUE
 | 
			
		||||
rb_str_associate_encoding(VALUE str, VALUE encname)
 | 
			
		||||
{
 | 
			
		||||
    str_modifiable(str);
 | 
			
		||||
    rb_enc_associate(str, rb_enc_find(StringValueCStr(encname)));
 | 
			
		||||
    return str;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**********************************************************************
 | 
			
		||||
 * Document-class: Symbol
 | 
			
		||||
 *
 | 
			
		||||
| 
						 | 
				
			
			@ -5532,7 +5517,6 @@ Init_String(void)
 | 
			
		|||
    rb_define_method(rb_cString, "rpartition", rb_str_rpartition, 1);
 | 
			
		||||
 | 
			
		||||
    rb_define_method(rb_cString, "encoding", str_encoding, 0);
 | 
			
		||||
    rb_define_method(rb_cString, "associate_encoding", rb_str_associate_encoding, 1);
 | 
			
		||||
 | 
			
		||||
    id_to_s = rb_intern("to_s");
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue