diff options
author | majestic <majesticcoding@gmail.com> | 2020-08-30 22:47:12 +0200 |
---|---|---|
committer | majestic <majesticcoding@gmail.com> | 2020-09-01 18:42:17 +0200 |
commit | 9f43b1988ba44a3704d4e9dbed21d48014694c95 (patch) | |
tree | b558deb3827025a77677144132881dd1f55228d7 /src/text | |
parent | Merge pull request #697 from erorcun/miami (diff) | |
download | re3-9f43b1988ba44a3704d4e9dbed21d48014694c95.tar re3-9f43b1988ba44a3704d4e9dbed21d48014694c95.tar.gz re3-9f43b1988ba44a3704d4e9dbed21d48014694c95.tar.bz2 re3-9f43b1988ba44a3704d4e9dbed21d48014694c95.tar.lz re3-9f43b1988ba44a3704d4e9dbed21d48014694c95.tar.xz re3-9f43b1988ba44a3704d4e9dbed21d48014694c95.tar.zst re3-9f43b1988ba44a3704d4e9dbed21d48014694c95.zip |
Diffstat (limited to 'src/text')
-rw-r--r-- | src/text/Text.cpp | 14 | ||||
-rw-r--r-- | src/text/Text.h | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/src/text/Text.cpp b/src/text/Text.cpp index dab1cae3..64f303eb 100644 --- a/src/text/Text.cpp +++ b/src/text/Text.cpp @@ -495,6 +495,20 @@ UnicodeToAsciiForMemoryCard(wchar *src) } void +UnicodeMakeUpperCase(wchar *dst, wchar *src) //idk what to do with it, seems to be incorrect implementation by R* +{ + while (*src != '\0') { + if (*src < 'a' || *src > 'z') + *dst = *src; + else + *dst = *src - 32; + dst++; + src++; + } + *dst = '\0'; +} + +void UnicodeStrcpy(wchar *dst, const wchar *src) { while((*dst++ = *src++) != '\0'); diff --git a/src/text/Text.h b/src/text/Text.h index d163b9c9..0bad9a83 100644 --- a/src/text/Text.h +++ b/src/text/Text.h @@ -8,6 +8,7 @@ void UnicodeStrcpy(wchar *dst, const wchar *src); void UnicodeStrcat(wchar *dst, wchar *append); int UnicodeStrlen(const wchar *str); void TextCopy(wchar *dst, const wchar *src); +void UnicodeMakeUpperCase(wchar *dst, wchar *src); struct CKeyEntry { |