mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Added HasMultibyteChars properties
This commit is contained in:
parent
9501ee2c22
commit
c12c1bf9f9
1 changed files with 27 additions and 0 deletions
|
@ -2745,6 +2745,20 @@ namespace System
|
||||||
return UTF8Enumerator(Ptr, startIdx, mLength);
|
return UTF8Enumerator(Ptr, startIdx, mLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool HasMultibyteChars
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
char8* ptr = Ptr;
|
||||||
|
int len = Length;
|
||||||
|
for (int i < len)
|
||||||
|
if (ptr[i] >= '\x80')
|
||||||
|
return true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[Obsolete("HasMultibyteChars() method has been replaced with the HasMultibyteChars property")]
|
||||||
public bool HasMultibyteChars()
|
public bool HasMultibyteChars()
|
||||||
{
|
{
|
||||||
char8* ptr = Ptr;
|
char8* ptr = Ptr;
|
||||||
|
@ -3707,6 +3721,19 @@ namespace System
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool HasMultibyteChars
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
char8* ptr = Ptr;
|
||||||
|
int len = Length;
|
||||||
|
for (int i < len)
|
||||||
|
if (ptr[i] >= '\x80')
|
||||||
|
return true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public int GetHashCode()
|
public int GetHashCode()
|
||||||
{
|
{
|
||||||
return String.[Friend]GetHashCode(mPtr, mLength);
|
return String.[Friend]GetHashCode(mPtr, mLength);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue