MCPcopy Create free account
hub / github.com/avast/retdec / removeWhitespace

Function removeWhitespace

src/utils/string.cpp:857–861  ·  view source on GitHub ↗

* @brief Removes all whitespace from the given string. */

Source from the content-addressed store, hash-verified

855* @brief Removes all whitespace from the given string.
856*/
857std::string removeWhitespace(std::string s) {
858 s.erase(std::remove_if(s.begin(), s.end(),
859 [](const unsigned char c) { return std::isspace(c); }), s.end());
860 return s;
861}
862
863/**
864* @brief Transform @a position in @c json into line and column location.

Callers 6

hexStringToBytesFunction · 0.85
stringToLlvmTypeFunction · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85

Calls 3

eraseMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 4

TEST_FFunction · 0.68
TEST_FFunction · 0.68