mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
'IsValidUTF8' const correctness
Does not modify the string; make it const.
This commit is contained in:
parent
381f09b1d7
commit
3dd4054838
@ -560,10 +560,10 @@ size_t UTF8CharLength(const uint8_t cInput)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// For checking if input string is a valid UTF-8 encoded string.
|
||||
bool IsValidUTF8(char* pszString)
|
||||
bool IsValidUTF8(const char* pszString)
|
||||
{
|
||||
char c;
|
||||
char* it;
|
||||
const char* it;
|
||||
|
||||
while (true)
|
||||
{
|
||||
|
@ -44,7 +44,7 @@ string Base64Decode(const string& svInput);
|
||||
string UTF8Encode(const wstring& wsvInput);
|
||||
//string UTF8Decode(const string& svInput);
|
||||
size_t UTF8CharLength(const uint8_t cInput);
|
||||
bool IsValidUTF8(char* pszString);
|
||||
bool IsValidUTF8(const char* pszString);
|
||||
|
||||
bool StringIsDigit(const string& svInput);
|
||||
bool CompareStringAlphabetically(const string& svA, const string& svB);
|
||||
|
Loading…
x
Reference in New Issue
Block a user