MCPcopy Create free account
hub / github.com/boostorg/stacktrace / count_unprintable_chars

Function count_unprintable_chars

test/test.cpp:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51std::size_t count_unprintable_chars(const std::string& s) {
52 std::size_t result = 0;
53 for (std::size_t i = 0; i < s.size(); ++i) {
54 result += (std::isprint(s[i]) ? 0 : 1);
55 }
56
57 return result;
58}
59
60void test_frames_string_data_validity() {
61 stacktrace trace = return_from_nested_namespaces();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected