From 99979e09ed93437afc0af38e9d9682b4433c7cf2 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Thu, 16 Jan 2014 23:18:59 +0100 Subject: [PATCH] Xml_node::Attribute::value_size accessor --- os/include/util/xml_node.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/os/include/util/xml_node.h b/os/include/util/xml_node.h index c6d4b40297..397f2177c2 100644 --- a/os/include/util/xml_node.h +++ b/os/include/util/xml_node.h @@ -120,6 +120,11 @@ namespace Genode { return strlen(type) == _name.len() && strcmp(type, _name.start(), _name.len()) == 0; } + /** + * Return size of value + */ + size_t value_size() const { return _value.len(); } + /** * Return attribute value as null-terminated string *