maix::util

maix.util module

This is maix::util module of MaixCDK.
All of these elements are in namespace maix::util.

For MaixCDK developer: DO NOT edit this doc file manually, this doc is auto generated!

Module

No module

Enum

Variable

Function

disable_kernel_debug

disable the kernel debug

C++ defination code:

void disable_kernel_debug()

enable_kernel_debug

disable the kernel debug

C++ defination code:

void enable_kernel_debug()

init_before_main

Initialize before main\nThe function is used to add preparatory operations that need to be executed before the main program runs.

C++ defination code:

void init_before_main()

register_exit_function

register exit function

C++ defination code:

void register_exit_function(void (*process)(void))

do_exit_function

exec all of exit function

C++ defination code:

void do_exit_function()

register_atexit

Registering default processes that need to be executed on exit

C++ defination code:

void register_atexit()

wait_any_key

Enter any key to next step

C++ defination code:

inline void wait_any_key()

str_strip

strip string, and return new striped string, will alloc new string.

C++ defination code:

std::string str_strip(std::string &s)

str_strip_replace

strip string and replace string, won't alloc new string.

C++ defination code:

void str_strip_replace(std::string &s)

str_strip_view

return ad string view of strip string, only a view of string, so use it carefully!

C++ defination code:

std::string_view str_strip_view(std::string_view str)

str_split_view

split string with a charactor, and return a string view, so use it carefully.

C++ defination code:

std::vector<std::string_view> str_split_view(std::string_view str, char delimiter)

str_split_view (overload 1)

split string with string, and return a string view, so use it carefully.

C++ defination code:

std::vector<std::string_view> str_split_view(std::string_view str, std::string_view delimiter)

str_split

split string with a charactor, and return a new string.

C++ defination code:

std::vector<std::string> str_split(const std::string &str, char delimiter)

str_split (overload 1)

split string with a charactor, and return a new string.

C++ defination code:

std::vector<std::string> str_split(const std::string &str, char delimiter)

str_splitn_view

split n times(will get max n + 1 strings) with a charactor, and return a string view, so use it carefully.

C++ defination code:

std::vector<std::string_view> str_splitn_view(std::string_view str, char delimiter, int n)

str_splitn_view (overload 1)

split n times(wll get max n + 1 strings) with string, and return a string view, so use it carefully.

C++ defination code:

std::vector<std::string_view> str_splitn_view(std::string_view str, std::string_view delimiter)

str_splitn

split n times (will get max n + 1 strings) with char delimiter, and return a new string (safer version with copying).

C++ defination code:

std::vector<std::string> str_splitn(const std::string& str, char delimiter, int n)

str_splitn (overload 1)

split n times (will get max n + 1 strings) with string delimiter, and return a new string (safer version with copying).

C++ defination code:

std::vector<std::string> str_splitn(const std::string& str, const std::string& delimiter, int n)

Class