mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Add a small documentation for hiliteMatches
This commit is contained in:
parent
f82a426502
commit
ffb28eaa1e
1 changed files with 7 additions and 0 deletions
|
@ -156,5 +156,12 @@ inline hintformat hintfmt(std::string plain_string)
|
|||
return hintfmt("%s", normaltxt(plain_string));
|
||||
}
|
||||
|
||||
/**
|
||||
* 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(const std::string &s, std::vector<std::smatch> matches, std::string prefix, std::string postfix);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue