mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Changed decode return types
This commit is contained in:
parent
12ab5a13f6
commit
a43d7ca991
2 changed files with 2 additions and 2 deletions
|
@ -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}'))
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue