String conversions#

Provides string representations of various ABR SDK data types, including enum values.

The string representations returned by this header are intended to be used for logging and debugging purposes. They should not necessarily be relied on as being stable.

Author

Andreas Stöckel (Applied Brain Research)

Functions

const char *abr_status_str(abr_status_t status)#

Returns a string representation of enum values in abr_status_t.

Parameters:
  • status – Value for which a string representation should be returned.

Returns:

A string representation of the provided enum value. The returned pointer points at the program’s constant data section and is valid for the entire lifetime of the program. Returns “<UNKNOWN>” if the given enum value does not match any known value.

const char *abr_log_level_str(abr_log_level_t log_level)#

Returns a string representation of enum values in abr_log_level_t.

Parameters:
  • log_level – Value for which a string representation should be returned.

Returns:

A string representation of the provided enum value. The returned pointer points at the program’s constant data section and is valid for the entire lifetime of the program. Returns “<UNKNOWN>” if the given enum value does not match any known value.

const char *abr_variant_type_str(abr_variant_type_t variant_type)#

Returns a string representation of enum values in abr_variant_type_t.

Parameters:
  • variant_type – Value for which a string representation should be returned.

Returns:

A string representation of the provided enum value. The returned pointer points at the program’s constant data section and is valid for the entire lifetime of the program. Returns “<UNKNOWN>” if the given enum value does not match any known value.

const char *abr_event_flags_str(abr_event_flags_t event_flags)#

Returns a string representation of enum values in abr_event_flags_t.

Parameters:
  • event_flags – Value for which a string representation should be returned.

Returns:

A string representation of the provided enum value. The returned pointer points at the program’s constant data section and is valid for the entire lifetime of the program. Returns “<UNKNOWN>” if the given enum value does not match any known value.

const char *abr_asr_text_chunk_type_str(abr_asr_text_chunk_type_t asr_text_chunk_type)#

Returns a string representation of enum values in abr_asr_text_chunk_type_t.

Parameters:
  • asr_text_chunk_type – Value for which a string representation should be returned.

Returns:

A string representation of the provided enum value. The returned pointer points at the program’s constant data section and is valid for the entire lifetime of the program. Returns “<UNKNOWN>” if the given enum value does not match any known value.