Qsmtp  0.37
Functions
qutf8.h File Reference

functions for UTF-8 processing More...

#include "sstring.h"

Go to the source code of this file.

Functions

int valid_utf8 (const cstring s)
 check if a given string contains only valid UTF-8 sequences More...
 

Detailed Description

functions for UTF-8 processing

Function Documentation

◆ valid_utf8()

int valid_utf8 ( const cstring  s)

check if a given string contains only valid UTF-8 sequences

Parameters
sstring to check
Returns
the number of UTF-8 characters in s
Return values
-1the sequence is invalid