Skip to main content

utility Namespace

Utility functions for the µTest++ testing framework. More...

Definition​

namespace micro_os_plus::micro_test_plus::utility { ... }

Functions Index​

const char *extract_file_name (const char *path) noexcept

Extracts the file name component from a full path. More...

boolis_match (std::string_view input, std::string_view pattern)

Checks whether a string matches a pattern with * and ? wildcards. More...

std::vector< std::string_view >split (std::string_view input, std::string_view delimiters)

Splits a string view into a vector of string views. More...

template <class T, class Delim_T>
auto split (T input, Delim_T delim) -> std::vector< T >

Splits a string into a vector of sub-strings. More...

Description​

Utility functions for the µTest++ testing framework.

The micro_os_plus::micro_test_plus::utility namespace provides a suite of helper functions for the strings that the tests often check.

These utilities include functions for extracting the file name from a path, for pattern matching (verifying whether a string matches a pattern with * and ? wildcards), and for splitting strings into sub-strings based on delimiters.


Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.