Skip to content

Commit

Permalink
Added support for HONG KONG and SPAIN
Browse files Browse the repository at this point in the history
  • Loading branch information
ubicorn authored Dec 7, 2019
1 parent 58e300f commit 35a0e0a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Test/Test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ uint8_t Test::getCurrencyIdFromIso2Code(char* iso2code) {
if(strcmp(iso2code, "IS") == 0 || strcmp(iso2code, "is") == 0) {
currencyId = CURRENCY_ICELAND;
}

if(strcmp(iso2code, "HK") == 0 || strcmp(iso2code, "hk") == 0) {
currencyId = CURRENCY_HONG_KONG;
}

if(strcmp(iso2code, "SP") == 0 || strcmp(iso2code, "sp") == 0) {
currencyId = CURRENCY_SPAIN;
}

if(strcmp(iso2code, "US") == 0 || strcmp(iso2code, "us") == 0) {
currencyId = CURRENCY_USA;
Expand Down

0 comments on commit 35a0e0a

Please sign in to comment.