Mark de Wever c40595f2ce [libc++][modules] Adds std module cppm files.
This adds the cppm files of D144994. These files by themselves will do
nothing. The goal is to reduce the size of D144994 and making it easier
to review the real changes of the patch.

Implements parts of
- P2465R3 Standard Library Modules std and std.compat

Reviewed By: ldionne, ChuanqiXu, aaronmondal, #libc

Differential Revision: https://reviews.llvm.org/D151030
2023-05-23 18:51:27 +02:00

84 lines
2.0 KiB
C++

// -*- C++ -*-
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
module;
#include <__config>
#ifndef _LIBCPP_HAS_NO_LOCALIZATION
# include <locale>
#endif
export module std:locale;
#ifndef _LIBCPP_HAS_NO_LOCALIZATION
export namespace std {
// [locale], locale
using std::has_facet;
using std::locale;
using std::use_facet;
// [locale.convenience], convenience interfaces
using std::isalnum;
using std::isalpha;
using std::isblank;
using std::iscntrl;
using std::isdigit;
using std::isgraph;
using std::islower;
using std::isprint;
using std::ispunct;
using std::isspace;
using std::isupper;
using std::isxdigit;
using std::tolower;
using std::toupper;
// [category.ctype], ctype
using std::codecvt;
using std::codecvt_base;
using std::codecvt_byname;
using std::ctype;
using std::ctype_base;
using std::ctype_byname;
// [category.numeric], numeric
using std::num_get;
using std::num_put;
using std::numpunct;
using std::numpunct_byname;
// [category.collate], collation
using std::collate;
using std::collate_byname;
// [category.time], date and time
using std::time_base;
using std::time_get;
using std::time_get_byname;
using std::time_put;
using std::time_put_byname;
// [category.monetary], money
using std::money_base;
using std::money_get;
using std::money_put;
using std::moneypunct;
using std::moneypunct_byname;
// [category.messages], message retrieval
using std::messages;
using std::messages_base;
using std::messages_byname;
// [depr.conversions.buffer]
using std::wbuffer_convert;
// [depr.conversions.string]
using std::wstring_convert;
} // namespace std
#endif // _LIBCPP_HAS_NO_LOCALIZATION