mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 18:02:38 +02:00
common: added function to split a string to a vector by using a delimiter
This commit is contained in:
@@ -17,4 +17,13 @@
|
||||
const std::string get_shell_env_var(const char* key,
|
||||
const char *def_val="") noexcept;
|
||||
|
||||
/*!
|
||||
* \brief convert a string, separate by delim to a vector
|
||||
* \param[in] in: string to split
|
||||
* \param[in] delim: split caracter
|
||||
* \return vector a substring
|
||||
*/
|
||||
const std::vector<std::string> splitString(const std::string& in,
|
||||
const char delim) noexcept;
|
||||
|
||||
#endif // SRC_COMMON_HPP_
|
||||
|
||||
Reference in New Issue
Block a user