toCountryCodeAlpha3

fun toCountryCodeAlpha3(context: Context, alpha2CountryCode: String): String?

Convert from an ISO 3166 Alpha-2 country code to an ISO 3166 Alpha-3 country code. For example "US" -> "USA"

Return

The ISO 3166 Alpha-3 country code or null if it could not be converted

Parameters

context

Context needed to read resource files

alpha2CountryCode

The ISO 3166 Alpha-2 country code to convert