MCPcopy Create free account
hub / github.com/catboost/catboost / UrlUnescape

Function UrlUnescape

library/cpp/string_utils/quote/quote.cpp:243–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243char* UrlUnescape(char* to, TStringBuf from) {
244 while (!from.empty()) {
245 char ch = from[0];
246 from.Skip(1);
247 if ('%' == ch && 2 <= from.length())
248 ch = TFromHexZeroTerm::x2c(from);
249 *to++ = ch;
250 }
251
252 *to = 0;
253
254 return to;
255}
256
257void UrlUnescape(TString& url) {
258 if (url.empty()) {

Callers 2

Y_UNIT_TESTFunction · 0.85
UrlUnescapeRetFunction · 0.85

Calls 7

x2cFunction · 0.85
UrlUnescapeRetFunction · 0.85
emptyMethod · 0.45
SkipMethod · 0.45
lengthMethod · 0.45
beginMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected