MCPcopy Create free account
hub / github.com/Kitware/CMake / rtrim

Function rtrim

Tests/RunCMake/GenerateExportHeader/exportheader_test.cpp:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "libstatic.h"
10
11static void rtrim(std::string& str, char byte)
12{
13 size_t const size = str.size();
14 if (size && str[size - 1] == byte) {
15 str.resize(size - 1);
16 }
17}
18
19void compare(char const* refName, char const* testName)
20{

Callers 1

compareFunction · 0.85

Calls 2

sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…