VALUE rb_enc_associate(VALUE obj, rb_encoding *enc)

[email protected]@%$G$9!#e(B

e$B8=:_e(B rb_enc_associate() e$B$O!"e(B
void rb_enc_associate(VALUE obj, rb_encoding *enc)
e$B$H$$$&Dj5A$K$J$C$F$$$^$9!#e(B

[email protected]$H!"e(Bobject e$B$r:n$C$F$=$l$Ke(B encoding e$B$rE,MQ$5$;!"e(B
e$B$5$i$K$=$Ne(B object e$B$r$[$+$N4X?t$KEO$9$H$$$&A`:n$r$9$k;~!"e(B

obj = rb_obj_new();
rb_enc_associate(obj, enc);
foo(obj);

e$B$J$I$H$7$J$1$l$P$J$j$^$;$s!#e(B
string.c e$B$Ne(B rb_str_new e$B$G$O$=$l$r7y$$!"e(Brb_enc_str_new
e$B$r:n$C$F$$$^$9!#e(B

e$B$^$?!“e(BDir.entries e$B$^$o$j$Ge(B rb_enc_str_new2,
rb_tainted_enc_str_new,
rb_tainted_enc_str_new2 e$B$bI,MW$K$J$j$=$&$J5$G[$,$”$j$^$9!#e(B

rb_enc_associate e$B$,e(B obj e$B$rJV$9$h$&$K$J$k$H!"$3$l$i$r!"e(B

foo(rb_enc_associate(rb_obj_new(), enc));

e$B$H=q$/$3$H$,$G$-$k$h$&$K$J$j!"I,MW0J>e$K4X?t$rA}$d$5$J$/$F$b$h$/$J$j$^$9!#e(B

e$B$^$D$b$He(B e$B$f$-$R$m$G$9e(B

In message “Re: [ruby-dev:34778] VALUE rb_enc_associate(VALUE obj,
rb_encoding *enc)”
on Wed, 21 May 2008 04:25:48 +0900, “NARUSE, Yui”
[email protected] writes:

|e$B8=:_e(B rb_enc_associate() e$B$O!"e(B
|void rb_enc_associate(VALUE obj, rb_encoding *enc)
|e$B$H$$$&Dj5A$K$J$C$F$$$^$9!#e(B
|
|[email protected]$H!"e(Bobject e$B$r:n$C$F$=$l$Ke(B encoding e$B$rE,MQ$5$;!"e(B
|e$B$5$i$K$=$Ne(B object e$B$r$[$+$N4X?t$KEO$9$H$$$&A`:n$r$9$k;~!"e(B
|
| obj = rb_obj_new();
| rb_enc_associate(obj, enc);
| foo(obj);
|
|e$B$J$I$H$7$J$1$l$P$J$j$^$;$s!#e(B
|string.c e$B$Ne(B rb_str_new e$B$G$O$=$l$r7y$$!“e(Brb_enc_str_new e$B$r:n$C$F$$$^$9!#e(B
|
|e$B$^$?!“e(BDir.entries e$B$^$o$j$Ge(B rb_enc_str_new2, rb_tainted_enc_str_new,
|rb_tainted_enc_str_new2 e$B$bI,MW$K$J$j$=$&$J5$G[$,$”$j$^$9!#e(B
|
|rb_enc_associate e$B$,e(B obj e$B$rJV$9$h$&$K$J$k$H!”$3$l$i$r!"e(B
|
| foo(rb_enc_associate(rb_obj_new(), enc));
|
|e$B$H=q$/$3$H$,$G$-$k$h$&$K$J$j!"I,MW0J>e$K4X?t$rA}$d$5$J$/$F$b$h$/$J$j$^$9!#e(B

e$B$U$`!#$$$$$s$8$c$J$$$G$7$g$&$+!#%3%_%C%H$7$F$/[email protected]$5$$!#e(B

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs