Subversion Repositories wimsdev

Rev

Rev 14711 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. !! +exec+ +var+ +string+
  2. tit:positionof
  3. type:$type_both
  4. alias:position, positions
  5. syntax:!positionof [``type''] ``s'' in ``string''
  6. mean:Reports the positions of the object ``s'' in ``string''.\
  7.   The word ``type'' can be <span class="tt">char</span>, <span class="tt">word</span>, \
  8.   <span class="tt">item</span>, <span class="tt">line</span> or <span class="tt">row</span>.\
  9.   If it is specified, then the comparison only takes place for\
  10.   corresponding objects of ``string'' which are identical to ``s''. \
  11.   The output of the command is a list of positions (char, word, item,\
  12.   line or row, according to the value of ``type'') where ``s'' is found in ``string''.\
  13.   Here, rows are separated by semi-colon ``;'' and lines by new lines.\
  14.   <br>\
  15.   If ``type'' is missing, then ``s'' is searched in ``string'' as a substring,\
  16.   and the positions reported are character positions (more precisely, \
  17.   the positions of the previous character of ``s'' in ``string'').\
  18.