'startswith' util function for strings
This commit is contained in:
parent
5ef8afe7c4
commit
4883c6c197
@ -107,4 +107,8 @@ std::string HTMLDeEntitize( std::string result) {
|
|||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool StringStartsWith(string & input, string & prefix) {
|
||||||
|
return (input.find(prefix) == 0);
|
||||||
|
}
|
||||||
#endif /* STRINGUTIL_H_ */
|
#endif /* STRINGUTIL_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user