private void nonword ( int dir , State lp , State rp ) { int anchor = ( dir == AHEAD ) ? ' ' : ' ' ; assert dir == AHEAD || dir == BEHIND ; nfa . newarc ( anchor , ( short ) 1 , lp , rp ) ; nfa . newarc ( anchor , ( short ) 0 , lp , rp ) ; cm . colorcomplement ( nfa , dir , wordchrs , lp , rp ) ; /* (no need for special attention to \n) */ }
nonword - generate arcs for non - word - character ahead or behind