*/
#include "pbd/whitespace.h"
-#include <glibmm/ustring.h>
using namespace std;
/* strip front */
for (i = 0; i < len; ++i) {
- if (isgraph (str[i])) {
+ if (!isspace (str[i])) {
break;
}
}
}
do {
- if (isgraph (str[i]) || i == 0) {
+ if (!isspace (str[i]) || i == 0) {
break;
}
}
}
-void
-strip_whitespace_edges (Glib::ustring& str)
-{
- string copy (str.raw());
- strip_whitespace_edges (copy);
- str = copy;
-}
-
} // namespace PBD