axl main logo
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
axl_bool axl_babel_check_utf8_content ( const char *  content,
int  content_length,
int *  index_error 

Allows to check if the provided string is in utf-8 coding form.

contentThe content to length.
content_lengthLength (in octets) of the string received. If provided -1, content will be calculated using strlen function.
index_errorOptional reference where will be reported the index position that caused the error.
axl_true if the content provided is all in utf-8 otherwise axl_false is returned. In the case index_error or error is defined and an error is found, they are defined to the appropriate value.

References axl_false, AXL_LEVEL_CRITICAL, axl_return_val_if_fail, and axl_true.