31 #ifndef LEDGER_CORE_STRINGS_HPP 32 #define LEDGER_CORE_STRINGS_HPP 36 #include "../utils/Option.hpp" 43 bool startsWith(
const std::string& str,
const std::string& prefix);
44 std::function<std::string (const std::string&, const Option<std::string>&)> mkString(
const std::string& separator);
45 int indexOf(
const std::string& src,
const std::string& search);
46 std::string& replace(std::string& str,
const std::string& from,
const std::string& to);
47 std::vector<std::string> split(
const std::string& str,
const std::string& delimiter);
48 void join(
const std::vector<std::string>& values, std::stringstream& ss,
const std::string& separator);
54 #endif //LEDGER_CORE_STRINGS_HPP Definition: Account.cpp:8