1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

update donations. fix hls path bug.

This commit is contained in:
winlin 2015-03-30 14:08:17 +08:00
parent 692b751da8
commit cd682ae4be
5 changed files with 41 additions and 49 deletions

View file

@ -226,6 +226,11 @@ bool srs_string_ends_with(string str, string flag)
return str.rfind(flag) == str.length() - flag.length();
}
bool srs_string_starts_with(string str, string flag)
{
return str.find(flag) == 0;
}
int srs_do_create_dir_recursively(string dir)
{
int ret = ERROR_SUCCESS;

View file

@ -60,6 +60,8 @@ extern std::string srs_string_trim_start(std::string str, std::string trim_chars
extern std::string srs_string_remove(std::string str, std::string remove_chars);
// whether string end with
extern bool srs_string_ends_with(std::string str, std::string flag);
// whether string starts with
extern bool srs_string_starts_with(std::string str, std::string flag);
// create dir recursively
extern int srs_create_dir_recursively(std::string dir);