Github user brosander commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/104#discussion_r118704895
  
    --- Diff: libminifi/include/utils/StringUtils.h ---
    @@ -89,6 +89,25 @@ class StringUtils {
             s.end());
         return s;
       }
    +  
    +  static std::vector<std::string> split(const std::string &str, const 
std::string &delimiter) {
    +    std::vector<std::string> result;
    +    int last = 0;
    +    int next = 0;
    +    while ((next = str.find(delimiter, last)) != std::string::npos) {
    +      result.push_back(str.substr(last, next - last));
    +      last = next + delimiter.length();
    +    }
    +    result.push_back(str.substr(last, next - last));
    +    return result;
    +  }
    +  
    +  static inline bool starts_with(const std::string &str, const std::string 
&prefix) {
    --- End diff --
    
    @phrocker good call, will fix


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to