mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Made implicit tuple cast check names, fixed explicit tuple cast
This commit is contained in:
parent
1f77412536
commit
fd64aa64d9
12 changed files with 92 additions and 87 deletions
|
@ -2119,7 +2119,7 @@ namespace System
|
|||
return false;
|
||||
}
|
||||
|
||||
public (char32 c, int8 len) GetChar32(int idx)
|
||||
public (char32 c, int8 length) GetChar32(int idx)
|
||||
{
|
||||
Debug.Assert((uint)idx < (uint)mLength);
|
||||
char8* ptr = Ptr;
|
||||
|
@ -2131,7 +2131,7 @@ namespace System
|
|||
return UTF8.Decode(ptr + idx, mLength - idx);
|
||||
}
|
||||
|
||||
public (char32 c, int idx, int8 len) GetChar32WithBacktrack(int idx)
|
||||
public (char32 c, int idx, int8 length) GetChar32WithBacktrack(int idx)
|
||||
{
|
||||
Debug.Assert((uint)idx < (uint)mLength);
|
||||
char8* ptr = Ptr;
|
||||
|
|
|
@ -44,7 +44,7 @@ namespace System.Text
|
|||
return UTF8.sTrailingBytesForUTF8[firstChar] + 1;
|
||||
}
|
||||
|
||||
public static (char32 c, int8 cSize) Decode(char8* buf, int bufSize)
|
||||
public static (char32 c, int8 length) Decode(char8* buf, int bufSize)
|
||||
{
|
||||
char32 c = *buf;
|
||||
int8 trailingBytes = UTF8.sTrailingBytesForUTF8[c];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue