mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Add normalize_script_path() zeek::zeekygen::detail namespace
This commit is contained in:
parent
9ced370b48
commit
c95a364ff7
3 changed files with 33 additions and 24 deletions
|
@ -64,4 +64,14 @@ bool is_all_whitespace(const std::string& s);
|
|||
*/
|
||||
std::string redef_indication(const std::string& from_script);
|
||||
|
||||
/**
|
||||
* Turns a script's path into a shortened, normalized version that
|
||||
* can be used for indexing and cross-referencing links.
|
||||
*
|
||||
* @param path the associate path to a Zeek script, which may be absolute.
|
||||
*
|
||||
* @return a normalized/shortened path (containing no ZEEKPATH components)
|
||||
*
|
||||
*/
|
||||
std::string normalize_script_path(std::string_view path);
|
||||
} // namespace zeek::zeekygen::detail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue