1 #include <pbd/whitespace.h>
8 strip_whitespace_edges (string& str)
11 string::size_type len;
22 for (i = 0; i < len; ++i) {
23 if (isgraph (str[i])) {
29 /* it's all whitespace, not much we can do */
46 if (isgraph (str[i]) || i == 0) {
54 str = str.substr (s, (i - s) + 1);