mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 06:26:36 +00:00

Implements std::from_chars for float and double. The implementation uses LLVM-libc to do the real parsing. Since this is the first time libc++ uses LLVM-libc there is a bit of additional infrastructure code. The patch is based on the [RFC] Project Hand In Hand (LLVM-libc/libc++ code sharing) https://discourse.llvm.org/t/rfc-project-hand-in-hand-llvm-libc-libc-code-sharing/77701
25 lines
722 B
C++
25 lines
722 B
C++
//===-- String to int conversion utils --------------------------*- 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_LIBC_SHARED_STR_TO_INTEGER_H
|
|
#define LLVM_LIBC_SHARED_STR_TO_INTEGER_H
|
|
|
|
#include "src/__support/str_to_integer.h"
|
|
|
|
namespace LIBC_NAMESPACE_DECL {
|
|
namespace shared {
|
|
|
|
using LIBC_NAMESPACE::StrToNumResult;
|
|
|
|
using internal::strtointeger;
|
|
|
|
} // namespace shared
|
|
} // namespace LIBC_NAMESPACE_DECL
|
|
|
|
#endif // LLVM_LIBC_SHARED_STR_TO_INTEGER_H
|