Commit Graph

16 Commits

Author SHA1 Message Date
Kindi 624a4f46b5 dont use codecvt for utf8.char 2024-06-30 01:49:24 +08:00
Kindi d21f3809bd test utf8 2024-06-10 18:15:07 +08:00
Kindi 22d685eca3 ensure fitness 2024-06-08 22:11:59 +08:00
AnyOldName3 28131fd62b Fixes for a whole bunch of warnings
These warnings were always enabled, but we didn't see them due to https://gitlab.com/OpenMW/openmw/-/issues/7882.
I do not fully understand the cause of 7822 as I can't repro it in a minimal CMake project.

Some of these fixes are thought through.
Some are sensible best guesses.
Some are kind of a stab in the dark as I don't know whether there was a
possible bug the warning was telling me about that I've done nothing to
help by introducing a static_cast.

Nearly all of these warnings were about some kind of narrowing
conversion, so I'm not sure why they weren't firing with GCC and Clang,
which have -Wall -Wextra -pedantic set, which should imply -Wnarrowing,
and they can't have been affected by 7882.

There were also some warnings being triggered from Boost code.
The vast majority of library headers that do questionable things weren't
firing warnings off, but for some reason, /external:I wasn't putting
these Boost headers into external mode.

We need these warnings dealt with one way or another so we can switch
the default Windows CI from MSBuild (which doesn't do ccache) to Ninja
(which does).
I have the necessary magic for that on a branch, but the branch won't
build because of these warnings.
2024-03-14 23:39:33 +00:00
Kindi c77b88cd38 fix string format 2023-09-08 10:39:28 +08:00
Andrei Kortunov a849a053be Do not copy vector 2023-09-04 16:50:45 +04:00
Kindi 7eb456a169 refactoring for readability 2023-09-03 19:20:59 +08:00
Kindi 8798217b51 remove const keyword from all string_view 2023-09-02 12:21:07 +08:00
Kindi db287b2bc6 dont use pass by const reference for small types in func arguments 2023-09-01 19:35:50 +08:00
Kindi dd61caa96d using misc::stringutils::format and simplify relativeposition function 2023-09-01 19:26:18 +08:00
Kindi af58b531da change function names and add documentation in overview.rst 2023-08-30 02:33:27 +08:00
Kindi 532230254b add documentation 2023-08-28 02:37:52 +08:00
Kindi 92842cedf5 len,codepoint,offset 2023-08-27 16:12:52 +08:00
Kindi 6d02c31720 utf8.codes 2023-08-18 00:01:11 +08:00
Kindi d9c102e14d utf8.char 2023-08-13 23:37:31 +08:00
Kindi 8622a6da3b luautf8lib 2023-08-10 18:50:22 +08:00