mqtt_cpp
Enumerations | Functions
MQTT_NS::utf8string Namespace Reference

Enumerations

enum class  validation { well_formed = 0 , ill_formed , well_formed_with_non_charactor }
 

Functions

constexpr bool is_valid_length (string_view str)
 
constexpr validation validate_contents (string_view str)
 

Enumeration Type Documentation

◆ validation

Enumerator
well_formed 

UTF-8 string is well_formed. See http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718016 1.5.3 UTF-8 encoded strings.

ill_formed 

UTF-8 string is ill_formed or contains null character. See http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718016 1.5.3 UTF-8 encoded strings.

well_formed_with_non_charactor 

UTF-8 string is well_formed and contains control character and non-character. See http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718016 1.5.3 UTF-8 encoded strings.

Function Documentation

◆ is_valid_length()

constexpr bool MQTT_NS::utf8string::is_valid_length ( string_view  str)
constexpr

◆ validate_contents()

constexpr validation MQTT_NS::utf8string::validate_contents ( string_view  str)
constexpr