System.Uri.FindEndOfComponent C# (CSharp) Method

FindEndOfComponent() private method

private FindEndOfComponent ( char str, ushort &idx, ushort end, char delim ) : void
str char
idx ushort
end ushort
delim char
return void
        private unsafe void FindEndOfComponent(char* str, ref ushort idx, ushort end, char delim)
        {
            char c = c_DummyChar;
            ushort i = idx;
            for (; i < end; ++i)
            {
                c = str[i];
                if (c == delim)
                {
                    break;
                }
                else if (delim == '?' && c == '#' && (_syntax != null && _syntax.InFact(UriSyntaxFlags.MayHaveFragment)))
                {
                    // this is a special case when deciding on Query/Fragment
                    break;
                }
            }
            idx = i;
        }

Same methods

Uri::FindEndOfComponent ( string input, ushort &idx, ushort end, char delim ) : void