|
Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
|
#include <regex>#include <vector>#include <string>Go to the source code of this file.
Functions | |
| std::string | nix::hiliteMatches (std::string_view s, std::vector< std::smatch > matches, std::string_view prefix, std::string_view postfix) |
| std::string nix::hiliteMatches | ( | std::string_view | s, |
| std::vector< std::smatch > | matches, | ||
| std::string_view | prefix, | ||
| std::string_view | postfix ) |
Highlight all the given matches in the given string s by wrapping them between prefix and postfix.
If some matches overlap, then their union will be wrapped rather than the individual matches.