| 48 | } |
| 49 | |
| 50 | static 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 | |
| 58 | void INIParser::ParseContent(const string &content) { |
| 59 | phxqueue::comm::utils::RWLock rwlock_read(&impl_->rwlock, phxqueue::comm::utils::RWLock::LockMode::WRITE); |