aboutsummaryrefslogtreecommitdiff
path: root/include/convto.h
Commit message (Expand)AuthorAgeFilesLines
* Remove an obsolete ConvToStr overload.Gravatar Sadie Powell2025-03-221-12/+0
* Remove some obsolete ConvToNum overloads.•••These are not necessary now we use from_chars. Gravatar Sadie Powell2025-03-221-22/+0
* 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.•••This reverts commit 023ca96054191b66643425d673acb66c08fa1048. Gravatar Sadie Powell2023-05-171-2/+2
* 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.•••I have no idea how I didn't notice this bug when it was originally written. Gravatar Sadie Powell2021-05-101-2/+2
* Clean up the ConvTo functions.•••- Add a default parameter to ConvToNum. - Use std::to_string for types that implement it. - Document the functions properly. Gravatar Sadie Powell2021-04-151-46/+55
* 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.•••It should be signed int with signed char and vice-versa. Currently, anything over 127 as unsigned char would return 0. Gravatar Matt Schatz2020-03-241-4/+4
* 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>.•••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. Gravatar Peter Powell2018-12-121-10/+1
* 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