question: private int parseFuzziness ( State state ) { char slopText [ ] = new char [ state . length ] ; int slopLength = 0 ; if ( state . data [ state . index ] == '~' ) { while ( state . index < state . length ) { state . index ++ ; if ( state . index < state . length ) { if ( tokenFinished ( state ) ) { break ; } slopText [ slopLength ] = state . data [ state . index ] ; slopLength ++ ; } } int fuzziness = 0 ; try { fuzziness = Integer . parseInt ( new String ( slopText , 0 , slopLength ) ) ; } catch ( NumberFormatException e ) { } if ( fuzziness < 0 ) { fuzziness = 0 ; } return fuzziness ; } return 0 ; }
target:  Helper parsing fuzziness from parsing state