MCPcopy Create free account
hub / github.com/Tencent/phxqueue / StrTrim

Function StrTrim

phxqueue_phxrpc/comm/iniparser.cpp:50–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50static void StrTrim(const string &delimiters, string &str) {
51 auto st = str.find_first_not_of(delimiters);
52 if (string::npos != st) str = str.substr(st);
53
54 auto ed = str.find_last_not_of(delimiters);
55 if (string::npos != ed) str = str.substr(0, ed + 1);
56}
57
58void INIParser::ParseContent(const string &content) {
59 phxqueue::comm::utils::RWLock rwlock_read(&impl_->rwlock, phxqueue::comm::utils::RWLock::LockMode::WRITE);

Callers 1

ParseContentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected