97 references to IsLowSurrogate
Aspire.Hosting.Rust (1)
CargoMetadataReader.cs (1)
188if (char.IsHighSurrogate(redacted[retainedLength - 1]) && char.IsLowSurrogate(redacted[retainedLength]))
dotnet-svcutil-lib (2)
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (1)
493&& Char.IsLowSurrogate(value[i + 1]))
FrameworkFork\Microsoft.CodeDom\Microsoft\VBCodeProvider.cs (1)
508&& Char.IsLowSurrogate(value[i + 1]))
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
181if (i < str.Length && char.IsLowSurrogate(str[i])) 191else if (char.IsLowSurrogate(c))
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\VirtualChars\VirtualCharSequence.Chunks.cs (1)
151!char.IsLowSurrogate(_underlyingData[index + 1]));
Microsoft.CodeAnalysis (4)
DiaSymReader\Writer\SymUnmanagedWriterImpl.cs (2)
440if (i < str.Length && char.IsLowSurrogate(str[i])) 450else if (char.IsLowSurrogate(c))
InternalUtilities\StringExtensions.cs (2)
181if (i < str.Length && char.IsLowSurrogate(str[i])) 191else if (char.IsLowSurrogate(c))
Microsoft.CodeAnalysis.Analyzers (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
181if (i < str.Length && char.IsLowSurrogate(str[i])) 191else if (char.IsLowSurrogate(c))
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
181if (i < str.Length && char.IsLowSurrogate(str[i])) 191else if (char.IsLowSurrogate(c))
Microsoft.CodeAnalysis.CodeStyle (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
181if (i < str.Length && char.IsLowSurrogate(str[i])) 191else if (char.IsLowSurrogate(c))
Microsoft.CodeAnalysis.CSharp (1)
Parser\Lexer.cs (1)
706if (char.IsHighSurrogate(character) && char.IsLowSurrogate(TextWindow.PeekChar()))
Microsoft.CodeAnalysis.CSharp.Features (1)
ConvertToRawString\ConvertToRawStringHelpers.cs (1)
118char.IsLowSurrogate(characters[i + 1]) &&
Microsoft.CodeAnalysis.Extensions.Package (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
181if (i < str.Length && char.IsLowSurrogate(str[i])) 191else if (char.IsLowSurrogate(c))
Microsoft.CodeAnalysis.Razor.Compiler (1)
Language\CSharpIdentifier.cs (1)
78if (char.IsHighSurrogate(ch) && i + 1 < inputName.Length && char.IsLowSurrogate(inputName[i + 1]))
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
181if (i < str.Length && char.IsLowSurrogate(str[i])) 191else if (char.IsLowSurrogate(c))
Microsoft.CodeAnalysis.VisualBasic (1)
Scanner\CharacterInfo.vb (1)
490Return Char.IsLowSurrogate(c)
Microsoft.CodeAnalysis.Workspaces (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
181if (i < str.Length && char.IsLowSurrogate(str[i])) 191else if (char.IsLowSurrogate(c))
Microsoft.DiaSymReader (2)
Writer\SymUnmanagedWriterImpl.cs (2)
431if (i < str.Length && char.IsLowSurrogate(str[i])) 441else if (char.IsLowSurrogate(c))
Microsoft.ML.Tokenizers (6)
Model\BPETokenizer.cs (1)
1203if (Char.IsHighSurrogate(w[i]) && i < w.Length - 1 && Char.IsLowSurrogate(w[i + 1]))
Model\SentencePieceBpeModel.cs (1)
1139int len = (Char.IsHighSurrogate(text[spanIndex]) && spanIndex < text.Length - 1 && Char.IsLowSurrogate(text[spanIndex + 1])) ? 2 : 1;
Normalizer\BertNormalizer.cs (1)
56if (char.IsHighSurrogate(c) && i + 1 < original.Length && char.IsLowSurrogate(original[i + 1]))
Normalizer\SentencePieceNormalizationStep.cs (3)
52lone = i + 1 >= text.Length || !char.IsLowSurrogate(text[i + 1]); 54else if (char.IsLowSurrogate(c)) 289int charCount = char.IsHighSurrogate(decomposed[i]) && i + 1 < decomposed.Length && char.IsLowSurrogate(decomposed[i + 1]) ? 2 : 1;
PresentationBuildTasks (1)
src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Markup\XamlReaderHelper.cs (1)
5507if (char.IsLowSurrogate(lowChar))
PresentationFramework (3)
System\Windows\Documents\TextRangeSerialization.cs (3)
1776if (Char.IsHighSurrogate(testChar) || Char.IsLowSurrogate(testChar) || IsBadCode(testChar)) 1795if (i + 1 < length && Char.IsLowSurrogate(text[i + 1])) 1809else if (Char.IsLowSurrogate(text[i]))
Roslyn.Diagnostics.Analyzers (2)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StringExtensions.cs (2)
181if (i < str.Length && char.IsLowSurrogate(str[i])) 191else if (char.IsLowSurrogate(c))
System.CodeDom (2)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
143if (char.IsHighSurrogate(value[i]) && (i < value.Length - 1) && char.IsLowSurrogate(value[i + 1]))
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
354&& char.IsLowSurrogate(value[i + 1]))
System.Private.CoreLib (44)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
1054return IsLowSurrogate(s[index]);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Invariant.cs (1)
66if (char.IsLowSurrogate(cl))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (4)
457if (char.IsLowSurrogate(unicode[iTest])) 476Debug.Assert(!char.IsLowSurrogate(unicode[basicCount]), "[IdnMapping.punycode_encode]Unexpected low surrogate"); 638if (char.IsHighSurrogate(s[index]) && index + 1 < s.Length && char.IsLowSurrogate(s[index + 1])) 916if (char.IsLowSurrogate(output[iTest]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\InvariantModeCasing.cs (9)
31if (char.IsHighSurrogate(source[i]) && i < s.Length - 1 && char.IsLowSurrogate(source[i + 1])) 77if (char.IsHighSurrogate(source[i]) && i < s.Length - 1 && char.IsLowSurrogate(source[i + 1])) 122if (char.IsLowSurrogate(cl)) 148if (char.IsLowSurrogate(cl)) 173if (!char.IsLowSurrogate(charB)) 254if (char.IsHighSurrogate(*pSrc) && char.IsLowSurrogate(*(pSrc + 1)) && char.IsLowSurrogate(*(pVal + 1))) 315if (char.IsHighSurrogate(*pSrc) && char.IsLowSurrogate(*(pSrc + 1)) && char.IsLowSurrogate(*(pVal + 1)))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\Normalization.Icu.cs (2)
236if (char.IsLowSurrogate(c)) 243if ((uint)(i + 1) >= (uint)s.Length || !char.IsLowSurrogate(s[i + 1]))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\OrdinalCasing.Icu.cs (9)
194if (char.IsLowSurrogate(cl)) 248if (char.IsLowSurrogate(cl)) 279if (!char.IsHighSurrogate(a) || index >= lengthA - 1 || !char.IsLowSurrogate(lowSurrogateA = Unsafe.Add(ref charA, 1))) 281if (!char.IsHighSurrogate(b) || index >= lengthB - 1 || !char.IsLowSurrogate(Unsafe.Add(ref charB, 1))) 322if (!char.IsHighSurrogate(b) || index >= lengthB - 1 || !char.IsLowSurrogate(lowSurrogateB = Unsafe.Add(ref charB, 1))) 395if (char.IsHighSurrogate(*pSrc) && char.IsLowSurrogate(*(pSrc + 1)) && char.IsLowSurrogate(*(pVal + 1))) 458if (char.IsHighSurrogate(*pSrc) && char.IsLowSurrogate(*(pSrc + 1)) && char.IsLowSurrogate(*(pVal + 1)))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\SurrogateCasing.cs (4)
16Debug.Assert(char.IsLowSurrogate(l)); 21Debug.Assert(char.IsLowSurrogate(lr)); 28Debug.Assert(char.IsLowSurrogate(l)); 33Debug.Assert(char.IsLowSurrogate(lr));
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasick.cs (3)
247char.IsLowSurrogate(lowSurrogate = Unsafe.Add(ref MemoryMarshal.GetReference(span), i + 1))) 332Debug.Assert(char.IsLowSurrogate(l)); 344Debug.Assert(char.IsLowSurrogate(lr));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderExceptionFallback.cs (2)
49if (!char.IsLowSurrogate(charUnknownLow)) 113if (!char.IsLowSurrogate(charUnknownLow))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderFallback.cs (1)
329if (char.IsLowSurrogate(cNext))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderLatin1BestFitFallback.cs (1)
60if (!char.IsLowSurrogate(charUnknownLow))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\EncoderReplacementFallback.cs (2)
102char.IsLowSurrogate(_strDefault[_fallbackIndex + 1])) 124if (!char.IsLowSurrogate(charUnknownLow))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (1)
599if (char.IsLowSurrogate(finalChar))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\UTF32Encoding.cs (4)
404if (char.IsLowSurrogate(ch)) 444if (char.IsLowSurrogate(ch)) 539if (char.IsLowSurrogate(ch)) 613if (char.IsLowSurrogate(ch))
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\Json\XmlJsonReader.cs (1)
1210if (!char.IsLowSurrogate(lowChar))
System.Reflection.Metadata (3)
System\Reflection\Internal\Utilities\BlobUtilities.cs (2)
105if (char.IsHighSurrogate(c) && charPtr < strEnd && char.IsLowSurrogate(*charPtr)) 160else if (char.IsHighSurrogate(c) && ptr < end && char.IsLowSurrogate(*ptr))
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
557if (prev.EndsWith(entry.Key, StringComparison.Ordinal) && !char.IsLowSurrogate(entry.Key[0]))
System.Text.Encoding.CodePages (4)
System\Text\EncoderBestFitFallback.cs (1)
91if (!char.IsLowSurrogate(charUnknownLow))
System\Text\EncoderFallbackBufferHelper.cs (1)
104if (char.IsLowSurrogate(cNext))
System\Text\GB18030Encoding.cs (2)
248if (!char.IsLowSurrogate(ch)) 300else if (char.IsLowSurrogate(ch))
System.Web.HttpUtility (2)
System\Web\Util\HttpEncoder.cs (2)
686if ((uint)(i + 1) >= (uint)chars.Length || !char.IsLowSurrogate(chars[i + 1])) 696else if (char.IsLowSurrogate(chars[i]))
System.Xaml (1)
System\Xaml\Parser\XamlText.cs (1)
313if (char.IsLowSurrogate(lowChar))