CountryCodeSource maybeStripInternationalPrefixAndNormalize(StringBuilder number,String possibleIddPrefix){
  if (number.length() == 0) {
    return CountryCodeSource.FROM_DEFAULT_COUNTRY;
  }
  Matcher m=PLUS_CHARS_PATTERN.matcher(number);
  if (m.lookingAt()) {
    number.delete(0,m.end());
    normalize(number);
    return CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN;
  }
  Pattern iddPattern=regexCache.getPatternForRegex(possibleIddPrefix);
  normalize(number);
  return parsePrefixAsIdd(iddPattern,number) ? CountryCodeSource.FROM_NUMBER_WITH_IDD : CountryCodeSource.FROM_DEFAULT_COUNTRY;
}

CountryCodeSource maybeStripInternationalPrefixAndNormalize ( StringBuilder number , String possibleIddPrefix ) { if ( number . length ( ) == 0 ) { return CountryCodeSource . FROM_DEFAULT_COUNTRY ; } Matcher m = PLUS_CHARS_PATTERN . matcher ( number ) ; if ( m . lookingAt ( ) ) { number . delete ( 0 , m . end ( ) ) ; normalize ( number ) ; return CountryCodeSource . FROM_NUMBER_WITH_PLUS_SIGN ; } Pattern iddPattern = regexCache . getPatternForRegex ( possibleIddPrefix ) ; normalize ( number ) ; return parsePrefixAsIdd ( iddPattern , number ) ? CountryCodeSource . FROM_NUMBER_WITH_IDD : CountryCodeSource . FROM_DEFAULT_COUNTRY ; }
strips any international prefix ( such as + , 00 , 011 ) present in the number provided , normalizes the resulting number , and indicates if an international prefix was present .
