pike.git / lib / modules / Tools.pmod / sed.pmod

version» Context lines:

pike.git/lib/modules/Tools.pmod/sed.pmod:24:   //! <r><c>l</c><c>Print current space</c></r>   //! <r><c>p</c><c>Print first line in data</c></r>   //! <r><c>q</c><c>Quit evaluating</c></r>   //! <r><c>s/regexp/with/x</c><c>Replace</c></r>   //! <r><c>y/chars/chars/</c><c>Replace chars</c></r>   //! </matrix>   //! @}   //!   //! where line is numeral, first 'line'==0    - static array sedreplace(string s,object re,string with, + protected array sedreplace(string s,object re,string with,    array whatin,int first,int lastmod,    multiset flags)   {    array a;    string w=0;    array pr=({});       if (!(a=re->split(s)))    return 0;   
pike.git/lib/modules/Tools.pmod/sed.pmod:76:    else    s+=a[-1];    }    }    else    s+=a[-1];       return ({pr,s});   };    - static array scan_for_linenumber(string cmd, + protected array scan_for_linenumber(string cmd,    array(string) in,    int n)   {    int x;    string what;    object re;       while (cmd!="" && ((cmd[0]>='0' && cmd[0]<='9')    || cmd[0]=='/' || cmd[0]=='+' || cmd[0]=='-'))    {