private void scanComment ( ) { final char input = mQuery . charAt ( mPos + 1 ) ; if ( mInput == ' ' ) { // check if is end of comment, indicated by ':)' if ( input == ' ' ) { mCommentCount -- ; if ( mCommentCount == 0 ) { mState = State . START ; // increment position, because next digit has already been // processed mPos ++ ; } } } else if ( mInput == ' ' ) { // check if start of new nested comment, indicated by '(:' if ( input == ' ' ) { mCommentCount ++ ; } } mPos ++ ; }
Scans comments .