mirror of
https://github.com/open-goal/jak-project
synced 2026-09-02 10:11:44 -04:00
lsp: handle line-endings appropriately (#3318)
This commit is contained in:
@@ -18,7 +18,9 @@ int line_count(const std::string& str);
|
||||
bool valid_regex(const std::string& regex);
|
||||
std::string diff(const std::string& lhs, const std::string& rhs);
|
||||
/// Default splits on \n characters
|
||||
/// DEPRECATED - stop using it, limited as it only takes a char
|
||||
std::vector<std::string> split(const ::std::string& str, char delimiter = '\n');
|
||||
std::vector<std::string> split_string(const std::string& str, const std::string& delimiter = "\n");
|
||||
std::string join(const std::vector<std::string>& strs, const std::string& join_with);
|
||||
std::vector<std::string> regex_get_capture_groups(const std::string& str, const std::string& regex);
|
||||
bool replace(std::string& str, const std::string& from, const std::string& to);
|
||||
|
||||
Reference in New Issue
Block a user