MCPcopy Create free account
hub / github.com/anyrtcIO-Community/anyRTC-RTMP-OpenSource / s_transform

Function s_transform

webrtc/base/stringencode.cc:548–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546}
547
548std::string s_transform(const std::string& source, Transform t) {
549 // Ask transformation function to approximate the destination size (returns upper bound)
550 size_t maxlen = t(NULL, 0, source.data(), source.length());
551 char * buffer = STACK_ARRAY(char, maxlen);
552 size_t len = t(buffer, maxlen, source.data(), source.length());
553 std::string result(buffer, len);
554 return result;
555}
556
557size_t tokenize(const std::string& source, char delimiter,
558 std::vector<std::string>* fields) {

Callers 2

s_url_encodeFunction · 0.85
s_url_decodeFunction · 0.85

Calls 2

dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected