From fc375da9867ba3b358bcc7f1c99c79e4cdc488f3 Mon Sep 17 00:00:00 2001 From: Arjen Baart Date: Tue, 16 Jun 2020 19:16:13 +0200 Subject: [PATCH] SuperString + operator --- debian/changelog | 6 ++++++ src/Makefile.am | 2 +- src/superstring.cpp | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 3310131..5aed59c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +libacl (0.3-2) testing; urgency=low + + * SuperString class + + -- Arjen Baart Tue, 16 Jun 2020 19:14:10 +0200 + libacl (0.3-1) testing; urgency=low * Initial release. diff --git a/src/Makefile.am b/src/Makefile.am index de2e50a..29780d5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -7,6 +7,6 @@ libACL_la_SOURCES = string.cpp regex.cpp superstring.cpp date.cpp parsedate.c da configuration.cpp \ _version.c -libACL_la_LDFLAGS = -release 0.3.1 +libACL_la_LDFLAGS = -release 0.3.2 include_HEADERS = String.h date.h Integer.h xml.h configuration.h diff --git a/src/superstring.cpp b/src/superstring.cpp index 6624470..b71fd5f 100644 --- a/src/superstring.cpp +++ b/src/superstring.cpp @@ -31,6 +31,9 @@ SuperString operator+(const SuperString& sx, const SuperString& sy) { SuperString sum; + sum = sx; + sum._ss.insert(sum._ss.end(), sy._ss.begin(), sy._ss.end()); + return sum; } @@ -47,6 +50,9 @@ SuperString operator+(const String& s, const SuperString& ss) { SuperString sum; + sum = ss; + sum._ss.insert(sum._ss.begin(), s); + return sum; } -- 2.11.0