projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make unit tests optional.
[ardour.git]
/
libs
/
pbd
/
strsplit.cc
diff --git
a/libs/pbd/strsplit.cc
b/libs/pbd/strsplit.cc
index b7a7109af4159fe64f3b2f8411972c41b6001a28..d30b7356ac387f6939114e3fe198998a03ad5672 100644
(file)
--- a/
libs/pbd/strsplit.cc
+++ b/
libs/pbd/strsplit.cc
@@
-17,7
+17,7
@@
*/
*/
-#include
<pbd/strsplit.h>
+#include
"pbd/strsplit.h"
using namespace std;
using namespace Glib;
using namespace std;
using namespace Glib;
@@
-49,7
+49,7
@@
split (string str, vector<string>& result, char splitchar)
remaining = str;
remaining = str;
- while ((pos = remaining.find_first_of (
':'
)) != string::npos) {
+ while ((pos = remaining.find_first_of (
splitchar
)) != string::npos) {
result.push_back (remaining.substr (0, pos));
remaining = remaining.substr (pos+1);
}
result.push_back (remaining.substr (0, pos));
remaining = remaining.substr (pos+1);
}
@@
-87,7
+87,7
@@
split (ustring str, vector<ustring>& result, char splitchar)
remaining = str;
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);
}
result.push_back (remaining.substr (0, pos));
remaining = remaining.substr (pos+1);
}