aboutsummaryrefslogtreecommitdiff
path: root/include/convto.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove an obsolete overload of ConvToStr.Gravatar Sadie Powell2026-03-291-10/+1
| | | | | std::to_string is now defined by the C++ spec to use std::format so we may as well just do FMT::format in all cases.
* Convert some methods to use string_view.Gravatar Sadie Powell2026-03-141-1/+1
|
* Remove an obsolete ConvToStr overload.Gravatar Sadie Powell2025-03-221-12/+0
|
* Remove some obsolete ConvToNum overloads.Gravatar Sadie Powell2025-03-221-22/+0
| | | | These are not necessary now we use from_chars.
* Use from_chars instead of istringstream in ConvToNum.Gravatar Sadie Powell2025-03-021-2/+1
|
* Merge branch 'insp4' into master.Gravatar Sadie Powell2024-11-031-1/+1
|\
| * Update copyright headers.Gravatar InspIRCd Robot2024-11-021-1/+1
| |
* | Merge branch 'insp4' into master.Gravatar Sadie Powell2024-11-011-4/+13
|\|
| * Use fmtlib instead of iostream in ConvToStr where available.Gravatar Sadie Powell2024-11-011-1/+10
|/
* Update copyright headers.Gravatar InspIRCd Robot2024-06-071-1/+1
|
* We can't explicitly specify the signedness here as it causes issues.Gravatar Sadie Powell2023-05-171-2/+2
| | | | This reverts commit 023ca96054191b66643425d673acb66c08fa1048.
* Fix some issues with ConvToNum<char> and ConvToStr<char>.Gravatar Sadie Powell2023-05-161-6/+6
|
* Remove a now unused overload of ConvToStr.Gravatar Sadie Powell2022-10-071-16/+0
|
* Fix MSVC compatibility issues.Gravatar Sadie Powell2021-06-071-0/+16
|
* Fix the to_string implementation of ConvToStr.Gravatar Sadie Powell2021-05-101-2/+2
| | | | | I have no idea how I didn't notice this bug when it was originally written.
* Clean up the ConvTo functions.Gravatar Sadie Powell2021-04-151-46/+55
| | | | | | - Add a default parameter to ConvToNum. - Use std::to_string for types that implement it. - Document the functions properly.
* Fix a ton of pedantic compiler warnings.Gravatar Sadie Powell2021-04-041-3/+3
|
* Update copyright headers.Gravatar InspIRCd Robot2021-03-051-1/+0
|
* Update copyright headers.Gravatar InspIRCd Robot2020-04-241-0/+1
|
* Fix the signed-ness within ConvToNum char overloads.Gravatar Matt Schatz2020-03-241-4/+4
| | | | | It should be signed int with signed char and vice-versa. Currently, anything over 127 as unsigned char would return 0.
* Update copyright headers.Gravatar InspIRCd Robot2020-01-111-2/+2
|
* Add overloads for ConvToNum to prevent (unsigned) char weirdness.Gravatar Peter Powell2019-01-281-0/+16
|
* Fix conversion issues by replacing ConvToInt with ConvToNum<T>.Gravatar Peter Powell2018-12-121-10/+1
| | | | | | | The former was a thin wrapper around atol and brought with it all of the weird parsing logic of atol which is almost never what is actually wanted. It also almost never returned the numeric type which is actually wanted which can cause weird issues when casting.
* Fix a ton of -Wsign-conversion warnings.Gravatar Peter Powell2017-11-171-2/+2
|
* Add no-op ConvToStr(const std::string&)Gravatar Attila Molnar2016-02-251-0/+5
|
* Move implementation of ConvTo*() and related functions into convto.hGravatar Attila Molnar2016-02-251-0/+105