home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.n / split.n < prev    next >
Encoding:
Text File  |  1995-07-26  |  2.3 KB  |  66 lines

  1.  
  2.  
  3.  
  4.      sssspppplllliiiitttt((((nnnn))))                     TTTTccccllll (((( ))))                     sssspppplllliiiitttt((((nnnn))))
  5.  
  6.  
  7.  
  8.      _________________________________________________________________
  9.  
  10.      NNNNAAAAMMMMEEEE
  11.           split - Split a string into a proper Tcl list
  12.  
  13.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.           sssspppplllliiiitttt _s_t_r_i_n_g ?_s_p_l_i_t_C_h_a_r_s?
  15.      _________________________________________________________________
  16.  
  17.  
  18.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.           Returns a list created by splitting _s_t_r_i_n_g at each character
  20.           that  is  in  the  _s_p_l_i_t_C_h_a_r_s argument.  Each element of the
  21.           result list will consist of the characters from _s_t_r_i_n_g  that
  22.           lie  between  instances  of  the  characters  in _s_p_l_i_t_C_h_a_r_s.
  23.           Empty list elements will be  generated  if  _s_t_r_i_n_g  contains
  24.           adjacent  characters  in _s_p_l_i_t_C_h_a_r_s, or if the first or last
  25.           character of _s_t_r_i_n_g is in _s_p_l_i_t_C_h_a_r_s.  If _s_p_l_i_t_C_h_a_r_s  is  an
  26.           empty  string  then  each  character  of  _s_t_r_i_n_g  becomes  a
  27.           separate element of the result list.  _S_p_l_i_t_C_h_a_r_s defaults to
  28.           the standard white-space characters.  For example,
  29.  
  30.                sssspppplllliiiitttt """"ccccoooommmmpppp....uuuunnnniiiixxxx....mmmmiiiisssscccc"""" ....
  31.           returns """"ccccoooommmmpppp uuuunnnniiiixxxx mmmmiiiisssscccc"""" and
  32.  
  33.                sssspppplllliiiitttt """"HHHHeeeelllllllloooo wwwwoooorrrrlllldddd"""" {{{{}}}}
  34.           returns """"HHHH eeee llll llll oooo {{{{ }}}} wwww oooo rrrr llll dddd"""".
  35.  
  36.  
  37.      KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  38.           list, split, string
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.      Page 1                                          (printed 7/17/95)
  63.  
  64.  
  65.  
  66.