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_STRTONUM_H
0010 #define _LIBCPP___LOCALE_DIR_SUPPORT_NO_LOCALE_STRTONUM_H
0011 
0012 #include <__config>
0013 #include <cstdlib>
0014 
0015 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0016 #  pragma GCC system_header
0017 #endif
0018 
0019 _LIBCPP_BEGIN_NAMESPACE_STD
0020 namespace __locale {
0021 
0022 //
0023 // Strtonum functions
0024 //
0025 inline _LIBCPP_HIDE_FROM_ABI float __strtof(const char* __nptr, char** __endptr, __locale_t) {
0026   return std::strtof(__nptr, __endptr);
0027 }
0028 
0029 inline _LIBCPP_HIDE_FROM_ABI double __strtod(const char* __nptr, char** __endptr, __locale_t) {
0030   return std::strtod(__nptr, __endptr);
0031 }
0032 
0033 inline _LIBCPP_HIDE_FROM_ABI long double __strtold(const char* __nptr, char** __endptr, __locale_t) {
0034   return std::strtold(__nptr, __endptr);
0035 }
0036 
0037 inline _LIBCPP_HIDE_FROM_ABI long long __strtoll(const char* __nptr, char** __endptr, int __base, __locale_t) {
0038   return std::strtoll(__nptr, __endptr, __base);
0039 }
0040 
0041 inline _LIBCPP_HIDE_FROM_ABI unsigned long long
0042 __strtoull(const char* __nptr, char** __endptr, int __base, __locale_t) {
0043   return std::strtoull(__nptr, __endptr, __base);
0044 }
0045 
0046 } // namespace __locale
0047 _LIBCPP_END_NAMESPACE_STD
0048 
0049 #endif // _LIBCPP___LOCALE_DIR_SUPPORT_NO_LOCALE_STRTONUM_H