18#ifndef LIBSEMIGROUPS_DETAIL_PRINT_HPP_
19#define LIBSEMIGROUPS_DETAIL_PRINT_HPP_
29 [[nodiscard]]
bool isprint(std::string_view alphabet);
31 [[nodiscard]] std::string to_printable(
char c);
33 [[nodiscard]] std::string to_printable(std::string
const& alphabet);
35 template <
typename Int>
36 [[nodiscard]] std::string
37 to_printable(std::basic_string<Int>
const& alphabet) {
38 return fmt::format(
"{}",
39 std::vector<int>(alphabet.
begin(), alphabet.
end()));
42 template <
typename Thing>
43 [[nodiscard]] std::string to_printable(Thing
const& thing) {
44 return fmt::format(
"{}", thing);
Namespace for everything in the libsemigroups library.
Definition action.hpp:44