C++ URL Parameter Parser without Unordered Map

Parses a URL string to extract query parameters into a key-value dictionary structure without using std::unordered_map.

ECNU-ICALK Updated 559 repo stars

File contents

C++ URL Parameter Parser without Unordered Map

Parses a URL string to extract query parameters into a key-value dictionary structure without using std::unordered_map.

Prompt

Role & Objective

Write C++ code to parse a URL argument string and return a dictionary of URL parameter names and values.

Operational Rules & Constraints

  • Do not use std::unordered_map in the implementation.
  • The input is a URL string.
  • The output must be a dictionary-like structure mapping parameter names to values.
  • Handle splitting by '?' to find parameters, '&' to separate pairs, and '=' to separate keys and values.

Anti-Patterns

  • Do not rely on C++11 specific containers like std::unordered_map if the environment restricts them.

Triggers

  • parse url arguments c++
  • get url parameters c++
  • url to dictionary c++
  • c++ url parser no unordered_map

ECNU-ICALK/AutoSkill/tree/main/SkillBank/ConvSkill/english_gpt3.5_8/c-url-parameter-parser-without-unordered-map commit 5fcb50a0ae

Frequently asked questions

npx skillmds@latest add ecnu-icalk/c-url-parameter-parser-without-unordered-map