

            getccl (2) --- expand character class into pattern       05/29/82


            _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n

                 integer function getccl (arg, i, pat, j)
                 character arg (ARB), pat (MAXPAT)
                 integer i, j

                 Library:  vswtlb (standard Subsystem library)


            _F_u_n_c_t_i_o_n

                 'Getccl' converts the character class specification starting
                 at  'arg(i)'  into  a  pattern element starting at 'pat(j)'.
                 The pattern element consists of a character  count  followed
                 by  a  list  of  all  characters in the class.  The function
                 return is OK if the character class  was  successfully  con-
                 verted, ERR otherwise.

                 For   a   discussion   of   character  classes,  see  either
                 _I_n_t_r_o_d_u_c_t_i_o_n _t_o _t_h_e _S_o_f_t_w_a_r_e _T_o_o_l_s _T_e_x_t _E_d_i_t_o_r  or  _S_o_f_t_w_a_r_e
                 _T_o_o_l_s.


            _I_m_p_l_e_m_e_n_t_a_t_i_o_n

                 If  the  first  character  in  the  class specification is a
                 tilde, the class generated is a negated  class  rather  than
                 the standard class.  Room is then reserved for the character
                 count,  and  'filset'  is called to expand the specification
                 into the vector of characters.


            _A_r_g_u_m_e_n_t_s _M_o_d_i_f_i_e_d

                 i, pat, j


            _C_a_l_l_s

                 addset, filset


            _S_e_e _A_l_s_o

                 makpat (2), addset (2),  filset  (2),  _I_n_t_r_o_d_u_c_t_i_o_n  _t_o  _t_h_e
                 _S_o_f_t_w_a_r_e _T_o_o_l_s _T_e_x_t _E_d_i_t_o_r, _S_o_f_t_w_a_r_e _T_o_o_l_s












            getccl (2)                    - 1 -                    getccl (2)


