9 Commits

Author SHA1 Message Date
Chris Robinson
9018fe3f9a Avoid some pointer arithmetic 2024-03-12 08:12:37 -07:00
Chris Robinson
700b4dcf03 Add and use a function to get string_view lengths as an int
The .*s formatter needs the length of the subsequent string as a (signed) int,
but a string_view uses size_t for the length, which is an unsigned integer and
(potentially) larger. So the length has to be clamped to not overflow the int
and wrap to negative when cast.
2024-01-27 22:08:58 -08:00
Chris Robinson
9296af5566 Use a string_view for the backend open method 2023-08-06 18:49:42 -07:00
Max Bachmann
34d07fde84 disable unavailable functionality on xbox (#887)
* disable unavailable functionality on xbox

* use not std version of getenv on xbox
2023-07-26 19:57:53 +00:00
Chris Robinson
7cda37a67c Replace al::optional with std::optional 2023-05-04 08:03:40 -07:00
Chris Robinson
974d1b9e6d Avoid unnecessary uses of make_optional 2023-01-13 01:25:20 -08:00
Chris Robinson
4c0f77c13e Remove some unnecessary constructors 2020-12-27 06:43:59 -08:00
Chris Robinson
4620912f0f Don't inline the utf8 converters 2019-10-01 23:33:00 -07:00
Chris Robinson
1aaf65abfe Add methods to get env vars as an optional 2019-08-12 03:59:52 -07:00