%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/emergentqj/actioncivile/pre-auth/.f81b4c9eb38fd76cdf20462cf2027aa3/static/node_modules/country-flag-icons/source/
Upload File :
Create Path :
Current File : /home/emergentqj/actioncivile/pre-auth/.f81b4c9eb38fd76cdf20462cf2027aa3/static/node_modules/country-flag-icons/source/unicode.js

/**
 * Creates Unicode flag from a two-letter ISO country code.
 * https://stackoverflow.com/questions/24050671/how-to-put-japan-flag-character-in-a-string
 * @param  {string} country — A two-letter ISO country code (case-insensitive).
 * @return {string}
 */
export default function getCountryFlag(country) {
	return getRegionalIndicatorSymbol(country[0]) + getRegionalIndicatorSymbol(country[1])
}

/**
 * Converts a letter to a Regional Indicator Symbol.
 * @param  {string} letter
 * @return {string}
 */
function getRegionalIndicatorSymbol(letter) {
	return String.fromCodePoint(0x1F1E6 - 65 + letter.toUpperCase().charCodeAt(0))
}

Zerion Mini Shell 1.0