summaryrefslogtreecommitdiffstats
path: root/Source/cm_codecvt.cxx
Commit message (Collapse)AuthorAgeFilesLines
* IWYU: Update for Debian 12 CI jobBrad King2023-07-281-0/+2
| | | | | | `include-what-you-use` diagnostics, in practice, are specific to the environment's compiler and standard library. Update includes to satisfy IWYU for our CI job under Debian 12.
* codecvt: Extrace codecvt::Encoding to remove codecvt includesClemens Wasser2023-06-221-6/+6
|
* Source: use C++11 nullptrscivision2023-02-141-2/+2
|
* cm_codecvt: Add support for the Windows console output code pageBrad King2022-10-291-0/+6
| | | | This is distinct from the Windows ANSI code page.
* Source: Fix -Wmissing-variable-declarations warningSean McBride2021-12-011-4/+1
|
* Source: Replace C headers with C++ onesRose2021-11-021-3/+3
| | | | In applicable areas only, of course.
* Source: Fix Clang -Wdeprecated warningsSean McBride2021-10-151-3/+3
| | | | Applied C++ 'rule of three'.
* NMake: Use UTF-8 with BOM if supported by nmakeAmine Najahi2021-05-051-0/+1
| | | | Fixes: #21792
* Code style: add missed explicit 'this->'Oleksandr Koval2021-01-051-4/+4
| | | | | CMake uses explicit 'this->' style. Using custom clang-tidy check we can detect and fix places where 'this->' was missed.
* Revise include order using clang-format-6.0Kitware Robot2019-10-011-1/+2
| | | | | Run the `clang-format.bash` script to update our C and C++ code to a new include order `.clang-format`. Use `clang-format` version 6.0.
* clang-tidy: Use `= default`Regina Pfeifer2019-01-251-3/+1
| | | | | | Suppress some cases in `Source/cmGeneratorExpressionNode.cxx` and `Source/cmUVHandlePtr.h` where a few older compilers require a user-defined default constructor (with `{}`).
* Revise C++ coding style using clang-format-6.0Kitware Robot2018-06-011-5/+5
| | | | | | | | | | | | Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 6.0. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* cm_codecvt: cleanup superfluous semicolonsMatthias Maennich2017-10-301-6/+8
|
* codecvt: Re-implement do_out and do_unshiftBrad King2017-05-251-130/+158
| | | | | | | | | | | | | The previous implementation assumed that only one byte would be given in the `from` buffer by the caller at a time. This may be true for MSVC but is not for the GNU library on Windows. Re-implement these methods to handle more than one byte per call. Also simplify the state management by keeping all state between calls directly in the `mbstate_t` argument instead of using it to index our own heap-allocated state. Fixes: #16893
* Use quotes for non-system includesDaniel Pfeifer2017-04-111-1/+1
| | | | | | | | | | | | | Automate with: git grep -l '#include <cm_' -- Source \ | xargs sed -i 's/#include <\(cm_.*\)>/#include "\1"/g' git grep -l '#include <cmsys/' -- Source \ | xargs sed -i 's/#include <\(cmsys\/.*\)>/#include "\1"/g' git grep -l '#include <cm[A-Z]' -- Source \ | xargs sed -i 's/#include <\(cm[A-Z].*\)>/#include "\1"/g'
* codecvt: Add class for encoding conversionDāvis Mosāns2016-10-061-0/+215
Add a `codecvt` class that can be used as facet for locale so that it's possible to convert from internal UTF-8 encoding to other encodings such as Windows ANSI codepage.