[BACK]Return to string.texi CVS log [TXT][DIR] Up to [local] / OpenXM / src / asir-doc / parts / builtin

Annotation of OpenXM/src/asir-doc/parts/builtin/string.texi, Revision 1.2

1.1       noro        1: @node $BJ8;zNs$K4X$9$k1i;;(B,,, $BAH$_9~$_H!?t(B
                      2: @section $BJ8;zNs$K4X$9$k1i;;(B
                      3:
                      4: @menu
                      5: * rtostr::
                      6: * strtov::
1.2     ! noro        7: * eval_str::
1.1       noro        8: @end menu
                      9:
                     10: @node rtostr,,, $BJ8;zNs$K4X$9$k1i;;(B
                     11: @subsection @code{rtostr}
                     12: @findex rtostr
                     13:
                     14: @table @t
                     15: @item rtostr(@var{obj})
                     16: :: @var{obj} $B$rJ8;zNs$KJQ$($k(B.
                     17: @end table
                     18:
                     19: @table @var
                     20: @item return
                     21: $BJ8;zNs(B
                     22: @item obj
                     23: $BG$0U(B
                     24: @end table
                     25:
                     26: @itemize @bullet
                     27: @item
                     28: $BG$0U$N%*%V%8%'%/%H(B @var{obj} $B$rJ8;zNs$KJQ$($k(B.
                     29: @item
                     30: $B@0?t$J$I$rJ8;zNs$KJQ49$7$FJQ?tL>$H7k9g$9$k$3$H$K$h$j(B,
                     31: $BE:;zIU$-$NITDj85$r@8@.$9$k>l9g$KB?$/MQ$$$i$l$k(B.
                     32: @item
                     33: $B5U$K(B, $BJ8;zNs$rITDj85$KJQ49$9$k;~$K$O(B, @code{strtov} $B$rMQ$$$k(B.
                     34: @end itemize
                     35:
                     36: @example
                     37: [0] A=afo;
                     38: afo
                     39: [1] type(A);
                     40: 2
                     41: [2] B=rtostr(A);
                     42: afo
                     43: [3] type(B);
                     44: 7
                     45: [4] B+"1";
                     46: afo1
                     47: @end example
                     48:
                     49: @table @t
                     50: @item $B;2>H(B
                     51: @fref{strtov}, @fref{type}.
                     52: @end table
                     53:
                     54: @node strtov,,, $BJ8;zNs$K4X$9$k1i;;(B
                     55: @subsection @code{strtov}
                     56: @findex strtov
                     57:
                     58: @table @t
                     59: @item strtov(@var{str})
                     60: :: @var{str} ($BJ8;zNs(B) $B$rITDj85$KJQ$($k(B.
                     61: @end table
                     62:
                     63: @table @var
                     64: @item return
                     65: $BITDj85(B
                     66: @item str
                     67: $BITDj85$H$7$FJQ492DG=$JJ8;zNs(B
                     68: @end table
                     69:
                     70: @itemize @bullet
                     71: @item
                     72: $BITDj85$H$7$FJQ492DG=$JJ8;zNs$rITDj85$KJQ$($k(B.
                     73: @item
                     74: $BITDj85$H$7$FJQ492DG=$JJ8;zNs$H$O(B, $B1Q>.J8;z$G;O$^$j(B,
                     75: $B1Q;z(B, $B?t;z$*$h$S5-9f(B @code{_} $B$G:n$i$l$kJ8;zNs$G$"$k(B.
                     76: @item
                     77: @code{rtostr()} $B$HAH9g$;$F(B, $B%W%m%0%i%`Cf$G<+F0E*$KITDj85$r@8@.$7$?$$;~$K(B
                     78: $BMQ$$$i$l$k(B.
                     79: @end itemize
                     80:
                     81: @example
                     82: [0] A="afo";
                     83: afo
                     84: [1] for (I=0;I<3;I++) @{B=strtov(A+rtostr(I)); print([B,type(B)]);@}
                     85: [afo0,2]
                     86: [afo1,2]
                     87: [afo2,2]
                     88: @end example
                     89:
                     90: @table @t
                     91: @item $B;2>H(B
                     92: @fref{rtostr}, @fref{type}, @fref{uc}.
1.2     ! noro       93: @end table
        !            94:
        !            95: @node eval_str,,, $BJ8;zNs$K4X$9$k1i;;(B
        !            96: @subsection @code{eval_str}
        !            97: @findex eval_str
        !            98:
        !            99: @table @t
        !           100: @item eval_str(@var{str})
        !           101: :: @var{str} ($BJ8;zNs(B) $B$rI>2A$9$k(B.
        !           102: @end table
        !           103:
        !           104: @table @var
        !           105: @item return
        !           106: $B%*%V%8%'%/%H(B
        !           107: @item str
        !           108: @b{Asir} $B$N(B parser $B$,<uM}2DG=$JJ8;zNs(B
        !           109: @end table
        !           110:
        !           111: @itemize @bullet
        !           112: @item
        !           113: @b{Asir} $B$N(B parser $B$,<uM}2DG=$JJ8;zNs$rI>2A$7$F$=$N7k2L$rJV$9(B.
        !           114: @item
        !           115: $BI>2A2DG=$JJ8;zNs$O(B, $B<0$rI=$9$b$N$K8B$k(B.
        !           116: @item
        !           117: $BO@M}E*$K$O(B @code{rtostr()} $B$N5U4X?t$H$J$k(B.
        !           118: @end itemize
        !           119:
        !           120: @example
        !           121: [0] eval_str("1+2");
        !           122: 3
        !           123: [1] fctr(eval_str(rtostr((x+y)^10)));
        !           124: [[1,1],[x+y,10]]
        !           125: @end example
        !           126:
        !           127: @table @t
        !           128: @item $B;2>H(B
        !           129: @fref{rtostr}
1.1       noro      130: @end table
                    131:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>