Fan.Sys.Uri.Decoder.addQueryParam C# (CSharp) Method

addQueryParam() private method

private addQueryParam ( Map map, string q, int start, int eq, int end, bool escaped ) : void
map Map
q string
start int
eq int
end int
escaped bool
return void
            private void addQueryParam(Map map, string q, int start, int eq, int end, bool escaped)
            {
                string key, val;
                if (start == eq && q[start] != '=')
                {
                  key = toQueryStr(q, start, end, escaped);
                  val = "true";
                }
                else
                {
                  key = toQueryStr(q, start, eq, escaped);
                  val = toQueryStr(q, eq+1, end, escaped);
                }

                string dup = (string)map.get(key);
                if (dup != null) val = dup + "," + val;
                map.set(key, val);
            }