summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-01-05 14:01:00 +0000
committerCarl Hetherington <cth@carlh.net>2016-01-05 14:01:00 +0000
commit342aad2ddf893aaaafa9a2c9980579d2dc4ec125 (patch)
tree85cd4c34316d76679c18ea49c7de33e8066a6a1c /src/util.cc
parentaa632b458fc2aa5ff1ca2e2702dcf589ae627d7d (diff)
Try to rationalise handling of urn:uuid: prefixes.
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util.cc b/src/util.cc
index 64c695d1..b9c21dc5 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -395,3 +395,10 @@ dcp::find_child (xmlpp::Node const * node, string name)
DCP_ASSERT (i != c.end ());
return *i;
}
+
+string
+dcp::remove_urn_uuid (string raw)
+{
+ DCP_ASSERT (raw.substr(0, 9) == "urn:uuid:");
+ return raw.substr (9);
+}