mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refine code to allow search for conflicts.
This commit is contained in:
parent
ead49e747b
commit
5d48c9ce1b
6 changed files with 27 additions and 27 deletions
|
@ -148,15 +148,15 @@ extern bool srs_string_is_http(std::string url);
|
|||
extern bool srs_string_is_rtmp(std::string url);
|
||||
|
||||
// Whether string is digit number
|
||||
// is_digit("0") === true
|
||||
// is_digit("0000000000") === true
|
||||
// is_digit("1234567890") === true
|
||||
// is_digit("0123456789") === true
|
||||
// is_digit("1234567890a") === false
|
||||
// is_digit("a1234567890") === false
|
||||
// is_digit("10e3") === false
|
||||
// is_digit("!1234567890") === false
|
||||
// is_digit("") === false
|
||||
// is_digit("0") is true
|
||||
// is_digit("0000000000") is true
|
||||
// is_digit("1234567890") is true
|
||||
// is_digit("0123456789") is true
|
||||
// is_digit("1234567890a") is false
|
||||
// is_digit("a1234567890") is false
|
||||
// is_digit("10e3") is false
|
||||
// is_digit("!1234567890") is false
|
||||
// is_digit("") is false
|
||||
extern bool srs_is_digit_number(std::string str);
|
||||
|
||||
// Get local ip, fill to @param ips
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue