feat: finish string helper.

- finish Split() in string helper.
- make complement to testbench test code.
This commit is contained in:
2024-05-22 13:42:43 +08:00
parent 9c943705de
commit b8a56efd7c
6 changed files with 63 additions and 42 deletions

View File

@ -53,8 +53,10 @@ namespace YYCC::StringHelper {
/**
* @brief General Split function.
* @param _strl
* @param _decilmer
* @param _strl[in] The string need to be splitting.
* If this is nullptr, the result will be empty.
* @param _decilmer[in] The decilmer for splitting.
* If decilmer is nullptr or zero length, the result will only have 1 element which is original string.
* @return
* @remarks This function may be low performance because it just a homebrew Split functon.
* It can works in most toy cases but not suit for high performance scenario.