mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
For #2109, Add more utest for srs_string_split
This commit is contained in:
parent
2492b726af
commit
248085edfe
3 changed files with 125 additions and 30 deletions
|
@ -102,9 +102,9 @@ extern bool srs_string_contains(std::string str, std::string flag0, std::string
|
|||
extern int srs_string_count(std::string str, std::string flag);
|
||||
// Find the min match in str for flags.
|
||||
extern std::string srs_string_min_match(std::string str, std::vector<std::string> flags);
|
||||
// Split the string by flag to array.
|
||||
// Split the string by seperator to array.
|
||||
extern std::vector<std::string> srs_string_split(std::string s, std::string seperator);
|
||||
extern std::vector<std::string> srs_string_split(std::string str, std::vector<std::string> flags);
|
||||
extern std::vector<std::string> srs_string_split(std::string s, std::vector<std::string> seperators);
|
||||
|
||||
// Compare the memory in bytes.
|
||||
// @return true if completely equal; otherwise, false.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue