summaryrefslogtreecommitdiffstats
path: root/src/text/Text.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-10-11 09:34:47 +0200
committerSergeanur <s.anureev@yandex.ua>2020-10-11 09:34:47 +0200
commit9dba2386bb90a4d2cd9c0f530a78bbf15aa17b7b (patch)
treeec7218e56bc1bfca1061d6cd45c1c897ecfb8e77 /src/text/Text.cpp
parentMerge branch 'miami' into VC/TextFinish (diff)
parentSome unicode funcs belong to Font.cpp + small fix (diff)
downloadre3-9dba2386bb90a4d2cd9c0f530a78bbf15aa17b7b.tar
re3-9dba2386bb90a4d2cd9c0f530a78bbf15aa17b7b.tar.gz
re3-9dba2386bb90a4d2cd9c0f530a78bbf15aa17b7b.tar.bz2
re3-9dba2386bb90a4d2cd9c0f530a78bbf15aa17b7b.tar.lz
re3-9dba2386bb90a4d2cd9c0f530a78bbf15aa17b7b.tar.xz
re3-9dba2386bb90a4d2cd9c0f530a78bbf15aa17b7b.tar.zst
re3-9dba2386bb90a4d2cd9c0f530a78bbf15aa17b7b.zip
Diffstat (limited to 'src/text/Text.cpp')
-rw-r--r--src/text/Text.cpp28
1 files changed, 1 insertions, 27 deletions
diff --git a/src/text/Text.cpp b/src/text/Text.cpp
index a59516e3..a76bc404 100644
--- a/src/text/Text.cpp
+++ b/src/text/Text.cpp
@@ -431,7 +431,6 @@ CData::Unload(void)
numChars = 0;
}
-void
CMissionTextOffsets::Load(size_t table_size, int file, size_t *offset, int)
{
#if DUMB
@@ -459,11 +458,6 @@ CMissionTextOffsets::Load(size_t table_size, int file, size_t *offset, int)
}
void
-AsciiToUnicode(const char *src, wchar *dst)
-{
- while((*dst++ = (unsigned char)*src++) != '\0');
-}
-
char*
UnicodeToAscii(wchar *src)
{
@@ -522,7 +516,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
@@ -546,26 +540,6 @@ UnicodeMakeUpperCase(wchar *dst, wchar *src) //idk what to do with it, seems to
}
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');