kodi
Public Types | Static Public Member Functions | List of all members
CUtf8Utils Class Reference

Public Types

enum  utf8CheckResult { plainAscii = -1, hiAscii = 0, utf8string = 1 }
 

Static Public Member Functions

static utf8CheckResult checkStrForUtf8 (const std::string &str)
 Check given string for valid UTF-8 sequences. More...
 
static bool isValidUtf8 (const std::string &str)
 
static size_t FindValidUtf8Char (const std::string &str, const size_t startPos=0)
 
static size_t RFindValidUtf8Char (const std::string &str, const size_t startPos)
 
static size_t SizeOfUtf8Char (const std::string &str, const size_t charStart=0)
 

Member Function Documentation

◆ checkStrForUtf8()

CUtf8Utils::utf8CheckResult CUtf8Utils::checkStrForUtf8 ( const std::string &  str)
static

Check given string for valid UTF-8 sequences.

Parameters
strstring to check
Returns
result of check, "plainAscii" for empty string

The documentation for this class was generated from the following files: