MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / stringToDict

Function stringToDict

src/http.cpp:95–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95static Exiv2::Dictionary stringToDict(const std::string& s) {
96 Exiv2::Dictionary result;
97 std::string token;
98
99 size_t i = 0;
100 while (i < s.length()) {
101 if (s[i] != ',') {
102 if (s[i] != ' ')
103 token += s[i];
104 } else {
105 result[token] = token;
106 token.clear();
107 }
108 i++;
109 }
110 result[token] = token;
111 return result;
112}
113
114static int makeNonBlocking(int sockfd) {
115#if defined(_WIN32)

Callers 1

httpMethod · 0.85

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected