Exposed utf8_valid as a public function to reduce duplicity. Allow utf-8 string length of 0 to be valid.

This commit is contained in:
skarg
2012-05-11 15:03:35 +00:00
parent 35e953ba8b
commit 54c4ce342c
3 changed files with 21 additions and 117 deletions
+3
View File
@@ -145,6 +145,9 @@ extern "C" {
BACNET_CHARACTER_STRING * char_string);
bool characterstring_valid(
BACNET_CHARACTER_STRING * char_string);
bool utf8_isvalid(
const char *str,
size_t length);
/* returns false if the string exceeds capacity
initialize by using length=0 */