

            filset (2) --- expand character set, stop at delimiter   05/29/82


            _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n

                 subroutine filset (delim, array, i, set, j, maxset)
                 character delim, array (ARB), set (maxset)
                 integer i, j, maxset

                 Library:  vswtlb (standard Subsystem library)


            _F_u_n_c_t_i_o_n

                 'Filset'  expands a character class specification in 'array'
                 into a list of  characters  in  'set'.   'I'  specifies  the
                 starting  position  in 'array', 'j' gives the starting posi-
                 tion in 'set', and 'maxset' gives the maximum size of 'set'.
                 Expansion stops when there is insufficient room in 'set'  or
                 when  the  character  contained in 'delim' is encountered in
                 'array'.

                 Character sets consist of arbitrary characters,  two  lower-
                 case  letters  separated by a hyphen, two upper-case letters
                 separated by a hyphen, or two digits separated by a  hyphen.
                 The  last  three  cases  represent  a  range  of characters,
                 including the endpoints.


            _I_m_p_l_e_m_e_n_t_a_t_i_o_n

                 Ordinary characters are simply stuffed into 'set' with calls
                 to 'addset'.  The range notation is expanded by 'dodash'.


            _A_r_g_u_m_e_n_t_s _M_o_d_i_f_i_e_d

                 i, set, j


            _C_a_l_l_s

                 addset, esc, index, dodash


            _S_e_e _A_l_s_o

                 dodash (2), makpat (2)













            filset (2)                    - 1 -                    filset (2)


