Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-03 08:13:54

0001 //===-----------------------------------------------------------------------===//
0002 //
0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 // See https://llvm.org/LICENSE.txt for license information.
0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 //
0007 //===----------------------------------------------------------------------===//
0008 
0009 #ifndef _LIBCPP___LOCALE_DIR_SUPPORT_NO_LOCALE_CHARACTERS_H
0010 #define _LIBCPP___LOCALE_DIR_SUPPORT_NO_LOCALE_CHARACTERS_H
0011 
0012 #include <__config>
0013 #include <__cstddef/size_t.h>
0014 #include <cctype>
0015 #include <cstdlib>
0016 #include <cstring>
0017 #include <ctime>
0018 #if _LIBCPP_HAS_WIDE_CHARACTERS
0019 #  include <cwctype>
0020 #endif
0021 
0022 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0023 #  pragma GCC system_header
0024 #endif
0025 
0026 _LIBCPP_BEGIN_NAMESPACE_STD
0027 namespace __locale {
0028 
0029 //
0030 // Character manipulation functions
0031 //
0032 #if defined(_LIBCPP_BUILDING_LIBRARY)
0033 inline _LIBCPP_HIDE_FROM_ABI int __islower(int __c, __locale_t) { return std::islower(__c); }
0034 
0035 inline _LIBCPP_HIDE_FROM_ABI int __isupper(int __c, __locale_t) { return std::isupper(__c); }
0036 #endif
0037 
0038 inline _LIBCPP_HIDE_FROM_ABI int __isdigit(int __c, __locale_t) { return std::isdigit(__c); }
0039 
0040 inline _LIBCPP_HIDE_FROM_ABI int __isxdigit(int __c, __locale_t) { return std::isxdigit(__c); }
0041 
0042 #if defined(_LIBCPP_BUILDING_LIBRARY)
0043 inline _LIBCPP_HIDE_FROM_ABI int __toupper(int __c, __locale_t) { return std::toupper(__c); }
0044 
0045 inline _LIBCPP_HIDE_FROM_ABI int __tolower(int __c, __locale_t) { return std::tolower(__c); }
0046 
0047 inline _LIBCPP_HIDE_FROM_ABI int __strcoll(const char* __s1, const char* __s2, __locale_t) {
0048   return std::strcoll(__s1, __s2);
0049 }
0050 
0051 inline _LIBCPP_HIDE_FROM_ABI size_t __strxfrm(char* __dest, const char* __src, size_t __n, __locale_t) {
0052   return std::strxfrm(__dest, __src, __n);
0053 }
0054 
0055 #  if _LIBCPP_HAS_WIDE_CHARACTERS
0056 inline _LIBCPP_HIDE_FROM_ABI int __iswctype(wint_t __c, wctype_t __type, __locale_t) {
0057   return std::iswctype(__c, __type);
0058 }
0059 
0060 inline _LIBCPP_HIDE_FROM_ABI int __iswspace(wint_t __c, __locale_t) { return std::iswspace(__c); }
0061 
0062 inline _LIBCPP_HIDE_FROM_ABI int __iswprint(wint_t __c, __locale_t) { return std::iswprint(__c); }
0063 
0064 inline _LIBCPP_HIDE_FROM_ABI int __iswcntrl(wint_t __c, __locale_t) { return std::iswcntrl(__c); }
0065 
0066 inline _LIBCPP_HIDE_FROM_ABI int __iswupper(wint_t __c, __locale_t) { return std::iswupper(__c); }
0067 
0068 inline _LIBCPP_HIDE_FROM_ABI int __iswlower(wint_t __c, __locale_t) { return std::iswlower(__c); }
0069 
0070 inline _LIBCPP_HIDE_FROM_ABI int __iswalpha(wint_t __c, __locale_t) { return std::iswalpha(__c); }
0071 
0072 inline _LIBCPP_HIDE_FROM_ABI int __iswblank(wint_t __c, __locale_t) { return std::iswblank(__c); }
0073 
0074 inline _LIBCPP_HIDE_FROM_ABI int __iswdigit(wint_t __c, __locale_t) { return std::iswdigit(__c); }
0075 
0076 inline _LIBCPP_HIDE_FROM_ABI int __iswpunct(wint_t __c, __locale_t) { return std::iswpunct(__c); }
0077 
0078 inline _LIBCPP_HIDE_FROM_ABI int __iswxdigit(wint_t __c, __locale_t) { return std::iswxdigit(__c); }
0079 
0080 inline _LIBCPP_HIDE_FROM_ABI wint_t __towupper(wint_t __c, __locale_t) { return std::towupper(__c); }
0081 
0082 inline _LIBCPP_HIDE_FROM_ABI wint_t __towlower(wint_t __c, __locale_t) { return std::towlower(__c); }
0083 
0084 inline _LIBCPP_HIDE_FROM_ABI int __wcscoll(const wchar_t* __ws1, const wchar_t* __ws2, __locale_t) {
0085   return std::wcscoll(__ws1, __ws2);
0086 }
0087 
0088 inline _LIBCPP_HIDE_FROM_ABI size_t __wcsxfrm(wchar_t* __dest, const wchar_t* __src, size_t __n, __locale_t) {
0089   return std::wcsxfrm(__dest, __src, __n);
0090 }
0091 #  endif // _LIBCPP_HAS_WIDE_CHARACTERS
0092 
0093 inline _LIBCPP_HIDE_FROM_ABI size_t
0094 __strftime(char* __s, size_t __max, const char* __format, const struct tm* __tm, __locale_t) {
0095   return std::strftime(__s, __max, __format, __tm);
0096 }
0097 #endif // _LIBCPP_BUILDING_LIBRARY
0098 
0099 } // namespace __locale
0100 _LIBCPP_END_NAMESPACE_STD
0101 
0102 #endif // _LIBCPP___LOCALE_DIR_SUPPORT_NO_LOCALE_CHARACTERS_H