xref: /aosp_15_r20/external/cronet/third_party/libc++/src/modules/std/locale.cppm (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1// -*- C++ -*-
2//===----------------------------------------------------------------------===//
3//
4// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5// See https://llvm.org/LICENSE.txt for license information.
6// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7//
8//===----------------------------------------------------------------------===//
9
10module;
11#include <__config>
12#ifndef _LIBCPP_HAS_NO_LOCALIZATION
13#  include <locale>
14#endif
15
16export module std:locale;
17#ifndef _LIBCPP_HAS_NO_LOCALIZATION
18export namespace std {
19  // [locale], locale
20  using std::has_facet;
21  using std::locale;
22  using std::use_facet;
23
24  // [locale.convenience], convenience interfaces
25  using std::isalnum;
26  using std::isalpha;
27  using std::isblank;
28  using std::iscntrl;
29  using std::isdigit;
30  using std::isgraph;
31  using std::islower;
32  using std::isprint;
33  using std::ispunct;
34  using std::isspace;
35  using std::isupper;
36  using std::isxdigit;
37  using std::tolower;
38  using std::toupper;
39
40  // [category.ctype], ctype
41  using std::codecvt;
42  using std::codecvt_base;
43  using std::codecvt_byname;
44  using std::ctype;
45  using std::ctype_base;
46  using std::ctype_byname;
47
48  // [category.numeric], numeric
49  using std::num_get;
50  using std::num_put;
51  using std::numpunct;
52  using std::numpunct_byname;
53
54  // [category.collate], collation
55  using std::collate;
56  using std::collate_byname;
57
58  // [category.time], date and time
59  using std::time_base;
60  using std::time_get;
61  using std::time_get_byname;
62  using std::time_put;
63  using std::time_put_byname;
64
65  // [category.monetary], money
66  using std::money_base;
67  using std::money_get;
68  using std::money_put;
69  using std::moneypunct;
70  using std::moneypunct_byname;
71
72  // [category.messages], message retrieval
73  using std::messages;
74  using std::messages_base;
75  using std::messages_byname;
76
77  // [depr.conversions.buffer]
78  using std::wbuffer_convert;
79
80  // [depr.conversions.string]
81  using std::wstring_convert;
82} // namespace std
83#endif // _LIBCPP_HAS_NO_LOCALIZATION
84