diff options
author | Filip Navara <filip.navara@gmail.com> | 2019-05-03 15:37:19 +0200 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-05-03 06:37:19 -0700 |
commit | 0e15f47d8e1c2be4919c49fe35f9d50ede66a057 (patch) | |
tree | d85e11042d17b66d53892b104cb03d49dfb848ed /src/classlibnative | |
parent | 964461ca69639003914fd4fedaf08baf1f388f7e (diff) | |
download | coreclr-0e15f47d8e1c2be4919c49fe35f9d50ede66a057.tar.gz coreclr-0e15f47d8e1c2be4919c49fe35f9d50ede66a057.tar.bz2 coreclr-0e15f47d8e1c2be4919c49fe35f9d50ede66a057.zip |
Implement String.IsAscii in shared CoreLib and use it for [Is]Normalize[d] for all runtimes (#24373)
Diffstat (limited to 'src/classlibnative')
-rw-r--r-- | src/classlibnative/bcltype/stringnative.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/src/classlibnative/bcltype/stringnative.cpp b/src/classlibnative/bcltype/stringnative.cpp index 9462dd2a89..70bed9f77d 100644 --- a/src/classlibnative/bcltype/stringnative.cpp +++ b/src/classlibnative/bcltype/stringnative.cpp @@ -53,29 +53,6 @@ FCIMPL1(FC_BOOL_RET, COMString::IsFastSort, StringObject* thisRef) { } FCIMPLEND -/*===============================IsAscii=============================== -**Action: Call the helper to walk the string and see if we have any high chars. -**Returns: void. The appropriate bits are set on the String. -**Arguments: vThisRef - The string to be checked. -**Exceptions: None. -==============================================================================*/ -FCIMPL1(FC_BOOL_RET, COMString::IsAscii, StringObject* thisRef) { - FCALL_CONTRACT; - - VALIDATEOBJECT(thisRef); - _ASSERTE(thisRef!=NULL); - DWORD state = thisRef->GetHighCharState(); - if (IS_STRING_STATE_UNDETERMINED(state)) { - state = (STRINGREF(thisRef))->InternalCheckHighChars(); - FC_GC_POLL_RET(); - } - else { - FC_GC_POLL_NOT_NEEDED(); - } - FC_RETURN_BOOL(IS_ASCII(state)); //This can indicate either high chars or special sorting chars. -} -FCIMPLEND - /*==================================GETCHARAT=================================== **Returns the character at position index. Thows IndexOutOfRangeException as |