![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
Functions | |
| std::vector< std::string > | split (std::string_view input, std::string_view delim) noexcept |
| Split a string based on a delimiter. | |
| std::string | replace_first (std::string input, std::string_view to_replace, std::string_view replace_with) noexcept |
| Replace first occurrence of a string. | |
| std::string | replace_all (std::string input, std::string_view to_replace, std::string_view replace_with) noexcept |
| Replaces all occurrences of a string. | |
| bool | begins_with (const std::string &input, const std::string &find) noexcept |
| Check if string begins with another string. | |
| std::string | ltrim (std::string input) noexcept |
| Trim string from end. | |
| std::string | rtrim (std::string input) noexcept |
| Trim string from start. | |
| std::string | trim (std::string input) noexcept |
| Trim both ends of string. | |
| std::string | make_single_spaced (std::string input) noexcept |
| Make a string single spaced. | |
|
nodiscardnoexcept |
Split a string based on a delimiter.
| input | Input string to process. |
| delim | Delimiter to split string on. |
Definition at line 17 of file StringUtils.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
nodiscardnoexcept |
Replace first occurrence of a string.
| input | String to modify. This is a copy. |
| to_replace | Substring to be replaced. |
| replace_with | String to be inserted. |
Definition at line 37 of file StringUtils.cpp.
Here is the caller graph for this function:
|
nodiscardnoexcept |
Replaces all occurrences of a string.
Returns input string if to_replace not found.
| input | String to modify. This is a copy. |
| to_replace | Substring to be replaced. |
| replace_with | String to be inserted. |
Definition at line 49 of file StringUtils.cpp.
Here is the caller graph for this function:
|
nodiscardnoexcept |
Check if string begins with another string.
| input | Input string to check. |
| find | String to check for at beginning of input string. |
Definition at line 66 of file StringUtils.cpp.
Here is the caller graph for this function:
|
nodiscardnoexcept |
Trim string from end.
| input | String to trim. This is a copy. |
Definition at line 71 of file StringUtils.cpp.
Here is the caller graph for this function:
|
nodiscardnoexcept |
Trim string from start.
| input | String to trim. This is a copy. |
Definition at line 81 of file StringUtils.cpp.
Here is the caller graph for this function:
|
nodiscardnoexcept |
Trim both ends of string.
| input | String to trim. This is a copy. |
Definition at line 91 of file StringUtils.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
nodiscardnoexcept |
Make a string single spaced.
| input | String to reduce spacing from. This is a copy. |
Definition at line 99 of file StringUtils.cpp.
Here is the caller graph for this function: