Debian Codegraph @

intl/components/src/Currency.h

raw
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #ifndef intl_components_Currency_h_
6 #define intl_components_Currency_h_
7
8 #include "mozilla/intl/ICU4CGlue.h"
9 #include "mozilla/intl/ICUError.h"
10 #include "mozilla/Result.h"
11
12 namespace mozilla::intl {
13
14 /**
15 * This component is a Mozilla-focused API for working with currencies in
16 * internationalization code.
17 */
18 class Currency final {
19 public:
20 Currency() = delete;
21
22 /**
23 * Returns an enumeration of all supported ISO currency codes.
24 */
25 static Result<SpanEnumeration<char>, ICUError> GetISOCurrencies();
26 };
27
28 } // namespace mozilla::intl
29
30 #endif