e$B:XF#$H?=$7$^$9!#0l2p$Ne(Blibrubye$B%f!<%6!<$G$9!#e(B
e$B%?%$%_%s%0$,0-$/5DO@$KCY$l$F$7$^$$!"$4$a$s$J$5$$!#e(B
On Mon, 11 Jan 2010 16:35:19 +0900
Yukihiro M. [email protected] wrote:
e$B$=$&$G$9$M!#%3%_%C%H$7$F$/$@$5$$!#e(B
e$B%3%_%C%H$5$l$F$7$^$C$?$h$&$G$9$,!“<+J,$O$”$^$j$h$$L>A0$G$J$$$H;W$$$^$9!#e(B
e$B@h$[$I8+$?$H$3$m$K$h$k$H!“e(Brb_str_length()e$B$H$$$&!“e(Brb_str_strlen()e$B$K$H$F$bNI$/;w$?e(B
e$B4X?t$,4{$K8x3+$5$l$F$$$k$h$&$G$7$?!#e(BC
APIe$B%f!<%6$J$i$P!”$3$N$h$&$KL>A0$d0UL#$,;wDL$C$?e(B
e$B4X?t$,$”$l$P!“$^$:$=$l$H$N0c$$$r0U<1$7$?$j!”;~$K$O:.F1$7$?$j$9$k$3$H$,M=A[$G$-$^$9!#e(B
e$B$h$j@53N$r4|$9$H!"e(Brb_str_length(str)e$B$He(BLONG2NUM(rb_str_strlen(str))e$B$OEy2A$J$h$&e(B
e$B$G$9!#$D$^$jN><T$N0c$$$O!“e(BVALUEe$B$,JV$C$F$/$k$3$H$d!”$=$NJQ49%3%9%H$,$+$+$k$3$H$@$He(B
e$B;W$$$^$9!#e(B
e$B$3$N$h$&$J0UL#$N0c$$$,!“e(B"length"e$B$He(B"strlen"e$B$H$$$&L>A0$N0c$$$GI=8=$G$-$F$$$k$H$O!”<+J,e(B
e$B$K$O46$8$i$l$^$;$s!#$^$?e(Bstrlene$B$H$$$&$N$O!“$*$=$i$/e(Bstring
lengthe$B$NN,$G$”$j!“e(B
str_lengthe$B$HF1$8$3$H$r8@$$49$($F$$$k$@$1$G$9$+$i!”$d$O$j0UL#$N0c$$$OEA$o$i$J$$$N$G$Oe(B
e$B$J$$$G$7$g$&$+!#e(B
e$B$5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