MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / TrimLeadingWhitespace

Function TrimLeadingWhitespace

formatter/generic/genericformatter.cpp:54–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53
54static string TrimLeadingWhitespace(const string& str)
55{
56 size_t startPos = 0;
57 for (size_t i = 0; i < str.size(); i++)
58 {
59 if (!isspace(str[i]))
60 {
61 startPos = i;
62 break;
63 }
64 }
65 return str.substr(startPos);
66}
67
68
69static string TrimTrailingWhitespace(const string& str)

Callers 1

AppendAllTokensMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected