[−][src]Module serial_unit_testing::utils
Enums
NewlineFormat | Newline format type |
TextFormat | Text format type for radix string conversion. |
Functions
add_newline | Add newline characters to the end of the string. |
byte_position_of_char | Get the starting position of a character in a string. |
bytes_from_binary_string | Convert a binary string into a vector of bytes. |
bytes_from_decimal_string | Convert a decimal string into a vector of bytes |
bytes_from_hex_string | Convert a hexadecimal string into a vector of bytes. |
bytes_from_octal_string | Convert a octal string into a vector of bytes |
bytes_from_radix_string | Convert a radix string into a vector of bytes. |
char_count | Get actual character count (instead of byte count). |
escape_text | Escape given string. |
get_format_name | Get a text representation of the text format. |
get_newline_format_name | Get a text representation of the newline format. |
get_next_format | Get the next cyclic text format. |
get_next_newline_format | Get the next cyclic newline format. |
insert_char | Insert a character by given character index (instead of byte position). |
print_radix_string | Print a vector of bytes in given format. |
radix_string | Convert a vector of bytes into a radix string with given text format. |
remove_char | Remove a character by given character index (instead of byte position). |