2 writes to Path
System.Private.Uri (2)
System\Uri.cs (2)
2389info.Offset.Path = idx; 3270_info.Offset.Path = _string.Length;
53 references to Path
System.Private.Uri (53)
System\Uri.cs (48)
165Debug.Assert(offset.Path >= 0); 166Debug.Assert(offset.End >= 0 && offset.End >= offset.Path); 170Debug.Assert(offset.Path >= offset.Host); 171Debug.Assert(offset.Query >= 0 && offset.Query >= offset.Path); 182Debug.Assert(offset.Path >= offset.Host); 344char ch = _string[_info.Offset.Path]; 1018start = IsUncPath ? _info.Offset.Host - 2 : _info.Offset.Path; 1044start = _info.Offset.Path; 1643(IsDosPath && _string[_info.Offset.Path + SecuredPathIndex - 1] == '|')) // A rare case of c|\ 1792int end1 = _info.Offset.Path; 1795int end2 = other._info.Offset.Path; 1818if (i1 < _info.Offset.Path && _string[i1] != ':') 2432string host = CreateHostStringHelper(_string, _info.Offset.Host, _info.Offset.Path, ref flags, _info); 2662else if (IsDosPath && _string[_info.Offset.Path + SecuredPathIndex - 1] == '|') 2697else if (IsDosPath && _string[_info.Offset.Path + SecuredPathIndex - 1] == '|') 2984return _string.Substring(_info.Offset.Scheme, _info.Offset.Path - _info.Offset.Scheme); 2988_string.AsSpan(_info.Offset.Host, _info.Offset.Path - _info.Offset.Host)); 2997return _string.Substring(_info.Offset.Host, _info.Offset.Path - _info.Offset.Host); 2999return string.Concat(_string.AsSpan(_info.Offset.Host, _info.Offset.Path - _info.Offset.Host), 3024return _string.Substring(_info.Offset.Scheme, _info.Offset.Path - _info.Offset.Scheme); 3043int idx = _info.Offset.Path; 3057_info.Offset.End > _info.Offset.Path && _string[_info.Offset.Path] == '/') 3058delimiterAwareIdx = _info.Offset.Path + 1; 3060delimiterAwareIdx = _info.Offset.Path; 3093return (_info.Offset.Path - _info.Offset.User == 0) ? string.Empty : 3094_string.Substring(_info.Offset.User, _info.Offset.Path - _info.Offset.User); 3100return string.Concat(_string.AsSpan(_info.Offset.User, _info.Offset.Path - _info.Offset.User), 3104return _string.Substring(_info.Offset.Path, _info.Offset.Fragment - _info.Offset.Path); 3119return _string.Substring(_info.Offset.Path, _info.Offset.End - _info.Offset.Path); 3244idx = _info.Offset.Path; 3245origIdx = _info.Offset.Path; 3271idx = _info.Offset.Path; 3370&& (_info.Offset.Path == length || _string[_info.Offset.Path] is not ('/' or '\\'))) 4241if (_info.Offset.Path == _info.Offset.Query) 4255dest.Append(_string.AsSpan(_info.Offset.Path, _info.Offset.Query - _info.Offset.Path)); 4274if (dosPathIdx != 0 && str[dosPathIdx + _info.Offset.Path - 1] == '|') 4277chars[dosPathIdx + _info.Offset.Path - 1] = ':'; 4282str.Slice(_info.Offset.Path, _info.Offset.Query - _info.Offset.Path), 4287dest.Append(_string.AsSpan(_info.Offset.Path, _info.Offset.Query - _info.Offset.Path)); 4308dest.Append(_string.AsSpan(_info.Offset.Path, _info.Offset.Query - _info.Offset.Path));
System\UriExt.cs (5)
462if (InFact(Flags.FirstSlashAbsent) && _info.Offset.Query > _info.Offset.Path) 472if (IsDosPath && str[_info.Offset.Path + SecuredPathIndex - 1] == '|') 480Check result = CheckCanonical(str.AsSpan(idx, _info.Offset.Path - idx), '/', out _); 976int portIndex = otherUri._info.Offset.Path; 988portIndex = otherUri._info.Offset.Path;