summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/whitespace.h
diff options
context:
space:
mode:
authorTaybin Rutkin <taybin@taybin.com>2006-12-01 06:01:30 +0000
committerTaybin Rutkin <taybin@taybin.com>2006-12-01 06:01:30 +0000
commit927553f6b83add18d03f4bae55421743342d5704 (patch)
treed5379ff2b00477f274f28a608732375449b02672 /libs/pbd/pbd/whitespace.h
parentc103132ae60973dc4ee0831a70b5c6aa1b3d9747 (diff)
PBD::strip_whitespace_edges() returns the empty string if the passed string is
all whitespace. This allows for some mild code cleanup. It's also declared in the PBD namespace now. sfdb-v4 implemented. Instead of fields that go across all files, there is now just one tag field where you can enter comma delimited tags. Searching for tags to follow soon. I recommend trashing your current ~/.ardour2/sfdb file. git-svn-id: svn://localhost/ardour2/trunk@1182 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/pbd/whitespace.h')
-rw-r--r--libs/pbd/pbd/whitespace.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/pbd/pbd/whitespace.h b/libs/pbd/pbd/whitespace.h
index 6620a8fb50..6adb41641c 100644
--- a/libs/pbd/pbd/whitespace.h
+++ b/libs/pbd/pbd/whitespace.h
@@ -3,6 +3,12 @@
#include <string>
+namespace PBD {
+
+// returns the empty string if the entire string is whitespace
+// so check length after calling.
extern void strip_whitespace_edges (std::string& str);
+} // namespace PBD
+
#endif // __pbd_whitespace_h__