(svn r21133) -Add: function to check the validity of a string (without modifying it)
This commit is contained in:
@@ -117,6 +117,15 @@ void str_strip_colours(char *str);
|
||||
/** Convert the given string to lowercase, only works with ASCII! */
|
||||
void strtolower(char *str);
|
||||
|
||||
/**
|
||||
* Checks whether the given string is valid, i.e. contains only
|
||||
* valid (printable) characters and is properly terminated.
|
||||
* @param str The string to validate.
|
||||
* @param last The last character of the string, i.e. the string
|
||||
* must be terminated here or earlier.
|
||||
*/
|
||||
bool StrValid(const char *str, const char *last);
|
||||
|
||||
/**
|
||||
* Check if a string buffer is empty.
|
||||
*
|
||||
|
Reference in New Issue
Block a user