From b915e433911b4597626c721a8ae4a6e9dae6ac5a Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Mon, 14 Oct 2013 21:57:43 +0200
Subject: fs/Path: add method data()

---
 src/fs/Path.hxx | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/fs/Path.hxx b/src/fs/Path.hxx
index faeb669b7..9bbedeeab 100644
--- a/src/fs/Path.hxx
+++ b/src/fs/Path.hxx
@@ -199,6 +199,15 @@ public:
 		return value.c_str();
 	}
 
+	/**
+	 * Returns a pointer to the raw value, not necessarily
+	 * null-terminated.
+	 */
+	gcc_pure
+	const_pointer data() const {
+		return value.data();
+	}
+
 	/**
 	 * Convert the path to UTF-8.
 	 * Returns empty string on error or if this instance is "nulled"
-- 
cgit v1.2.3