| 247 | } |
| 248 | |
| 249 | std::vector<std::string> StringSplit(const std::string& str, |
| 250 | const std::string& delim) { |
| 251 | std::vector<std::string> elems; |
| 252 | // NOLINTNEXTLINE(clang-analyzer-cplusplus.NewDeleteLeaks) |
| 253 | boost::split(elems, str, boost::is_any_of(delim), boost::token_compress_on); |
| 254 | return elems; |
| 255 | } |
| 256 | |
| 257 | bool StringStartsWith(const std::string& str, const std::string& prefix) { |
| 258 | return !prefix.empty() && prefix.size() <= str.size() && |
no outgoing calls