2 writes to Path
System.Private.Uri (2)
System\Uri.cs (2)
2373info.Offset.Path = idx; 3455_info.Offset.Path = vsb.Length;
52 references to Path
System.Private.Uri (52)
System\Uri.cs (47)
169Debug.Assert(offset.Path >= 0); 170Debug.Assert(offset.End >= 0 && offset.End >= offset.Path); 174Debug.Assert(offset.Path >= offset.Host); 175Debug.Assert(offset.Query >= 0 && offset.Query >= offset.Path); 186Debug.Assert(offset.Path >= offset.Host); 348char ch = _string[_info.Offset.Path]; 1002start = IsUncPath ? _info.Offset.Host - 2 : _info.Offset.Path; 1028start = _info.Offset.Path; 1627(IsDosPath && _string[_info.Offset.Path + SecuredPathIndex - 1] == '|')) // A rare case of c|\ 1776int end1 = _info.Offset.Path; 1779int end2 = other._info.Offset.Path; 1802if (i1 < _info.Offset.Path && _string[i1] != ':') 2416string host = CreateHostStringHelper(_string, _info.Offset.Host, _info.Offset.Path, ref flags, _info); 2646else if (IsDosPath && _string[_info.Offset.Path + SecuredPathIndex - 1] == '|') 2681else if (IsDosPath && _string[_info.Offset.Path + SecuredPathIndex - 1] == '|') 2968return _string.Substring(_info.Offset.Scheme, _info.Offset.Path - _info.Offset.Scheme); 2972_string.AsSpan(_info.Offset.Host, _info.Offset.Path - _info.Offset.Host)); 2981return _string.Substring(_info.Offset.Host, _info.Offset.Path - _info.Offset.Host); 2983return string.Concat(_string.AsSpan(_info.Offset.Host, _info.Offset.Path - _info.Offset.Host), 3008return _string.Substring(_info.Offset.Scheme, _info.Offset.Path - _info.Offset.Scheme); 3027int idx = _info.Offset.Path; 3041_info.Offset.End > _info.Offset.Path && _string[_info.Offset.Path] == '/') 3042delimiterAwareIdx = _info.Offset.Path + 1; 3044delimiterAwareIdx = _info.Offset.Path; 3077return (_info.Offset.Path - _info.Offset.User == 0) ? string.Empty : 3078_string.Substring(_info.Offset.User, _info.Offset.Path - _info.Offset.User); 3084return string.Concat(_string.AsSpan(_info.Offset.User, _info.Offset.Path - _info.Offset.User), 3088return _string.Substring(_info.Offset.Path, _info.Offset.Fragment - _info.Offset.Path); 3103return _string.Substring(_info.Offset.Path, _info.Offset.End - _info.Offset.Path); 3252int idx = _info.Offset.Path; 3276&& (_info.Offset.Path == length || inputStr[_info.Offset.Path] is not ('/' or '\\'))) 3425ReadOnlySpan<char> original = _originalUnicodeString.AsSpan(_info.Offset.Path); 4175if (_info.Offset.Path == _info.Offset.Query) 4189dest.Append(_string.AsSpan(_info.Offset.Path, _info.Offset.Query - _info.Offset.Path)); 4208if (dosPathIdx != 0 && str[dosPathIdx + _info.Offset.Path - 1] == '|') 4211chars[dosPathIdx + _info.Offset.Path - 1] = ':'; 4216str.Slice(_info.Offset.Path, _info.Offset.Query - _info.Offset.Path), 4221dest.Append(_string.AsSpan(_info.Offset.Path, _info.Offset.Query - _info.Offset.Path)); 4242dest.Append(_string.AsSpan(_info.Offset.Path, _info.Offset.Query - _info.Offset.Path));
System\UriExt.cs (5)
458if (InFact(Flags.FirstSlashAbsent) && _info.Offset.Query > _info.Offset.Path) 468if (IsDosPath && str[_info.Offset.Path + SecuredPathIndex - 1] == '|') 476Check result = CheckCanonical(str.AsSpan(idx, _info.Offset.Path - idx), '/', out _); 913int portIndex = otherUri._info.Offset.Path; 925portIndex = otherUri._info.Offset.Path;