class
#include <include/redhand/helper.hpp>
helper A singlton with a lot of helper functions available to all parts of redhand.
Contents
- Reference
Public static functions
- static auto split_string(const std::string& s, char delimiter) -> std::vector<std::string>
- split a string into multiple substrings
- static auto getEngine() -> engine&
- Get a reference to the attached engine, will throw an execption if m_engine is not set.
Function documentation
static std::vector<std::string> redhand:: helper:: split_string(const std::string& s,
char delimiter)
split a string into multiple substrings
Parameters | |
---|---|
s | the string to split |
delimiter | the character where the string will be split |
Returns | std::vector<std::string> a vector conatining all the substrings |