-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(common): replace codecvt in module u16 🐸 #12107
chore(common): replace codecvt in module u16 🐸 #12107
Conversation
User Test ResultsTest specification and instructions User tests are not required Test Artifacts
|
In kmx_u16.cpp/ u16tof(): use strtof() inside of u16tof() since u16tof() gave interesting results (e.g. rounds where it should not) |
a0ae35a
to
a3a7bd3
Compare
@@ -580,7 +580,7 @@ KMX_BOOL ParseLine(PFILE_KEYBOARD fk, PKMX_WCHAR str) { | |||
//swprintf(tstr, "%d", fk->currentGroup); | |||
/* Record a system store for the line number of the begin statement */ | |||
//wcscpy(tstr, DEBUGSTORE_MATCH); | |||
u16sprintf(tstr, _countof(tstr), L"%ls%d ", u16fmt(DEBUGSTORE_MATCH).c_str(), (int) fk->currentGroup); | |||
u16sprintf(tstr, _countof(tstr), L"%ls%d ", wstring_from_u16string(DEBUGSTORE_MATCH).c_str(), (int) fk->currentGroup); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u16sprintf(tstr, _countof(tstr), L"%ls%d ", wstring_from_u16string(DEBUGSTORE_MATCH).c_str(), (int) fk->currentGroup); | |
u16sprintf(tstr, _countof(tstr), L"%ls%d ", DEBUGSTORE_MATCH_L, (int) fk->currentGroup); |
and then define:
#define DEBUGSTORE_MATCH_U u"M"
#define DEBUGSTORE_MATCH_L L"M"
….._L , DEBUGSTORE_..._U
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
777bf2e
into
refactor/core/make-utfcodec-common
std::codecvt will be deprecated by C++17.
We still use std::codecvt in module u16 in /developer/src/kmcmplib/src/
std::codecvt needs to be exchanged with "convert" from utfcodec.hpp
fixes #11922
@keymanapp-test-bot skip