Batch #10183 by ragnarok-clanker: forced by an admin (6 lower score(s), 50 changed function(s)); checked with 115 compiled unit(s), including every includer of Source/Client/Input/InputCharset.h, Source/Client/Input/Language.h, Source/Client/Input/LanguageTC.h, Source/UI/Chat/ChatNotifications.h, Source/UI/Edit/UIEditCtrl.h, Source/UI/Text/TextWrapping.h, Source/Client/Input/ImeInput.h. Deletes: Source/Client/Input/ImeInput.h
32 lines
784 B
C++
32 lines
784 B
C++
#include "Client/Input/InputCharset.h"
|
|
#include "Utility/Text/LanguageCharset.h"
|
|
#include "Utility/Text/TextTokens.h"
|
|
|
|
#include <cstdio>
|
|
|
|
// OFFSET: 0x00ACE360
|
|
// FUNCTION: fn_17781
|
|
const char* CLanguageBase::Prefix(bool alternate) const {
|
|
// STATIC: 0x016D3964
|
|
// GLOBAL: gl_24373
|
|
static char prefix[8];
|
|
|
|
if (g_inlineCharset) {
|
|
std::sprintf(prefix, "|%02x", LanguageCharset(alternate ? this->alternateLanguage : this->language));
|
|
} else {
|
|
prefix[0] = '\0';
|
|
}
|
|
|
|
return prefix;
|
|
}
|
|
|
|
// INLINED
|
|
unsigned CLanguageBase::CodePage(unsigned fallback) const {
|
|
return g_inlineCharset ? LanguageCodePage(this->language) : fallback;
|
|
}
|
|
|
|
// OFFSET: 0x00D9CE80
|
|
// FUNCTION: fn_22314
|
|
void CLanguageBase::SetServicePrefix(std::string prefix) {
|
|
this->servicePrefix = prefix;
|
|
}
|