File String.hpp

Parent directory (include/mu/tiny)

Lightweight string class and string-conversion utilities for the mutiny test framework.

Definition (include/mu/tiny/String.hpp)

View source on GitHub

Detailed Description

When Define MUTINY_USE_STD_STRING is defined, Class String is an alias for std::string and the custom class body is omitted entirely. Otherwise a self-contained String class is provided that avoids any dependency on the C++ standard library, allowing the framework to be used in bare-metal and other constrained environments.

The free functions below (Function mu::tiny::string_from(const mock::NamedValue&), Function mu::tiny::hex_string_from(unsigned int), Function mu::tiny::brackets_formatted_hex_string_from(int), and related utilities) are used throughout the framework to convert arbitrary values to their printable representations in assertion failure messages.

Includes

Included By

Namespaces

Classes

Functions

Defines

Variables