code: 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);
          }
  
      }
docs: 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.
  
  @param text input text
  @param pos offset into input at which to begin matching
  @param isNegative
  @param isPrefix
  @param affixPat affix pattern used for currency affix comparison
  @param complexCurrencyParsing whether it is currency parsing or not
  @param type compare against currency type, LONG_NAME only or not.
  @param currency return value for parsed currency, for generic currency parsing
  mode, or null for normal parsing.  In generic currency parsing mode, any currency
  is parsed, not just the currency that this formatter is set to.
  @return length of input that matches, or -1 if match failure