Back to home page

EIC code displayed by LXR

 
 

    


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

0001 // -*- C++ -*-
0002 //===-----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009 // These are reimplementations of some extended locale functions ( *_l ) that
0010 // aren't part of POSIX.  They are widely available though (GLIBC, BSD, maybe
0011 // others).  The unifying aspect in this case is that all of these functions
0012 // convert strings to some numeric type.
0013 //===----------------------------------------------------------------------===//
0014 
0015 #ifndef _LIBCPP___CXX03___SUPPORT_XLOCALE_STRTONUM_FALLBACK_H
0016 #define _LIBCPP___CXX03___SUPPORT_XLOCALE_STRTONUM_FALLBACK_H
0017 
0018 #include <__cxx03/__config>
0019 #include <__cxx03/stdlib.h>
0020 
0021 #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
0022 #  include <__cxx03/wchar.h>
0023 #endif
0024 
0025 inline _LIBCPP_HIDE_FROM_ABI float strtof_l(const char* __nptr, char** __endptr, locale_t) {
0026   return ::strtof(__nptr, __endptr);
0027 }
0028 
0029 inline _LIBCPP_HIDE_FROM_ABI double strtod_l(const char* __nptr, char** __endptr, locale_t) {
0030   return ::strtod(__nptr, __endptr);
0031 }
0032 
0033 inline _LIBCPP_HIDE_FROM_ABI long double strtold_l(const char* __nptr, char** __endptr, locale_t) {
0034   return ::strtold(__nptr, __endptr);
0035 }
0036 
0037 inline _LIBCPP_HIDE_FROM_ABI long long strtoll_l(const char* __nptr, char** __endptr, int __base, locale_t) {
0038   return ::strtoll(__nptr, __endptr, __base);
0039 }
0040 
0041 inline _LIBCPP_HIDE_FROM_ABI unsigned long long strtoull_l(const char* __nptr, char** __endptr, int __base, locale_t) {
0042   return ::strtoull(__nptr, __endptr, __base);
0043 }
0044 
0045 #endif // _LIBCPP___CXX03___SUPPORT_XLOCALE_STRTONUM_FALLBACK_H