diff --git a/Sources/Currency/CurrencyMint.swift b/Sources/Currency/CurrencyMint.swift index 7441385..e205729 100644 --- a/Sources/Currency/CurrencyMint.swift +++ b/Sources/Currency/CurrencyMint.swift @@ -81,7 +81,7 @@ public final class CurrencyMint { extension CurrencyMint { - fileprivate static func lookup(byAlphaCode code: String) -> AnyCurrency.Type? { + public static func lookup(byAlphaCode code: String) -> AnyCurrency.Type? { switch code { case "AED": return AED.self case "AFN": return AFN.self @@ -245,7 +245,7 @@ extension CurrencyMint { } } - fileprivate static func lookup(byNumCode code: UInt16) -> AnyCurrency.Type? { + public static func lookup(byNumCode code: UInt16) -> AnyCurrency.Type? { switch code { case 784: return AED.self case 971: return AFN.self diff --git a/Sources/Currency/CurrencyMint.swift.gyb b/Sources/Currency/CurrencyMint.swift.gyb index 3e53223..f611dc8 100644 --- a/Sources/Currency/CurrencyMint.swift.gyb +++ b/Sources/Currency/CurrencyMint.swift.gyb @@ -85,7 +85,7 @@ public final class CurrencyMint { % reader = csv.DictReader(file) extension CurrencyMint { - fileprivate static func lookup(byAlphaCode code: String) -> AnyCurrency.Type? { + public static func lookup(byAlphaCode code: String) -> AnyCurrency.Type? { switch code { % for row in reader: % alphaCode = row["Ccy"] @@ -97,7 +97,7 @@ extension CurrencyMint { } } - fileprivate static func lookup(byNumCode code: UInt16) -> AnyCurrency.Type? { + public static func lookup(byNumCode code: UInt16) -> AnyCurrency.Type? { switch code { % file.seek(0) % next(reader)