Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <map>
- #include <regex>
- std::string LoadDocument()
- {
- return "{ Caption = \"calc.exe\"; CommandLine = \"\"C:\\Windows\\system32\\calc.exe\" \"; CreationClassName = \"Win32_Process\"; CreationDate = \"20130606190134.584628+240\"; Handle = \"16504\"; HandleCount = 93; KernelModeTime = \"624004\"; };";
- }
- void RegexPairs(const std::string& docStr, std::map<std::string, std::string>& outMap)
- {
- //Todo
- }
- int main(int argc, char* argv[])
- {
- std::string docStr = LoadDocument();
- std::map<std::string, std::string> resultMap;
- RegexPairs(docStr, resultMap);
- for (auto pair : resultMap)
- {
- std::cout << pair.first << " = " << pair.second << std::endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement