blob: eb473c47a3f303283eae97ed35e41d5402ebcc25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "ruby/ruby.h"
#include "ruby/encoding.h"
static VALUE
econv_append(VALUE self, VALUE src, VALUE dst)
{
rb_econv_t *ec = DATA_PTR(self);
StringValue(src);
StringValue(dst);
return rb_econv_str_append(ec, src, dst, 0);
}
void
Init_econv_append(VALUE klass)
{
rb_define_method(klass, "append", econv_append, 2);
}
|