Ruby
1.9.3p484(2013-11-22revision43786)
Main Page
Modules
Data Structures
Files
File List
Globals
ext
-test-
string
enc_associate.c
Go to the documentation of this file.
1
#include "ruby.h"
2
#include "
ruby/encoding.h
"
3
4
VALUE
5
bug_str_enc_associate
(
VALUE
str,
VALUE
enc)
6
{
7
return
rb_enc_associate
(str,
rb_to_encoding
(enc));
8
}
9
10
void
11
Init_enc_associate
(
VALUE
klass)
12
{
13
rb_define_method
(klass,
"associate_encoding!"
,
bug_str_enc_associate
, 1);
14
}
15
Generated on Fri Nov 22 2013 07:03:57 for Ruby by
1.8.3