home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.3 / RegExp.3 < prev    next >
Encoding:
Text File  |  1995-07-26  |  2.7 KB  |  67 lines

  1.  
  2.  
  3.  
  4.      TTTTccccllll____RRRReeeeggggEEEExxxxppppMMMMaaaattttcccchhhh((((3333))))          TTTTccccllll ((((7777....0000))))          TTTTccccllll____RRRReeeeggggEEEExxxxppppMMMMaaaattttcccchhhh((((3333))))
  5.  
  6.  
  7.  
  8.      _________________________________________________________________
  9.  
  10.      NNNNAAAAMMMMEEEE
  11.           Tcl_RegExpMatch - Test whether a string  matches  a  regular
  12.           expression
  13.  
  14.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  15.           ####iiiinnnncccclllluuuuddddeeee <<<<ttttccccllll....hhhh>>>>
  16.  
  17.           int
  18.           TTTTccccllll____RRRReeeeggggEEEExxxxppppMMMMaaaattttcccchhhh(_i_n_t_e_r_p, _s_t_r_i_n_g, _r_e_g_e_x_p)
  19.  
  20.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  21.           Tcl_Interp   *_i_n_t_e_r_p   (in)      Tcl interpreter to use  for
  22.                                            error reporting.
  23.  
  24.           char         *_s_t_r_i_n_g   (in)      String to test.
  25.  
  26.           char         *_r_e_g_e_x_p   (in)      Regular expression to match
  27.                                            against _s_t_r_i_n_g.
  28.      _________________________________________________________________
  29.  
  30.  
  31.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  32.           TTTTccccllll____RRRReeeeggggEEEExxxxppppMMMMaaaattttcccchhhh  determines  whether  its  _s_t_r_i_n_g   argument
  33.           matches  _r_e_g_e_x_p,  where  _r_e_g_e_x_p  is interpreted as a regular
  34.           expression using the  same  rules  as  for  the  rrrreeeeggggeeeexxxxpppp  Tcl
  35.           command.   If  there is a match then TTTTccccllll____RRRReeeeggggEEEExxxxppppMMMMaaaattttcccchhhh returns
  36.           1.  If there is no match then TTTTccccllll____RRRReeeeggggEEEExxxxppppMMMMaaaattttcccchhhh returns 0.  If
  37.           an  error occurs in the matching process (e.g. _r_e_g_e_x_p is not
  38.           a valid regular expression) then TTTTccccllll____RRRReeeeggggEEEExxxxppppMMMMaaaattttcccchhhh returns  -1
  39.           and leaves an error message in _i_n_t_e_r_p->_r_e_s_u_l_t.
  40.  
  41.  
  42.      KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  43.           match, regular expression, string
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 7/10/95)
  64.  
  65.  
  66.  
  67.