5 writes to Path
System.Private.Uri (5)
55 references to Path
System.Private.Uri (55)
System\Uri.cs (50)
160Debug.Assert(offset.Path >= 0);
161Debug.Assert(offset.End >= 0 && offset.End >= offset.Path);
165Debug.Assert(offset.Path >= offset.Host);
166Debug.Assert(offset.Query >= 0 && offset.Query >= offset.Path);
177Debug.Assert(offset.Path >= offset.Host);
339char ch = _string[_info.Offset.Path];
1022start = IsUncPath ? _info.Offset.Host - 2 : _info.Offset.Path;
1047start = _info.Offset.Path;
1050result = new char[host.Length + 3 + _info.Offset.Fragment - _info.Offset.Path];
1666(IsDosPath && _string[_info.Offset.Path + SecuredPathIndex - 1] == '|')) // A rare case of c|\
1815int end1 = _info.Offset.Path;
1818int end2 = other._info.Offset.Path;
1841if (i1 < _info.Offset.Path && _string[i1] != ':')
2484string host = CreateHostStringHelper(_string, _info.Offset.Host, _info.Offset.Path, ref flags, _info);
2730else if (IsDosPath && _string[_info.Offset.Path + SecuredPathIndex - 1] == '|')
2765else if (IsDosPath && _string[_info.Offset.Path + SecuredPathIndex - 1] == '|')
3071return _string.Substring(_info.Offset.Scheme, _info.Offset.Path - _info.Offset.Scheme);
3075_string.AsSpan(_info.Offset.Host, _info.Offset.Path - _info.Offset.Host));
3084return _string.Substring(_info.Offset.Host, _info.Offset.Path - _info.Offset.Host);
3086return string.Concat(_string.AsSpan(_info.Offset.Host, _info.Offset.Path - _info.Offset.Host),
3111return _string.Substring(_info.Offset.Scheme, _info.Offset.Path - _info.Offset.Scheme);
3130int idx = _info.Offset.Path;
3144_info.Offset.End > _info.Offset.Path && _string[_info.Offset.Path] == '/')
3145delimiterAwareIdx = _info.Offset.Path + 1;
3147delimiterAwareIdx = _info.Offset.Path;
3180return (_info.Offset.Path - _info.Offset.User == 0) ? string.Empty :
3181_string.Substring(_info.Offset.User, _info.Offset.Path - _info.Offset.User);
3187return string.Concat(_string.AsSpan(_info.Offset.User, _info.Offset.Path - _info.Offset.User),
3191return _string.Substring(_info.Offset.Path, _info.Offset.Fragment - _info.Offset.Path);
3206return _string.Substring(_info.Offset.Path, _info.Offset.End - _info.Offset.Path);
3333idx = _info.Offset.Path;
3334origIdx = _info.Offset.Path;
3358idx = _info.Offset.Path;
3460&& (_info.Offset.Path == length || (str[_info.Offset.Path] != '/' && str[_info.Offset.Path] != '\\')))
4335if (_info.Offset.Path == _info.Offset.Query)
4349dest.Append(_string.AsSpan(_info.Offset.Path, _info.Offset.Query - _info.Offset.Path));
4374if (dosPathIdx != 0 && str[dosPathIdx + _info.Offset.Path - 1] == '|')
4377chars[dosPathIdx + _info.Offset.Path - 1] = ':';
4382str.Slice(_info.Offset.Path, _info.Offset.Query - _info.Offset.Path),
4387dest.Append(_string.AsSpan(_info.Offset.Path, _info.Offset.Query - _info.Offset.Path));
4408dest.Append(_string.AsSpan(_info.Offset.Path, _info.Offset.Query - _info.Offset.Path));