public boolean any ( TextProvider textProvider ) { clearLastToken ( textProvider ) ; clearLeadingSpaces ( textProvider ) ; mark ( textProvider ) ; if ( m_debug ) debug ( "testing" , textProvider ) ; StringBuilder sb = new StringBuilder ( ) ; while ( true ) { char c = getNextChar ( textProvider ) ; if ( c == ' ' || c == ' ' || c == ' ' || c == ' ' || c == 0 ) { break ; } sb . append ( c ) ; } unmark ( textProvider ) ; String s = sb . toString ( ) . trim ( ) ; if ( s . length ( ) == 0 ) return false ; textProvider . setLastToken ( s ) ; debug ( textProvider ) ; return true ; }
Match the next space bounded string