From: David ‘Bombe’ Roden Date: Sun, 6 Jul 2008 09:31:00 +0000 (+0200) Subject: add getSize method X-Git-Tag: 0.1~11 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8e1a365b548620ff912272eee8788900bff16070;p=ecparse.git add getSize method --- diff --git a/StringTag.cpp b/StringTag.cpp index d7482f0..ec92210 100644 --- a/StringTag.cpp +++ b/StringTag.cpp @@ -18,6 +18,10 @@ StringTag::~StringTag() { } } +int StringTag::getSize() { + return strlen(value); +} + void* StringTag::getValue() { return value; } diff --git a/StringTag.h b/StringTag.h index 9464834..567d603 100644 --- a/StringTag.h +++ b/StringTag.h @@ -12,6 +12,7 @@ public: StringTag(int id, const char* value); ~StringTag(); + int getSize(); void* getValue(); private: