#pragma once #include #include #include namespace StringUtil { std::string lower(const std::string& text); std::string trim(const std::string& text); bool equalsIgnoreCase(const std::string& a, const std::string& b); bool startsWithIgnoreCase(const std::string& text, const std::string& prefix); std::string join(const std::vector& parts, std::size_t from, const std::string& separator); // Number of characters (UTF-8 code points) in the text. std::size_t displayWidth(const std::string& text); // Number of lines in the text, ignoring trailing blank lines (0 for empty text). std::size_t lineCount(const std::string& text); } // namespace StringUtil