MCPcopy Create free account
hub / github.com/WayfireWM/wayfire / strip_until_dots

Function strip_until_dots

src/debug.cpp:157–166  ·  view source on GitHub ↗

* Find the first position where ".." is, and then strip everything before that. */

Source from the content-addressed store, hash-verified

155 * Find the first position where ".." is, and then strip everything before that.
156 */
157std::string strip_until_dots(std::string line)
158{
159 size_t pos = line.find("..");
160 if (pos != std::string::npos)
161 {
162 return line.substr(pos);
163 }
164
165 return line;
166}
167
168/**
169 * A hexadecimal offset to void* pointer conversion

Callers 1

try_addr2lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected