Warning: This file is not a C or C++ file. It does not have highlighting.

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
10#ifndef _LIBCPP___CXX03___SUPPORT_XLOCALE_NOP_LOCALE_MGMT_H
11#define _LIBCPP___CXX03___SUPPORT_XLOCALE_NOP_LOCALE_MGMT_H
12
13#include <__cxx03/__config>
14
15// Patch over lack of extended locale support
16typedef void* locale_t;
17
18inline _LIBCPP_HIDE_FROM_ABI locale_t duplocale(locale_t) { return NULL; }
19
20inline _LIBCPP_HIDE_FROM_ABI void freelocale(locale_t) {}
21
22inline _LIBCPP_HIDE_FROM_ABI locale_t newlocale(int, const char*, locale_t) { return NULL; }
23
24inline _LIBCPP_HIDE_FROM_ABI locale_t uselocale(locale_t) { return NULL; }
25
26#define LC_COLLATE_MASK (1 << LC_COLLATE)
27#define LC_CTYPE_MASK (1 << LC_CTYPE)
28#define LC_MESSAGES_MASK (1 << LC_MESSAGES)
29#define LC_MONETARY_MASK (1 << LC_MONETARY)
30#define LC_NUMERIC_MASK (1 << LC_NUMERIC)
31#define LC_TIME_MASK (1 << LC_TIME)
32#define LC_ALL_MASK \
33 (LC_COLLATE_MASK | LC_CTYPE_MASK | LC_MONETARY_MASK | LC_NUMERIC_MASK | LC_TIME_MASK | LC_MESSAGES_MASK)
34
35#endif // _LIBCPP___CXX03___SUPPORT_XLOCALE_NOP_LOCALE_MGMT_H
36

Warning: This file is not a C or C++ file. It does not have highlighting.

source code of libcxx/include/__cxx03/__support/xlocale/__nop_locale_mgmt.h