XenevaOS
Loading...
Searching...
No Matches
Functions
mibenum.h File Reference
#include <inttypes.h>
#include <stdbool.h>
#include <parserutils/errors.h>
#include <parserutils/functypes.h>
Include dependency graph for mibenum.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint16_t parserutils_charset_mibenum_from_name (const char *alias, size_t len)
 
const char * parserutils_charset_mibenum_to_name (uint16_t mibenum)
 
bool parserutils_charset_mibenum_is_unicode (uint16_t mibenum)
 

Function Documentation

◆ parserutils_charset_mibenum_from_name()

uint16_t parserutils_charset_mibenum_from_name ( const char *  alias,
size_t  len 
)

Retrieve the MIB enum value assigned to an encoding name

Parameters
aliasThe alias to lookup
lenThe length of the alias string
Returns
The MIB enum value, or 0 if not found

◆ parserutils_charset_mibenum_is_unicode()

bool parserutils_charset_mibenum_is_unicode ( uint16_t  mibenum)

Detect if a parserutils_charset is Unicode

Parameters
mibenumThe MIB enum to consider
Returns
true if a Unicode variant, false otherwise

◆ parserutils_charset_mibenum_to_name()

const char * parserutils_charset_mibenum_to_name ( uint16_t  mibenum)

Retrieve the canonical name of an encoding from the MIB enum

Parameters
mibenumThe MIB enum value
Returns
Pointer to canonical name, or NULL if not found