micro-test-plus 6.0.1
µTest++ Testing Framework
Loading...
Searching...
No Matches
utility.h File Reference

C++ header file with declarations for the µTest++ utility helpers. More...

#include <cstddef>
#include <string_view>
#include <vector>
#include "inlines/utility-inlines.h"

Go to the source code of this file.

Namespaces

namespace  micro_os_plus
 The primary namespace for the µOS++ framework.
namespace  micro_os_plus::micro_test_plus
 Primary namespace for the µTest++ testing framework.
namespace  micro_os_plus::micro_test_plus::utility
 Utility functions for the µTest++ testing framework.

Functions

const char * micro_os_plus::micro_test_plus::utility::extract_file_name (const char *path) noexcept
 Extracts the file name component from a full path.
bool micro_os_plus::micro_test_plus::utility::is_match (std::string_view input, std::string_view pattern)
 Checks whether a string matches a pattern with * and ? wildcards.
std::vector< std::string_view > micro_os_plus::micro_test_plus::utility::split (std::string_view input, std::string_view delimiters)
 Splits a string view into a vector of string views.
template<class T, class Delim_T>
requires requires (T s, Delim_T d) { T::npos; s.find_first_of (d, std::size_t{}); s.substr (std::size_t{}, std::size_t{}); }
auto micro_os_plus::micro_test_plus::utility::split (T input, Delim_T delim) -> std::vector< T >
 Splits a string into a vector of sub-strings.

Detailed Description

This header provides declarations for the utility helper functions used within the µTest++ framework. It defines interfaces for string operations including file-name extraction, pattern matching, and string splitting.

This file is included by micro-os-plus/micro-test-plus.h, which is the header that the applications include.

Definition in file utility.h.