CurrencyCode.h 412 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright (c) 2021, Tim Flynn <trflynn89@pm.me>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/HashMap.h>
  8. #include <AK/Optional.h>
  9. #include <AK/Span.h>
  10. #include <AK/StringView.h>
  11. namespace Unicode {
  12. struct CurrencyCode {
  13. Optional<int> minor_unit {};
  14. };
  15. Optional<CurrencyCode> get_currency_code(StringView currency);
  16. Span<StringView const> get_available_currencies();
  17. }