summaryrefslogtreecommitdiffstats
path: root/src/text/Text.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-10-11 09:33:02 +0200
committerSergeanur <s.anureev@yandex.ua>2020-10-11 09:33:02 +0200
commite26e85deb8d18ed99f94a50fd819886673d35c6a (patch)
tree8ffdbd21e3c324eb57a00fa10c60798dc1811617 /src/text/Text.cpp
parentMerge pull request #745 from Tatsh/vscode (diff)
downloadre3-e26e85deb8d18ed99f94a50fd819886673d35c6a.tar
re3-e26e85deb8d18ed99f94a50fd819886673d35c6a.tar.gz
re3-e26e85deb8d18ed99f94a50fd819886673d35c6a.tar.bz2
re3-e26e85deb8d18ed99f94a50fd819886673d35c6a.tar.lz
re3-e26e85deb8d18ed99f94a50fd819886673d35c6a.tar.xz
re3-e26e85deb8d18ed99f94a50fd819886673d35c6a.tar.zst
re3-e26e85deb8d18ed99f94a50fd819886673d35c6a.zip
Diffstat (limited to 'src/text/Text.cpp')
-rw-r--r--src/text/Text.cpp30
1 files changed, 2 insertions, 28 deletions
diff --git a/src/text/Text.cpp b/src/text/Text.cpp
index a4f2af7f..f3324fd7 100644
--- a/src/text/Text.cpp
+++ b/src/text/Text.cpp
@@ -278,12 +278,6 @@ CData::Unload(void)
numChars = 0;
}
-void
-AsciiToUnicode(const char *src, wchar *dst)
-{
- while((*dst++ = (unsigned char)*src++) != '\0');
-}
-
char*
UnicodeToAscii(wchar *src)
{
@@ -307,7 +301,7 @@ UnicodeToAsciiForSaveLoad(wchar *src)
{
static char aStr[256];
int len;
- for(len = 0; *src != '\0' && len < 256-1; len++, src++)
+ for(len = 0; *src != '\0' && len < 256; len++, src++)
if(*src < 256)
aStr[len] = *src;
else
@@ -321,7 +315,7 @@ UnicodeToAsciiForMemoryCard(wchar *src)
{
static char aStr[256];
int len;
- for(len = 0; *src != '\0' && len < 256-1; len++, src++)
+ for(len = 0; *src != '\0' && len < 256; len++, src++)
if(*src < 256)
aStr[len] = *src;
else
@@ -331,26 +325,6 @@ UnicodeToAsciiForMemoryCard(wchar *src)
}
void
-UnicodeStrcpy(wchar *dst, const wchar *src)
-{
- while((*dst++ = *src++) != '\0');
-}
-
-void
-UnicodeStrcat(wchar *dst, wchar *append)
-{
- UnicodeStrcpy(&dst[UnicodeStrlen(dst)], append);
-}
-
-int
-UnicodeStrlen(const wchar *str)
-{
- int len;
- for(len = 0; *str != '\0'; len++, str++);
- return len;
-}
-
-void
TextCopy(wchar *dst, const wchar *src)
{
while((*dst++ = *src++) != '\0');