23 references to AsSpan
System.Private.CoreLib (23)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (1)
1100string resultString = vlb.AsSpan().ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\HebrewNumber.cs (1)
214Rune.DecodeLastFromUtf8(MemoryMarshal.AsBytes(outputBuffer.AsSpan()), out Rune value, out int bytesConsumed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\StringInfo.cs (1)
224int[] retVal = builder.AsSpan().ToArray();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (1)
45string resultString = vlb.AsSpan().ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (9)
301string result = FormatDecimalIeee754<TDecimal, TValue, char>(ref vlb, ref number, value, format, info) ?? vlb.AsSpan().ToString(); 499string result = vlb.AsSpan().ToString(); 924string result = FormatFloat(ref vlb, ref number, value, format, info) ?? vlb.AsSpan().ToString(); 1121string result = vlb.AsSpan().ToString(); 1231string result = vlb.AsSpan().ToString(); 1343string result = vlb.AsSpan().ToString(); 1455string result = vlb.AsSpan().ToString(); 1569string result = vlb.AsSpan().ToString(); 1683string result = vlb.AsSpan().ToString();
src\runtime\src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\Helpers\AhoCorasickBuilder.cs (3)
56return new AhoCorasick(_nodes.AsSpan().ToArray(), _startingAsciiChars); 216if (Ascii.IsValid(startingChars.AsSpan())) 218IndexOfAnyAsciiSearcher.ComputeAsciiState(startingChars.AsSpan(), out _startingAsciiChars);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (5)
1423string dst = ReplaceHelper(oldValue.Length, newValue, replacementIndices.AsSpan()); 1801ReadOnlySpan<int> sepList = sepListBuilder.AsSpan(); 1878ReadOnlySpan<int> sepList = sepListBuilder.AsSpan(); 1879ReadOnlySpan<int> lengthList = lengthListBuilder.AsSpan(); 1927ReadOnlySpan<int> sepList = sepListBuilder.AsSpan();
src\runtime\src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (1)
2226ReplaceAllInChunk(replacements.AsSpan(), chunk, oldValue.Length, newValue);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (1)
6129Task t = WhenAll(builder.AsSpan());