Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CUtf8Utils Class Reference

#include <Utf8Utils.h>

Public Types

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

Static Public Member Functions

static utf8CheckResult checkStrForUtf8 (const std::string &str)
 
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 Enumeration Documentation

◆ utf8CheckResult

Enumerator
plainAscii 
hiAscii 
utf8string 

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

◆ FindValidUtf8Char()

size_t CUtf8Utils::FindValidUtf8Char ( const std::string & str,
const size_t startPos = 0 )
static

◆ isValidUtf8()

static bool CUtf8Utils::isValidUtf8 ( const std::string & str)
inlinestatic

◆ RFindValidUtf8Char()

size_t CUtf8Utils::RFindValidUtf8Char ( const std::string & str,
const size_t startPos )
static

◆ SizeOfUtf8Char()

size_t CUtf8Utils::SizeOfUtf8Char ( const std::string & str,
const size_t charStart = 0 )
inlinestatic

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