240 references to AsSpan
Aspire.Azure.Npgsql (1)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (1)
126var principalName = xms_mirid.AsSpan(lastSlashIndex + 1);
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (1)
src\Components\Common\ManagedIdentityTokenCredentialHelpers.cs (1)
126var principalName = xms_mirid.AsSpan(lastSlashIndex + 1);
ConfigurationSchemaGenerator (1)
ConfigSchemaEmitter.cs (1)
570s.StartsWith("E:", StringComparison.Ordinal) => $"'{s.AsSpan(2)}'",
CustomPolicyProvider (1)
Authorization\MinimumAgeAuthorizeAttribute.cs (1)
27if (int.TryParse(Policy.AsSpan(POLICY_PREFIX.Length), out var age))
dotnet-razorpagegenerator (1)
Program.cs (1)
215cshtmlContent = string.Concat(cshtmlContent.AsSpan(0, startIndex), includeFileContent, cshtmlContent.AsSpan(endIndex + endMatch.Length));
Identity.ExternalClaims (1)
Pages\Account\Manage\EnableAuthenticator.cshtml.cs (1)
127result.Append(unformattedKey.AsSpan(currentPosition));
illink (7)
LargeResponseApp (1)
Startup.cs (1)
26if (!path.HasValue || !int.TryParse(path.Value.AsSpan(1), out var numChunks))
Microsoft.AspNetCore.Authentication.Cookies (1)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
75if (int.TryParse(value.AsSpan(ChunkCountPrefix.Length), NumberStyles.None, CultureInfo.InvariantCulture, out var chunksCount))
Microsoft.AspNetCore.Components (1)
NavigationManagerExtensions.cs (1)
739hash = hashStartIndex < 0 ? "" : uri.AsSpan(hashStartIndex);
Microsoft.AspNetCore.Components.WebView (1)
IpcCommon.cs (1)
43var messageAfterPrefix = message.AsSpan(_ipcMessagePrefix.Length);
Microsoft.AspNetCore.CookiePolicy.Test (1)
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
75if (int.TryParse(value.AsSpan(ChunkCountPrefix.Length), NumberStyles.None, CultureInfo.InvariantCulture, out var chunksCount))
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (2)
86int parsedFraction = int.Parse(subseconds.AsSpan(1), CultureInfo.InvariantCulture); 201int parsedFraction = int.Parse(subseconds.AsSpan(1), CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Grpc.Swagger (2)
src\Grpc\JsonTranscoding\src\Shared\Legacy.cs (2)
86int parsedFraction = int.Parse(subseconds.AsSpan(1), CultureInfo.InvariantCulture); 201int parsedFraction = int.Parse(subseconds.AsSpan(1), CultureInfo.InvariantCulture);
Microsoft.AspNetCore.Http (1)
Internal\ResponseCookies.cs (1)
90var cookieSuffix = options.CreateCookieHeader(string.Empty, string.Empty).ToString().AsSpan(1);
Microsoft.AspNetCore.Http.Abstractions (4)
HostString.cs (1)
183var port = uriComponent.AsSpan(index);
PathString.cs (2)
121var charsToSkip = value.AsSpan(i).IndexOfAnyExcept(s_validPathChars); 362var combined = string.Concat(Value.AsSpan(), other.Value.AsSpan(1));
QueryString.cs (1)
185return new QueryString(string.Concat(Value, "&", other.Value.AsSpan(1)));
Microsoft.AspNetCore.Http.Results (2)
src\Shared\ResultsHelpers\SharedUrlHelper.cs (2)
52return !HasControlCharacter(url.AsSpan(1)); 70return !HasControlCharacter(url.AsSpan(2));
Microsoft.AspNetCore.HttpOverrides (2)
ForwardedHeadersMiddleware.cs (2)
452var host = hostText.AsSpan(1); 478return hostText.AsSpan(offset + 1).IndexOfAnyExceptInRange('0', '9') < 0;
Microsoft.AspNetCore.Identity.InMemory.Test (1)
FunctionalTest.cs (1)
337var isPersistent = bool.Parse(remainder.Value.AsSpan(1));
Microsoft.AspNetCore.Identity.UI (2)
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (1)
188result.Append(unformattedKey.AsSpan(currentPosition));
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (1)
188result.Append(unformattedKey.AsSpan(currentPosition));
Microsoft.AspNetCore.Mvc.Core (6)
ModelBinding\PrefixContainer.cs (1)
145var delimiterPosition = entry.AsSpan(keyPosition).IndexOfAny('[', '.');
Routing\UrlHelperBase.cs (2)
334return !HasControlCharacter(url.AsSpan(1)); 352return !HasControlCharacter(url.AsSpan(2));
src\Shared\ChunkingCookieManager\ChunkingCookieManager.cs (1)
75if (int.TryParse(value.AsSpan(ChunkCountPrefix.Length), NumberStyles.None, CultureInfo.InvariantCulture, out var chunksCount))
src\Shared\ResultsHelpers\SharedUrlHelper.cs (2)
52return !HasControlCharacter(url.AsSpan(1)); 70return !HasControlCharacter(url.AsSpan(2));
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
NewtonsoftJsonInputFormatter.cs (1)
389var endIndex = path.AsSpan(index).IndexOfAny('.', '[');
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
FileProviderRazorProjectFileSystem.cs (1)
78return string.Concat(path1, path2.AsSpan(1));
Microsoft.AspNetCore.Mvc.RazorPages (1)
DependencyInjection\RazorPagesRazorViewEngineOptionsSetup.cs (1)
71return string.Concat(path1, path2.AsSpan(1));
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Rendering\TagBuilder.cs (2)
163var indexOfInvalidCharacter = name.AsSpan(1).IndexOfAnyExcept(_html401IdChars); 179var remainingName = name.AsSpan(1);
Microsoft.AspNetCore.Routing (3)
Matching\FastPathTokenizer.cs (2)
26var span = path.AsSpan(start); 31span = path.AsSpan(start);
Matching\ILEmitTrieFactory.cs (1)
545var span = text.ToLowerInvariant().AsSpan(index);
Microsoft.AspNetCore.Server.HttpSys (2)
RequestProcessing\Request.cs (2)
130else if (baseValue == '/' && originalPath.AsSpan(originalOffset).StartsWith("%2F", StringComparison.OrdinalIgnoreCase)) 143&& originalPath.AsSpan(originalOffset).StartsWith("%2F", StringComparison.OrdinalIgnoreCase))
Microsoft.AspNetCore.Server.IIS (2)
Core\IISHttpContext.cs (2)
236else if (baseValue == '/' && originalPath.AsSpan(originalOffset).StartsWith("%2F", StringComparison.OrdinalIgnoreCase)) 249&& originalPath.AsSpan(originalOffset).StartsWith("%2F", StringComparison.OrdinalIgnoreCase))
Microsoft.Build (4)
Definition\ToolsetReader.cs (1)
687ReadOnlySpan<char> remainder = expression.AsSpan(pos + PathBase.Length);
FileMatcher.cs (1)
2656return (index != -1 && IsMatch(directoryPath.AsSpan(index + 1), pattern));
PropertyParser.cs (2)
53propertyValue = propertyNameValuePair.AsSpan(indexOfEqualsSign + 1).Trim().ToString(); 107string propertyValue = EscapingUtilities.Escape(propertyNameValueString.AsSpan(indexOfEqualsSign + 1).Trim().ToString());
Microsoft.Build.Engine.OM.UnitTests (2)
FileUtilities.cs (2)
275string.Concat(path.AsSpan(start), new(in Path.DirectorySeparatorChar))); 875return path.AsSpan(lastDirectorySeparator >= 0 ? lastDirectorySeparator + 1 : 0).ContainsAny(InvalidFileNameChars);
Microsoft.Build.Framework (1)
FileClassifier.cs (1)
394IsMicrosoftAssembly(filePath.AsSpan(containingNugetCache.Length));
Microsoft.Build.Tasks.Core (17)
AppConfig\BindingRedirect.cs (1)
51OldVersionHigh = Version.Parse(oldVersion.AsSpan(dashPosition + 1));
AssemblyDependency\ReferenceTable.cs (1)
830int nextDelimiter = fusionName.AsSpan(position).IndexOfAny(',', ' ');
ConversionUtilities.cs (2)
142number.AsSpan(2), 191number.AsSpan(2),
FileMatcher.cs (1)
2656return (index != -1 && IsMatch(directoryPath.AsSpan(index + 1), pattern));
FileUtilities.cs (2)
275string.Concat(path.AsSpan(start), new(in Path.DirectorySeparatorChar))); 875return path.AsSpan(lastDirectorySeparator >= 0 ? lastDirectorySeparator + 1 : 0).ContainsAny(InvalidFileNameChars);
ManifestUtil\AssemblyIdentity.cs (1)
385frameworkVersion.AsSpan(1),
ManifestUtil\PathUtil.cs (1)
229$"{path.AsSpan(0, i)}{Environment.MachineName.ToLowerInvariant()}{path.AsSpan(i + localHost.Length)}" :
ManifestUtil\Util.cs (2)
179targetFramework.AsSpan(1), 623version.AsSpan(1));
PropertyParser.cs (2)
53propertyValue = propertyNameValuePair.AsSpan(indexOfEqualsSign + 1).Trim().ToString(); 107string propertyValue = EscapingUtilities.Escape(propertyNameValueString.AsSpan(indexOfEqualsSign + 1).Trim().ToString());
RequiresFramework35SP1Assembly.cs (1)
84version.AsSpan(1));
ResolveManifestFiles.cs (1)
220version.AsSpan(1));
StringUtils.cs (1)
57$"{fromString.AsSpan(0, lastOccurrenceIndex)}{fromString.AsSpan(lastOccurrenceIndex + substring.Length)}";
WriteCodeFragment.cs (1)
215name.AsSpan("_Parameter".Length),
Microsoft.Build.Utilities.Core (1)
FileMatcher.cs (1)
2656return (index != -1 && IsMatch(directoryPath.AsSpan(index + 1), pattern));
Microsoft.Build.Utilities.UnitTests (2)
ConversionUtilities.cs (2)
142number.AsSpan(2), 191number.AsSpan(2),
Microsoft.CodeAnalysis (3)
Emit\EditAndContinue\DefinitionMap.cs (3)
475CommonGeneratedNames.TryParseDebugIds(displayClassName.AsSpan(suffixIndex), idSeparator, isMethodIdOptional: false, out var parsedMethodId, out var parsedEntityId) && 574if (!CommonGeneratedNames.TryParseDebugIds(memberName.AsSpan(suffixIndex), idSeparator, isMethodIdOptional: containingDisplayClassId.HasValue, out parsedMethodId, out parsedEntityId)) 636CommonGeneratedNames.TryParseDebugIds(displayClassName.AsSpan(suffixIndex), idSeparator, isMethodIdOptional: false, out var parsedMethodId, out var parsedEntityId) &&
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
80if (TryParseNotification(arg.AsSpan(firstColonIndex + 1), out var localNotification))
Microsoft.CodeAnalysis.CSharp (2)
CSharpParseOptions.cs (1)
208addSingleNamespaceParts(builder, singleNamespaceBuilder, namespaces.AsSpan(currentIndex));
Emitter\EditAndContinue\CSharpDefinitionMap.cs (1)
223hasDebugIds = !isDisplayClassParentField && name.AsSpan(suffixIndex).StartsWith(GeneratedNameConstants.SuffixSeparator.AsSpan(), StringComparison.Ordinal);
Microsoft.CodeAnalysis.Workspaces (2)
Diagnostics\Extensions.cs (1)
99var fileNameSpan = reference.FullPath.AsSpan(FileNameUtilities.IndexOfFileName(reference.FullPath));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
80if (TryParseNotification(arg.AsSpan(firstColonIndex + 1), out var localNotification))
Microsoft.Extensions.Diagnostics (1)
Metrics\ListenerSubscription.cs (1)
191suffix = meterName.AsSpan(wildcardIndex + 1);
Microsoft.Extensions.Hosting.Systemd (1)
SystemdNotifier.cs (1)
76state.AsSpan(1).CopyTo(buffer.Slice(1));
Microsoft.Extensions.Logging (1)
LoggerRuleSelector.cs (1)
70suffix = categoryName.AsSpan(wildcardIndex + 1);
Microsoft.Extensions.Logging.EventLog (1)
EventLogLogger.cs (1)
156messageSegment = string.Concat(ContinuationString, message.AsSpan(startIndex));
Microsoft.Extensions.Telemetry (3)
Buffering\LogBufferingFilterRuleSelector.cs (1)
155suffix = ruleCategory.AsSpan(wildcardIndex + 1);
Logging\Import\LoggerRuleSelector.cs (1)
75suffix = categoryName.AsSpan(wildcardIndex + 1);
Sampling\LogSamplingRuleSelector.cs (1)
56suffix = categoryName.AsSpan(wildcardIndex + 1);
Microsoft.Maui.Essentials (2)
Types\Shared\WebUtils.shared.cs (2)
18 UnpackParameters(uri.Query.AsSpan(1), parameters); 22 UnpackParameters(uri.Fragment.AsSpan(1), parameters);
Microsoft.Maui.Graphics.Skia (1)
SkiaTextLayout.cs (1)
226 var count = _font.BreakText(_value.AsSpan(index), width, out var textWidth);
Microsoft.ML.Tokenizers (5)
Model\CodeGenTokenizer.cs (2)
1307ReadOnlySpan<char> span = firstToken && hasPrefixSpace && s.Length > 0 && s[0] == _transformedSpace ? s.AsSpan(1) : s.AsSpan(); 1469ReadOnlySpan<char> span = firstToken && hasPrefixSpace && s.Length > 0 && s[0] == _transformedSpace ? s.AsSpan(1) : s.AsSpan();
Model\SentencePieceBaseModel.cs (1)
332sb.Append(!prefixRemoved && token[0] == prefixSuffixChar ? token.AsSpan(1) : token.AsSpan());
Utils\OrdinalUtf8StringComparer.cs (2)
73xLen = Helpers.GetUtf8Bytes(x.AsSpan(i), buffer1); 74yLen = Helpers.GetUtf8Bytes(y.AsSpan(i), buffer2);
Microsoft.ML.Tokenizers.Tests (2)
src\Microsoft.ML.Tokenizers\Utils\OrdinalUtf8StringComparer.cs (2)
73xLen = Helpers.GetUtf8Bytes(x.AsSpan(i), buffer1); 74yLen = Helpers.GetUtf8Bytes(y.AsSpan(i), buffer2);
MSBuild (4)
ConversionUtilities.cs (2)
142number.AsSpan(2), 191number.AsSpan(2),
FileUtilities.cs (2)
275string.Concat(path.AsSpan(start), new(in Path.DirectorySeparatorChar))); 875return path.AsSpan(lastDirectorySeparator >= 0 ? lastDirectorySeparator + 1 : 0).ContainsAny(InvalidFileNameChars);
PresentationCore (2)
MS\Internal\FontCache\FamilyCollection.cs (1)
400ReadOnlySpan<char> faceName = originalFamilyName.AsSpan(faceNameIndex);
MS\Internal\IO\Packaging\ByteRangeDownloader.cs (1)
780ReadOnlySpan<char> contentRangeSpan = contentRange.AsSpan(index + 1);
PresentationFramework (8)
MS\Internal\Globalization\BamlResourceContent.cs (1)
249UnescapeString(input.AsSpan(tokenStart))
System\Windows\Controls\ComboBox.cs (1)
710matchedText = String.Concat(newText, matchedText.AsSpan(matchedTextInfo.MatchedPrefixLength));
System\Windows\Controls\ItemContainerGenerator.cs (1)
1121ReadOnlySpan<char> token = aqn.AsSpan(index + PublicKeyToken.Length);
System\Windows\Controls\VirtualizingStackPanel.cs (1)
12524filename = $"{filename.AsSpan(0, dotIndex)}{s_seqno}{filename.AsSpan(dotIndex)}";
System\Windows\Documents\FixedPageStructure.cs (1)
475ouptputString = $"{fn}-{typeString.AsSpan(indexofDot + 1)}";
System\Windows\Documents\TextStore.cs (1)
4996filename = $"{filename.AsSpan(0, dotIndex)}{s_seqno}{filename.AsSpan(dotIndex)}";
System\Windows\Markup\Baml2006\Baml2006Reader.cs (1)
2091ReadOnlySpan<char> assemblyName = uriInput.AsSpan(equalIdx + 1);
System\Windows\PropertyPathConverter.cs (1)
289builder.Append(originalPath.AsSpan(start));
ReachFramework (7)
Serialization\Manager\ReachDocumentSequenceSerializer.cs (1)
184index > 0 ? valueAsString.AsSpan(index + 1) : valueAsString,
Serialization\Manager\ReachDocumentSequenceSerializerAsync.cs (1)
222index > 0 ? valueAsString.AsSpan(index + 1) : valueAsString,
Serialization\Manager\ReachFixedDocumentSerializer.cs (1)
263index > 0 ? valueAsString.AsSpan(index + 1) : valueAsString,
Serialization\Manager\ReachFixedDocumentSerializerAsync.cs (1)
303index > 0 ? valueAsString.AsSpan(index + 1) : valueAsString,
Serialization\Manager\ReachFixedPageSerializer.cs (1)
339index > 0 ? valueAsString.AsSpan(index + 1) : valueAsString,
Serialization\Manager\ReachFixedPageSerializerAsync.cs (1)
311index > 0 ? valueAsString.AsSpan(index + 1) : valueAsString,
Serialization\Manager\XpsOMFixedPageSerializer.cs (1)
297index > 0 ? valueAsString.AsSpan(index + 1) : valueAsString,
System.CodeDom (1)
Microsoft\VisualBasic\VBCodeGenerator.cs (1)
918Output.Write(typeName.AsSpan(index + 1));
System.ComponentModel.TypeConverter (1)
System\ComponentModel\Design\PropertyTabAttribute.cs (1)
113assemblyName = _tabClassNames[i].AsSpan(commaIndex + 1).Trim().ToString();
System.Data.Common (1)
System\Data\XmlToDatasetMap.cs (1)
518tempColumnName = string.Concat(tempColumnName, col.ColumnName.AsSpan(1));
System.Data.Odbc (1)
System\Data\Odbc\OdbcParameterCollectionHelper.cs (1)
325&& int.TryParse(lastParameter.ParameterName.AsSpan(ADP.Parameter.Length), out int lastIndex))
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Metrics\MetricsEventSource.cs (1)
774string? instrumentName = text.AsSpan(slashIdx + 1).Trim().ToString();
System\Diagnostics\W3CPropagator.cs (1)
149ReadOnlySpan<char> traceStateSpan = traceState.AsSpan(processed);
System.Diagnostics.Process (2)
src\libraries\Common\src\Interop\Linux\cgroups\Interop.cgroups.cs (2)
78bool foundFieldValue = ulong.TryParse(line.AsSpan(fieldName.Length), out val); 296return string.Concat(hierarchyMount, cgroupPathRelativeToMount.AsSpan(commonPathPrefixLength));
System.Formats.Tar (2)
System\Formats\Tar\TarFile.cs (1)
424string entryName = ArchivingUtils.EntryFromPath(fullPath.AsSpan(basePathLength), appendPathSeparator: isRealDirectory);
System\Formats\Tar\TarHeader.Write.cs (1)
1212string.Concat("/tmp", result.AsSpan(tmp.Length)) :
System.IO.Compression.ZipFile (4)
System\IO\Compression\ZipFile.Create.Async.cs (2)
475string entryName = ArchivingUtils.EntryFromPath(fullPath.AsSpan(basePath.Length)); 485string entryName = ArchivingUtils.EntryFromPath(fullPath.AsSpan(basePath.Length), appendPathSeparator: true);
System\IO\Compression\ZipFile.Create.cs (2)
441string entryName = ArchivingUtils.EntryFromPath(fullPath.AsSpan(basePath.Length)); 451string entryName = ArchivingUtils.EntryFromPath(fullPath.AsSpan(basePath.Length), appendPathSeparator: true);
System.IO.Packaging (2)
System\IO\Packaging\ContentType.cs (1)
102ParseParameterAndValue(contentType.AsSpan(semiColonIndex));
System\IO\Packaging\PartBasedPackageProperties.cs (1)
628|| !name.AsSpan().SequenceEqual(typeValue.AsSpan(index + 1)))
System.Net.Http (10)
System\Net\Http\Headers\AltSvcHeaderParser.cs (1)
145else if (value.AsSpan(idx).StartsWith("persist="))
System\Net\Http\Headers\DateHeaderParser.cs (1)
40dateString = value.AsSpan(index);
System\Net\Http\Headers\RangeConditionHeaderValue.cs (1)
117if (!HttpDateParser.TryParse(input.AsSpan(current), out date))
System\Net\Http\Headers\RetryConditionHeaderValue.cs (1)
125if (!HttpDateParser.TryParse(input.AsSpan(current), out date))
System\Net\Http\Headers\UriHeaderParser.cs (1)
67!input.AsSpan(possibleUtf8Pos).ContainsAnyExceptInRange((char)0, (char)255))
System\Net\Http\Headers\WarningHeaderValue.cs (1)
259int quote = input.AsSpan(current).IndexOf('"');
System\Net\Http\HttpRuleParser.cs (3)
36ReadOnlySpan<char> slice = input.AsSpan(startIndex); 86value.AsSpan(startIndex).ContainsAny('\r', '\n'); 142ReadOnlySpan<char> slice = input.AsSpan(startIndex);
System\Net\Http\SocketsHttpHandler\MultiProxy.cs (1)
174bool hasProxy = TryParseProxyConfigPart(_proxyConfig.AsSpan(_currentIndex), _secure, manualSettingsUsed: false, out uri!, out int charactersConsumed);
System.Net.HttpListener (5)
System\Net\HttpListener.cs (1)
200state.uriPrefix.AsSpan(state.j).CopyTo(destination.Slice(indexOfNextCopy));
System\Net\Managed\HttpListenerRequest.Managed.cs (1)
219string val = header.AsSpan(colon + 1).Trim().ToString();
System\Net\ServiceNameStore.cs (3)
62distinguisher = hostPortAndDistinguisher.AsSpan(nextSlashIndex); // Includes Slash 74port = hostAndPort.AsSpan(colonIndex + 1); // Excludes colon 83port = hostAndPort.AsSpan(colonIndex);
System.Net.Mail (3)
System\Net\Mail\MailBnfHelper.cs (1)
230ReadOnlySpan<char> span = data.AsSpan(start);
System\Net\Mime\SmtpDateTime.cs (2)
250int indexOfTimeZoneSeparator = data.AsSpan(indexOfHourSeparator).IndexOfAny(' ', '\t'); 272ReadOnlySpan<char> timeZoneSpan = data.AsSpan(indexOfTimeZoneSeparator).Trim();
System.Net.Ping (1)
System\Net\NetworkInformation\Ping.PingUtility.cs (1)
140int addressLength = stdout.AsSpan(Math.Max(addressStart, 0)).IndexOfAny(' ', ':');
System.Net.Requests (2)
System\Net\FtpWebRequest.cs (1)
511password = Uri.UnescapeDataString(userInfo.AsSpan(index));
System\Net\HttpWebResponse.cs (1)
316_characterSet = contentType.AsSpan(i).Trim().ToString();
System.Net.Security (1)
System\Security\Authentication\ExtendedProtection\ServiceNameCollection.cs (1)
200distinguisher = hostPortAndDistinguisher.AsSpan(nextSlashIndex); // Includes Slash
System.Net.Sockets (1)
System\Net\Sockets\UnixDomainSocketEndPoint.cs (1)
128return string.Concat("@", _path.AsSpan(1));
System.Private.CoreLib (26)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\TraceLoggingEventSource.cs (1)
750ReadOnlySpan<char> etwTrait = m_traits[i].AsSpan(4);
src\libraries\System.Private.CoreLib\src\System\Environment.OSVersion.Unix.cs (1)
33int numberPos = text.AsSpan(pos).IndexOfAnyInRange('0', '9');
src\libraries\System.Private.CoreLib\src\System\Environment.UnixOrBrowser.cs (1)
45result.Append(name.AsSpan(lastPos));
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.cs (1)
1477time = string.Concat(time.AsSpan(0, j), sep, time.AsSpan(endIndex));
src\libraries\System.Private.CoreLib\src\System\Globalization\CultureData.Icu.cs (2)
130ReadOnlySpan<char> alternateSortName = realNameBuffer.AsSpan(index + 1); 155_sRealName = NormalizeCultureName(_sWindowsName, indexOfExtensions > 0 ? _sRealName.AsSpan(indexOfExtensions) : ReadOnlySpan<char>.Empty, _sRealName, out int collationStart);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (1)
2032ReadOnlySpan<char> monthPostfix = dateWords[i].AsSpan(1);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeParse.cs (2)
5593int wsIndex = target.AsSpan(targetPosition).IndexOfAny("\u0020\u00A0\u202F"); 5637wsIndex = target.AsSpan(targetPosition).IndexOfAny("\u0020\u00A0\u202F");
src\libraries\System.Private.CoreLib\src\System\Globalization\IdnMapping.cs (2)
325iNextDot = unicode.AsSpan(iAfterLastDot).IndexOfAny(DotSeparators); 413if (unicode.AsSpan(iAfterLastDot).StartsWith(c_strAcePrefix, StringComparison.OrdinalIgnoreCase))
src\libraries\System.Private.CoreLib\src\System\Globalization\StringInfo.cs (1)
166return GetNextTextElementLength(str.AsSpan(index));
src\libraries\System.Private.CoreLib\src\System\Globalization\TextElementEnumerator.cs (1)
43_currentTextElementLength = TextSegmentationUtility.GetLengthOfFirstUtf16ExtendedGraphemeCluster(_str.AsSpan(newOffset));
src\libraries\System.Private.CoreLib\src\System\Globalization\TextInfo.cs (1)
334ChangeCaseCommon<TConversion>(source.AsSpan((int)currIdx), resultSpan.Slice((int)currIdx));
src\libraries\System.Private.CoreLib\src\System\IO\StringReader.cs (1)
186ReadOnlySpan<char> remaining = s.AsSpan(pos);
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
328EscapeStringToBuilder(codebase.AsSpan(indexOfFirstToEscape), ref vsb);
src\libraries\System.Private.CoreLib\src\System\SearchValues\Strings\StringSearchValues.cs (2)
367newValues[newValuesCount++] = $"{previous.AsSpan(0, i)}{(char)(c ^ 0x20)}{previous.AsSpan(i + 1)}"; 435if (char.IsAscii(value[0]) && value.AsSpan(1).ContainsAnyInRange((char)0, (char)127))
src\libraries\System.Private.CoreLib\src\System\String.Comparison.cs (1)
566return (uint)offset <= (uint)this.Length && this.AsSpan(offset).SequenceEqual(value);
src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (4)
1445this.AsSpan(thisIdx).CopyTo(dstSpan.Slice(dstIdx)); 1528ReadOnlySpan<char> remaining = this.AsSpan(idxOfFirstNewlineChar + stride); 1617ReadOnlySpan<char> remaining = this.AsSpan(idxOfFirstNewlineChar + stride); 1956thisEntry = this.AsSpan(currIndex);
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (1)
1546ReadOnlySpan<char> remainder = format.AsSpan(pos);
src\libraries\System.Private.CoreLib\src\System\Text\ValueStringBuilder.AppendFormat.cs (1)
41ReadOnlySpan<char> remainder = format.AsSpan(pos);
src\System\Reflection\Emit\RuntimeModuleBuilder.cs (1)
588int i = className.AsSpan(startIndex).IndexOfAny('[', '*', '&');
System.Private.DataContractSerialization (7)
System\Runtime\Serialization\DataContract.cs (3)
623Type? type = typeName.AsSpan(7) switch 1542localName?.Append(typeName.AsSpan(startIndex)); 1556nestedParamCounts.Add(int.Parse(typeName.AsSpan(endIndex + 1), provider: CultureInfo.InvariantCulture));
System\Runtime\Serialization\Json\XmlObjectSerializerReadContextComplexJson.cs (2)
166serverTypeNamespace = string.Concat(Globals.DataContractXsdBaseNamespace, serverTypeNamespace.AsSpan(1)); 199serverTypeNamespace = string.Concat(Globals.DataContractXsdBaseNamespace, serverTypeNamespace.AsSpan(1));
System\Runtime\Serialization\Json\XmlObjectSerializerWriteContextComplexJson.cs (1)
89return string.Concat("#", dataContractNamespace.AsSpan(JsonGlobals.DataContractXsdBaseNamespaceLength));
System\Xml\XmlConverter.cs (1)
1122foreach (char c in s.AsSpan(indexOfWhitespace + 1))
System.Private.Uri (9)
System\DomainNameHelper.cs (1)
234ReadOnlySpan<char> label = hostname.AsSpan(i);
System\Uri.cs (8)
2521host = IPv6AddressHelper.ParseCanonicalName(str.AsSpan(idx), ref loopback, out ReadOnlySpan<char> scopeIdSpan); 3312_string = string.Concat(_string, _originalUnicodeString.AsSpan(origIdx)); 3351ReadOnlySpan<char> span = _originalUnicodeString.AsSpan(origIdx); 3500int index = _originalUnicodeString.AsSpan(origIdx).IndexOf('#'); 3642int colonOffset = uriString.AsSpan(i).IndexOf(':'); 4781string.Concat(left, "/", relativePart.AsSpan(1)) : 4835extra = relativePart.AsSpan(i); 4950return relPath.Append(path2.AsSpan(si + 1)).ToString();
System.Private.Xml (12)
System\Xml\Dom\XmlName.cs (1)
181return string.GetHashCode(name.AsSpan(name.LastIndexOf(':') + 1));
System\Xml\Schema\Inference\Infer.cs (1)
1771if (s.AsSpan(i) is "INF")
System\Xml\Serialization\CodeIdentifier.cs (1)
200int arguments = int.Parse(name.AsSpan(nameEnd + 1), provider: CultureInfo.InvariantCulture) + index;
System\Xml\Serialization\XmlSerializationReader.cs (1)
799attr.Value = $"{_r.LookupNamespace(attr.Value.Substring(0, colon))}:{attr.Value.AsSpan(colon + 1)}";
System\Xml\Serialization\XmlSerializationWriter.cs (2)
587long index = long.Parse(name.AsSpan(prefixLength), NumberStyles.Integer, CultureInfo.InvariantCulture); 4467ReadOnlySpan<char> choiceName = colon < 0 ? xmlName : xmlName.AsSpan(colon + 1);
System\Xml\XmlConvert.cs (1)
89Regex.ValueMatchEnumerator en = DecodeCharRegex.EnumerateMatches(name.AsSpan(underscorePos));
System\Xml\XPath\Internal\XPathScanner.cs (1)
329ReadOnlySpan<char> span = _xpathExpr.AsSpan(_xpathExprIndex - 1);
System\Xml\Xsl\IlGen\XmlILTrace.cs (4)
185return string.Concat(s.AsSpan(9), " introduction"); 189return string.Concat(s.AsSpan(9), " elimination"); 193return string.Concat(s.AsSpan(7), " commutation"); 197return string.Concat(s.AsSpan(4), " folding");
System.ServiceModel.Syndication (1)
System\ServiceModel\Syndication\DateTimeHelper.cs (1)
62dateTimeString = string.Concat(dateTimeString.AsSpan(0, 19), dateTimeString.AsSpan(i));
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\RegexCharClass.cs (5)
580state.set.AsSpan(2).CopyTo(span.Slice(SetStartIndex)); 909return !set1.AsSpan(1).SequenceEqual(set2.AsSpan(1)); 1492List<(char First, char Last)>? ranges = ComputeRanges(charClass.AsSpan(start)); 1862set[0] == '\0' ? set.AsSpan(1) :
System.Text.RegularExpressions.Generator (5)
src\libraries\System.Text.RegularExpressions\src\System\Text\RegularExpressions\RegexCharClass.cs (5)
580state.set.AsSpan(2).CopyTo(span.Slice(SetStartIndex)); 909return !set1.AsSpan(1).SequenceEqual(set2.AsSpan(1)); 1492List<(char First, char Last)>? ranges = ComputeRanges(charClass.AsSpan(start)); 1862set[0] == '\0' ? set.AsSpan(1) :
System.Web.HttpUtility (4)
System\Web\Util\HttpEncoder.cs (3)
74ReadOnlySpan<char> remaining = s.AsSpan(index); 567: value.AsSpan(i); 591indexOfQuery >= 0 ? value.AsSpan(indexOfQuery) : ReadOnlySpan<char>.Empty);
System\Web\Util\UriUtil.cs (1)
21queryAndFragment = input.AsSpan(queryFragmentSeparatorPos);
System.Windows.Forms (1)
System\Resources\ResXFileRef.cs (1)
93relPath.Append(path2.AsSpan(si + 1));
System.Windows.Forms.Design (1)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (1)
1027baseName.AsSpan(i).Replace(span[i..], '`', '_');
Templates.Blazor.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
207listeningUrlString.AsSpan(listeningUrlString.LastIndexOf(':')));
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
207listeningUrlString.AsSpan(listeningUrlString.LastIndexOf(':')));
Templates.Blazor.WebAssembly.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
207listeningUrlString.AsSpan(listeningUrlString.LastIndexOf(':')));
Templates.Mvc.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
207listeningUrlString.AsSpan(listeningUrlString.LastIndexOf(':')));
Templates.Tests (1)
src\ProjectTemplates\Shared\AspNetProcess.cs (1)
207listeningUrlString.AsSpan(listeningUrlString.LastIndexOf(':')));