summaryrefslogtreecommitdiff
path: root/type.cpp
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2018-03-18 14:47:17 -0400
committerPeter LaFosse <peter@vector35.com>2018-03-18 14:47:17 -0400
commit8f80afaaffa53ab0a1b0a4abc1a4c27ac45cf7d0 (patch)
tree0fa995153d544fcdfc8d9e6f39db113e332da5d1 /type.cpp
parent0700b6ba0b92ff99328f764a5e48192dc6f961c6 (diff)
Add api for getting total string output size of QualifiedName object
Diffstat (limited to 'type.cpp')
-rw-r--r--type.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/type.cpp b/type.cpp
index 08b64713..0a91ae92 100644
--- a/type.cpp
+++ b/type.cpp
@@ -188,6 +188,15 @@ size_t QualifiedName::size() const
}
+size_t QualifiedName::StringSize() const
+{
+ size_t size = 0;
+ for (auto& name : m_name)
+ size += name.size() + 2;
+ return size - 2;
+}
+
+
string QualifiedName::GetString() const
{
bool first = true;