Iconv#trivial? の仕様

$B66K$H?=$7$^$9!#(B

Iconv#trivial? $B$N;EMM$K$D$$$F<ALd$5$;$F$/[email protected]$5$$!#(B
($B$I$A$i$+$H$$$&$H!"(Biconv $B$NOC$+$b$7$l$^$;$s$,(B…)

Iconv#trivial? $B$N(B rdoc
$B$O0J2<$N$h$&$K$"$j$^$9$,!"$3$l$,$I$&$$$&0UL#$J$N(B
$B$+M}2r$G$-$F$$$^$;$s!#(B

Returns trivial flag.

$BJQ49$,(B trivial
$B$H$$$&;[email protected]$H;W$&$N$G$9$,!"!V$A$g$C$H$7$?JQ49!W(B=>$B!V$=$l$>(B
$B$l$NJ8;z$r(B 1 $BBP(B 1
$B$KJQ492DG=$J%(%s%3!<%G%#%s%0$NAH$_9g$o$;!W$H$$$C$?0U(B
$BL#$K$J$k46$8$G$7$g$&$+!)(B

$B$J$*!">e5-$rDI$C$F$k:]$K$?$^$?$^8+$D$1$?$N$G$9$,(B iconv 1.13.1 $B$N(B
iconvctl $B$O(B ICONV_TRIVIALP
$B$NJ,[email protected]$1%U%i%0$NCM$rJV$5$:$K2?$+$7$i$NH=Dj(B
$B=hM}$r9T$C$F$$$k$h$&$G$9!#$=$N$?$a!"!V(BReturns trivial
flag$B!W$G$O$J$/!"(B
$B!V(Btrivial
$B$+$I$&$+$rJV$7$^$9!W$H$$$C$?FbMF$K$J$k$N$G$O$J$$$+$H;W$$$^$7(B
$B$?!#(B($B:Y$+$$$G$9$M!#$9$_$^$;$s(B)

$B$3$s$K$A$O!#(B

In message [email protected]
on Tue, 14 Jun 2011 09:26:26 +0900,
Sho H. [email protected] wrote:

Iconv#trivial? $B$N;EMM$K$D$$$F<ALd$5$;$F$/[email protected]$5$$!#(B
($B$I$A$i$+$H$$$&$H!"(Biconv $B$NOC$+$b$7$l$^$;$s$,(B…)

Iconv#trivial? $B$N(B rdoc $B$O0J2<$N$h$&$K$"$j$^$9$,!"$3$l$,$I$&$$$&0UL#$J$N(B
$B$+M}2r$G$-$F$$$^$;$s!#(B
…snip…
$B$J$!">e5-$rDI$C$F$k:]$K$?$^$?$^8+$D$1$?$N$G$9$,(B iconv 1.13.1 $B$N(B
iconvctl $B$O(B ICONV_TRIVIALP $B$NJ,[email protected]$1%U%i%0$NCM$rJV$5$:$K2?$+$7$i$NH=Dj(B
iconv 1.13.1$B$H$"$j$^$9$h$&$K!"$3$N$h$&$J%U%i%C%0$O(BGNU
iconv$BFH<+$N$b$N(B
$B$G!"I8=`E
$J(Biconv$B$K$OB8:_$7$^$;$s(B($B$H!";W$$$^$9(B)$B!#(B

$B<B:]!"(BGNU
iconv$B$r;HMQ$7$J$$$G:[email protected]$7$?(BRuby$B$G$O!"(BIconv#trivial?$B$O(B
NotImplementedError$B$H$J$k>l9g$,$"$j$^$9(B($B$H$$$&$+!"$*$=$i$/$[$H$s$I$=$&(B
$B$J$k$G$7$g$&(B)$B!#(B

$B=>$C$F!“2sEz$O!V(BGNU iconv$B$K$”$j!W$G$9!#(B:-)

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

2011$BG/(B6$B7n(B14$BF|(B12:02 Takahiro K. [email protected]:

…snip…

$B$J$!">e5-$rDI$C$F$k:]$K$?$^$?$^8+$D$1$?$N$G$9$,(B iconv 1.13.1 $B$N(B
iconvctl $B$O(B ICONV_TRIVIALP $B$NJ,[email protected]$1%U%i%0$NCM$rJV$5$:$K2?$+$7$i$NH=Dj(B
iconv 1.13.1$B$H$"$j$^$9$h$&$K!"$3$N$h$&$J%U%i%C%0$O(BGNU iconv$BFH<+$N$b$N(B
$B$G!"I8=`E
$J(Biconv$B$K$OB8:_$7$^$;$s(B($B$H!";W$$$^$9(B)$B!#(B

$B%U%i%00JA0$K!"(Biconvctl(3) $B<+BN$,(B GNU libiconv
$BFCM-$N4X?t$G$9$M!#(B
http://www.gnu.org/software/libiconv/

$B$J$*!"(BGNU $B$J(B iconv $B$O(B GNU libiconv $B0J30$K(B The iconv
Implementation in the GNU C library
$B$C$F$N$b$"$j$^$7$F(B ($B$$$o$f$k(B glibc iconv) $B$3$C$A$K$O(B
iconvctl(3) $B$O$"$j$^$;$s!#(B
Linux $B$OIaDL(B glibc iconv
$B$r;H$C$F$$$k$H;W$&$N$G0U30$H$"$k4D6-$O>/$J$$$H;W$$$^$9!#(B
http://www.gnu.org/s/hello/manual/libc/glibc-iconv-Implementation.html

$B<B:]!"(BGNU iconv$B$r;HMQ$7$J$$$G:[email protected]$7$?(BRuby$B$G$O!"(BIconv#trivial?$B$O(B
NotImplementedError$B$H$J$k>l9g$,$"$j$^$9(B($B$H$$$&$+!"$*$=$i$/$[$H$s$I$=$&(B
$B$J$k$G$7$g$&(B)$B!#(B

$B=>$C$F!“2sEz$O!V(BGNU iconv$B$K$”$j!W$G$9!#(B:-)

http://www.gnu.org/software/libiconv/documentation/libiconv/iconvctl.3.html
$B$r8+$k$H!"(Bthe conversion $B$,(B trivial $B$J$i!"$H$"$j$^$9$M!#(B
trivial
$B$H$O$J$s$>[email protected]@$O$J$$$N$G!"$=$l$O%=!<%9FI$^[email protected]$a$+$b!#(B

$B66K$G$9!#(B

[email protected]$5$s!"@[email protected]%$5$s!"$"$j$,$H$&$4$6$$$^$9!#(B

$B<B:]!"(BGNU iconv$B$r;HMQ$7$J$$$G:[email protected]$7$?(BRuby$B$G$O!"(BIconv#trivial?$B$O(B
NotImplementedError$B$H$J$k>l9g$,$"$j$^$9(B($B$H$$$&$+!"$*$=$i$/$[$H$s$I$=$&(B
$B$J$k$G$7$g$&(B)$B!#(B

$B=>$C$F!“2sEz$O!V(BGNU iconv$B$K$”$j!W$G$9!#(B:-)

http://www.gnu.org/software/libiconv/documentation/libiconv/iconvctl.3.html
$B$r8+$k$H!"(Bthe conversion $B$,(B trivial $B$J$i!"$H$"$j$^$9$M!#(B
trivial $B$H$O$J$s$>[email protected]@$O$J$$$N$G!"$=$l$O%=!<%9FI$^[email protected]$a$+$b!#(B

$B$=$&$J$s$G$9$h$M!#>e5-$N(B HTML $B$b>pJsNL$OJQ$o$j$^$;$s$G$7$?!#(B

$B0J2<$N%3%_%C%H%m%0$GF~$C$?5!G=(B(r9514)[email protected]$H;W$&$N$G$9$,!"(BML $B$r(B
iconvctl $B$G8!:w$7$F$bFC$K>pJs$,$J$$$N$G$k$j$^$r=q$/$N$K:$$C$F$k$N(B
$B$G$7$?!#(B

  • ext/iconv/iconv.c: iconvctl() support. [EXPERIMENTAL]

GNU iconv $B$N%=!<%9$r$b$&>/$78+$F$_$h$&$+$H;W$$$^$9!#$,!"$b$7F0:n3N(B
$BG’$J$I$GCN$C$F$kJ}$$$i$C$7$c$$$^$7$?$i!"@'Hs65$($F$/[email protected]$5$$!#(B

$B%U%i%00JA0$K!"(Biconvctl(3) $B<+BN$,(B GNU libiconv $BFCM-$N4X?t$G$9$M!#(B
http://www.gnu.org/software/libiconv/

$B$J$*!"(BGNU $B$J(B iconv $B$O(B GNU libiconv $B0J30$K(B The iconv
Implementation in the GNU C library
$B$C$F$N$b$"$j$^$7$F(B ($B$$$o$f$k(B glibc iconv) $B$3$C$A$K$O(B iconvctl(3)
$B$O$"$j$^$;$s!#(B
Linux $B$OIaDL(B glibc iconv
$B$r;H$C$F$$$k$H;W$&$N$G0U30$H$"$k4D6-$O>/$J$$$H;W$$$^$9!#(B
http://www.gnu.org/s/hello/manual/libc/glibc-iconv-Implementation.html

$B$=$&[email protected]$C$?$s$G$9$M!#CN$j$^$;$s$G$7$?!#(B> iconvctl $B$,(B GNU libiconv
$BFCM-$N4X?t(B

$BKM$NJ8>O$,$+$J$j>JN,$7$F$"$C$?$N$G$o$+$j$K$/$$5$$O$7$F$$$?$N$G$9$,!"(B
$B!V$?$^$?$^8+$D$1$?$N$G$9$,!A!W$N7o$O(B Ruby $B$N(B iconv.c
$B$N0J2<$NItJ,(B
$B$K4X$9$k;XE&$G$7$?!#(B

  • Document-method: trivial?
  • call-seq: trivial?
  • Returns trivial flag.

$B!V(BReturns trivial flag.$B!W$G$O$J$/!"!V(Btrivial
$B$+$I$&$+$rJV$7$^$9!W(B
$B$K$7$?J}$,@5$7$$$H9M$($F$$$^$9!#(Biconvctl $B$,$J$$$H;H$($J$$(B
#transliterate? $B$d(B #discard_ilseq? $B$KBP1~$9$kItJ,$O(B iconvctl
$B$N<B(B
$BAu$r8+$k$H9=B$BN$N%a%s%P$r>/$72C9)$7$FJV$7$F$$$^$9!#$7$+$7!"(B
Iconv#trivial? $B$KBP1~$9$kItJ,$OH=Dj=hM}$N7k2L$rJV$7$F$$$^$9!#$J$N(B
$B$G!"(BIconv#trivial? $B$N(B rdoc
$B$,!V%U%i%0$rJV$9!W$H$9$k$N$O$*$+$7$$!"(B
$B$H$$$&;v$J$N$G$7$?!#(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