-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from cppalliance/docs
Collected documentation updates from review comments
- Loading branch information
Showing
12 changed files
with
211 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
//// | ||
Copyright 2024 Matt Borland | ||
Distributed under the Boost Software License, Version 1.0. | ||
https://www.boost.org/LICENSE_1_0.txt | ||
//// | ||
|
||
[#acknowledgments] | ||
= Acknowledgments | ||
:idprefix: ack_ | ||
|
||
Special thanks to the following people (non-inclusive list): | ||
|
||
- Peter Dimov for providing technical guidance and contributing to the library throughout development | ||
- Chris Kormanyos for serving as the library review manager | ||
- Stephan T. Lavavej for providing the basis for the benchmarks. | ||
- All that reviewed the library and provided feedback to make it better |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
//// | ||
Copyright 2023 Matt Borland | ||
Distributed under the Boost Software License, Version 1.0. | ||
https://www.boost.org/LICENSE_1_0.txt | ||
//// | ||
|
||
[#api_reference] | ||
= API Reference | ||
:idprefix: api_ref_ | ||
|
||
== Functions | ||
|
||
- <<from_chars_definitions_, `boost::charconv::from_chars`>> | ||
- <<from_chars_definitions_, `boost::charconv::from_chars_erange`>> | ||
- <<to_chars_definitions_, `boost::charconv::to_chars`>> | ||
|
||
== Structures | ||
|
||
- <<from_chars_definitions_, `boost::charconv::from_chars_result`>> | ||
- <<to_chars_definitions_, `boost::charconv::to_chars_result`>> | ||
|
||
== Enums | ||
|
||
- <<chars_format_defintion_,`boost::charconv::chars_format`>> | ||
|
||
== Constants | ||
|
||
- <<limits_definitions_, `boost::charconv::limits::digits`>> | ||
- <<limits_definitions_, `boost::charconv::limits::digits10`>> | ||
|
||
== Macros | ||
|
||
- <<integral_usage_notes_, `BOOST_CHARCONV_CONSTEXPR`>> | ||
- <<run_benchmarks_, `BOOST_CHARCONV_RUN_BENCHMARKS`>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
//// | ||
Copyright 2024 Matt Borland | ||
Distributed under the Boost Software License, Version 1.0. | ||
https://www.boost.org/LICENSE_1_0.txt | ||
//// | ||
|
||
[#basic_usage] | ||
= Basic Usage Examples | ||
:idprefix: basic_usage_ | ||
|
||
== Usage Examples | ||
[source, c++] | ||
---- | ||
#include <boost/charconv.hpp> | ||
const char* buffer = "42"; | ||
int v = 0; | ||
boost::charconv::from_chars_result r = boost::charconv::from_chars(buffer, buffer + std::strlen(buffer), v); | ||
assert(r.ec == std::errc()); | ||
assert(v == 42); | ||
char buffer[64]; | ||
int v = 123456; | ||
boost::charconv:to_chars_result r = boost::charconv::to_chars(buffer, buffer + sizeof(buffer), v); | ||
assert(r.ec == std::errc()); | ||
assert(!strncmp(buffer, "123456", 6)); // Strncmp returns 0 on match | ||
---- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.