1 /**************************************************************************
2 ** (c) Copyright 1997, Andromeda Technology & Automation
3 ***************************************************************************
4 ** MODULE INFORMATION *
5 ***********************
6 ** FILE NAME : superstring.cpp
7 ** SYSTEM NAME : Andromeda X-Windows Encapsulation
8 ** VERSION NUMBER : $Revision: 1.5 $
10 ** DESCRIPTION : SuperString class implementation.
15 ***************************************************************************
16 ** ADMINISTRATIVE INFORMATION *
17 ********************************
18 ** ORIGINAL AUTHOR : Arjen Baart - arjen@andromeda.nl
19 ** CREATION DATE : Jun 10, 2020
20 ** LAST UPDATE : Jun 10, 2020
22 **************************************************************************/
30 SuperString operator+(const SuperString& sx, const SuperString& sy)
35 sum._ss.insert(sum._ss.end(), sy._ss.begin(), sy._ss.end());
40 SuperString operator+(const SuperString& ss, const String& s)
49 SuperString operator+(const String& s, const SuperString& ss)
54 sum._ss.insert(sum._ss.begin(), s);
59 SuperString& SuperString::operator+=(const String& x)
66 String SuperString::join(const String &separator)
73 for (unsigned i = 1; i < _ss.size(); i++)
75 joined += separator + _ss[i];