Update MiscUtils.cpp

develop
Ryan Williams 2024-01-04 06:28:30 -08:00 committed by GitHub
parent cfcae09c48
commit 82f9c8823c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

@ -177,7 +177,7 @@ std::string to_search_normalized(const std::string &str)
} }
std::string capitalize_string_words(const std::string& str) std::string capitalize_string_words(const std::string& str)
{ // Cleaned up from g_src/basics.cpp, and returns new string { // Cleaned up from g_src/basics.cpp, and returns new string
std::string out = str; std::string out = str;
bool starting = true; bool starting = true;
int32_t bracket_count = 0; int32_t bracket_count = 0;
@ -294,7 +294,7 @@ bool word_wrap(std::vector<std::string> *out, const std::string &str, size_t lin
} }
std::string grab_token_string_pos(const std::string& source, int32_t pos, char compc) std::string grab_token_string_pos(const std::string& source, int32_t pos, char compc)
{ // Cleaned up from g_src/basics.cpp, return string instead of bool { // Cleaned up from g_src/basics.cpp, return string instead of bool
std::string out; std::string out;
// Go until you hit compc, ']', or the end // Go until you hit compc, ']', or the end