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