mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 07:46:21 +02:00
f4ab297b31
`///@file` makes them show up in the internal API dos. A tiny few were missing `#pragma once`.
23 lines
468 B
C++
23 lines
468 B
C++
#pragma once
|
|
///@file
|
|
|
|
#include <regex>
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
namespace nix {
|
|
|
|
/**
|
|
* 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.
|
|
*/
|
|
std::string hiliteMatches(
|
|
std::string_view s,
|
|
std::vector<std::smatch> matches,
|
|
std::string_view prefix,
|
|
std::string_view postfix);
|
|
|
|
}
|