*/
-#include <pbd/strsplit.h>
+#include "pbd/strsplit.h"
using namespace std;
using namespace Glib;
remaining = str;
- while ((pos = remaining.find_first_of (':')) != string::npos) {
- result.push_back (remaining.substr (0, pos));
+ while ((pos = remaining.find_first_of (splitchar)) != string::npos) {
+ if (pos != 0) {
+ result.push_back (remaining.substr (0, pos));
+ }
remaining = remaining.substr (pos+1);
}
remaining = str;
- while ((pos = remaining.find_first_of (':')) != ustring::npos) {
+ while ((pos = remaining.find_first_of (splitchar)) != ustring::npos) {
result.push_back (remaining.substr (0, pos));
remaining = remaining.substr (pos+1);
}