From 944e2b6a9d8ee97c3202ac0403edec234d0bfa31 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 24 Apr 2023 10:37:48 -0700 Subject: More tweaks to make things easier to transition. --- src/stable/string.cpp | 10 ++++++++++ src/stable/string.h | 12 ++++++++++++ 2 files changed, 22 insertions(+) (limited to 'src/stable') diff --git a/src/stable/string.cpp b/src/stable/string.cpp index ed4e58b..98b78bd 100644 --- a/src/stable/string.cpp +++ b/src/stable/string.cpp @@ -516,6 +516,16 @@ const char *Bu::String::getStr() const return core->pFirst->pData; } +char *Bu::String::getData() +{ + return getStr(); +} + +const char *Bu::String::getData() const +{ + return getStr(); +} + const char *Bu::String::getConstStr() const { return getStr(); diff --git a/src/stable/string.h b/src/stable/string.h index c469580..1fc5496 100644 --- a/src/stable/string.h +++ b/src/stable/string.h @@ -721,6 +721,18 @@ namespace Bu *@returns (const char *) The string data. */ const char *getStr() const; + + /** + * Get a pointer to the string array. + *@returns (char *) The string data. + */ + char *getData(); + + /** + * Get a const pointer to the string array. + *@returns (const char *) The string data. + */ + const char *getData() const; /** * A convinience function, this one won't cause as much work as the -- cgit v1.2.3