GetCountryCodeForRegion static method

int GetCountryCodeForRegion(
  1. String regionCode
)

Implementation

static int GetCountryCodeForRegion(String regionCode) {
  final activationFactory =
      CreateActivationFactory(_className, IID_IPhoneNumberFormatterStatics);

  try {
    final result = IPhoneNumberFormatterStatics(activationFactory)
        .GetCountryCodeForRegion(regionCode);
    return result;
  } finally {
    free(activationFactory);
  }
}