Countries

esc.utils.Countries
object Countries

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Countries.type

Members list

Extensions

Extensions

extension (nameElement: String)
def isCountry: Boolean

Extension function to check whether a string is a country or not.

Extension function to check whether a string is a country or not.

Attributes

Returns

true if it match a country, otherwise false.

extension (nameElement: String)
def toIsoCountry: (Boolean, String)

Extension function to convert a string to a country.

Extension function to convert a string to a country.

Attributes

Returns

(true, iso2CountryCode) if the country was found. (false, originalString) if the country was not found.