From a43d7ca991175d7679188c38806e8f4aed9acf76 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 24 Jan 2020 06:02:27 -0800 Subject: [PATCH] Changed decode return types --- BeefLibs/corlib/src/Text/UTF16.bf | 2 +- BeefLibs/corlib/src/Text/UTF8.bf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BeefLibs/corlib/src/Text/UTF16.bf b/BeefLibs/corlib/src/Text/UTF16.bf index 5ac2c745..651c5cd3 100644 --- a/BeefLibs/corlib/src/Text/UTF16.bf +++ b/BeefLibs/corlib/src/Text/UTF16.bf @@ -63,7 +63,7 @@ namespace System.Text } } - public static (char32, int) Decode(char16* buf, int lenLeft = 0) + public static (char32 c, int8 cSize) Decode(char16* buf, int lenLeft = 0) { char16 c = buf[0]; if ((c >='\u{D800}') && (c < '\u{DC00}')) diff --git a/BeefLibs/corlib/src/Text/UTF8.bf b/BeefLibs/corlib/src/Text/UTF8.bf index eff45c8d..b23b10fd 100644 --- a/BeefLibs/corlib/src/Text/UTF8.bf +++ b/BeefLibs/corlib/src/Text/UTF8.bf @@ -44,7 +44,7 @@ namespace System.Text return UTF8.sTrailingBytesForUTF8[firstChar] + 1; } - public static (char32, int32) Decode(char8* buf, int bufSize) + public static (char32 c, int8 cSize) Decode(char8* buf, int bufSize) { char32 c = *buf; int8 trailingBytes = UTF8.sTrailingBytesForUTF8[c];