//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx // // STRINGS // //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx #if !defined(__XSTRINGWS_CPP__) #define __XSTRINGWS_CPP__ #include "XToolsCommon.h" #include "XStringWArray.h" #include const XStringWArray NullXStrings; XStringWArray::XStringWArray() : XStringWArraySuper() { } //------------------------------------------------------------------------------------------------- // //------------------------------------------------------------------------------------------------- void XStringWArray::AddStrings(const wchar_t *Val1, ...) { VA_LIST va; const wchar_t *p; AddCopy(Val1); VA_START(va, Val1); p = VA_ARG(va, const wchar_t *); while ( p != nullptr ) { AddCopy(p); p = VA_ARG(va, const wchar_t *); } VA_END(va); } XStringW XStringWArray::ConcatAll(XStringW Separator, XStringW Prefix, XStringW Suffix) const { xsize i; XStringW s; if ( size() > 0 ) { s = Prefix; s += ElementAt(0); for ( i=1 ; i