39 references to Subsegment
Microsoft.AspNetCore.Http (2)
src\Http\Shared\CookieHeaderParserShared.cs (2)
163parsedName = input.Subsegment(offset, itemLength); 224return input.Subsegment(startIndex, length);
Microsoft.AspNetCore.Http.Abstractions (2)
HostString.cs (2)
354host = value.Subsegment(0, index + 1); 372host = value.Subsegment(0, index);
Microsoft.AspNetCore.Mvc.Core (2)
src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (2)
71SubTypeWithoutSuffix = subType.Subsegment(0, subType.Length - subtypeSuffixLength - 1); 72SubTypeSuffix = subType.Subsegment(subType.Length - subtypeSuffixLength, subtypeSuffixLength);
Microsoft.AspNetCore.Routing (2)
src\Shared\MediaType\ReadOnlyMediaTypeHeaderValue.cs (2)
71SubTypeWithoutSuffix = subType.Subsegment(0, subType.Length - subtypeSuffixLength - 1); 72SubTypeSuffix = subType.Subsegment(subType.Length - subtypeSuffixLength, subtypeSuffixLength);
Microsoft.Extensions.Primitives (3)
StringSegment.cs (2)
418public StringSegment Subsegment(int offset) => Subsegment(offset, Length - offset); 624return Subsegment(0, i + 1);
StringTokenizer.cs (1)
132Current = _value.Subsegment(_index, next - _index);
Microsoft.Net.Http.Headers (28)
CacheControlHeaderValue.cs (1)
756destination.Add(valueString.Subsegment(current, tokenLength));
ContentDispositionHeaderValue.cs (3)
330dispositionType = input.Subsegment(startIndex, typeLength); 361dateString = dateString.Subsegment(1, dateString.Length - 2); 472result = result.Subsegment(1, result.Length - 2);
ContentRangeHeaderValue.cs (4)
246var unit = input.Subsegment(startIndex, unitLength); 394if ((fromLength > 0) && !HeaderUtilities.TryParseNonNegativeInt64(input.Subsegment(fromStartIndex, fromLength), out from)) 400if ((toLength > 0) && !HeaderUtilities.TryParseNonNegativeInt64(input.Subsegment(toStartIndex, toLength), out to)) 412if ((lengthLength > 0) && !HeaderUtilities.TryParseNonNegativeInt64(input.Subsegment(lengthStartIndex, lengthLength),
EntityTagHeaderValue.cs (1)
265parsedValue._tag = input.Subsegment(tagStartIndex, tagLength);
HeaderUtilities.cs (1)
593input = input.Subsegment(1, input.Length - 2);
MediaTypeHeaderValue.cs (5)
247return _mediaType.Subsegment(0, _mediaType.IndexOf(ForwardSlashCharacter)); 287return subType.Subsegment(0, startOfSuffix); 643mediaType = input.Subsegment(startIndex, mediaTypeLength); 677var type = mediaType.Subsegment(0, mediaType.IndexOf(ForwardSlashCharacter)); 765subTypeWithoutSuffix = subType.Subsegment(0, startOfSuffix);
NameValueHeaderValue.cs (2)
356var name = input.Subsegment(startIndex, nameLength); 380parsedValue._value = input.Subsegment(current, valueLength);
RangeHeaderValue.cs (1)
172result._unit = input.Subsegment(startIndex, unitLength);
RangeItemHeaderValue.cs (2)
216if ((fromLength > 0) && !HeaderUtilities.TryParseNonNegativeInt64(input.Subsegment(fromStartIndex, fromLength), out from)) 223if ((toLength > 0) && !HeaderUtilities.TryParseNonNegativeInt64(input.Subsegment(toStartIndex, toLength), out to))
SetCookieHeaderValue.cs (5)
497result._name = input.Subsegment(offset, itemLength); 534var token = input.Subsegment(offset, itemLength); 577var numberString = input.Subsegment(offset, itemLength); 662result.Extensions.Add(input.Subsegment(tokenStart, offset - tokenStart)); 708var result = input.Subsegment(offset, itemLength);
src\Http\Shared\CookieHeaderParserShared.cs (2)
163parsedName = input.Subsegment(offset, itemLength); 224return input.Subsegment(startIndex, length);
StringWithQualityHeaderValue.cs (1)
205result._value = input.Subsegment(startIndex, valueLength);