private int compareAffix ( String text , int pos , boolean isNegative , boolean isPrefix , String affixPat , boolean complexCurrencyParsing , int type , Currency [ ] currency ) { if ( currency != null || currencyChoice != null || ( currencySignCount != CURRENCY_SIGN_COUNT_ZERO && complexCurrencyParsing ) ) { return compareComplexAffix ( affixPat , text , pos , type , currency ) ; } if ( isPrefix ) { return compareSimpleAffix ( isNegative ? negativePrefix : positivePrefix , text , pos ) ; } else { return compareSimpleAffix ( isNegative ? negativeSuffix : positiveSuffix , text , pos ) ; } }
Returns the length matched by the given affix or - 1 if none . Runs of white space in the affix match runs of white space in the input . Pattern white space and input white space are determined differently ; see code .