|
From: Frank V. C. <fr...@us...> - 2001-04-10 21:17:53
|
Update of /cvsroot/corelinux/clfw/src/libs/clfw
In directory usw-pr-cvs1:/tmp/cvs-serv31067/src/libs/clfw
Modified Files:
FrameworkString.cpp
Log Message:
Added profile and schema location support
Index: FrameworkString.cpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/libs/clfw/FrameworkString.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** FrameworkString.cpp 2001/03/31 22:21:45 1.1
--- FrameworkString.cpp 2001/04/10 21:17:50 1.2
***************
*** 177,180 ****
--- 177,215 ----
}
+
+ //
+ // Concat value
+ //
+
+ FrameworkStringRef FrameworkString::operator+=( CharCptr aPtr )
+ {
+ REQUIRE( aPtr != NULLPTR );
+
+ //
+ // Get our size, get their size, add 1 and copy both
+ //
+
+ CharPtr aTval = new Char[(std::strlen(theValue) +
+ std::strlen(aPtr)) + 1];
+
+ aTval[0] = 0;
+
+ std::strcpy(aTval,theValue);
+ std::strcat(aTval,aPtr);
+ delete [] theValue;
+ theValue = aTval;
+
+ return ( *this );
+ }
+
+ //
+ // Concat value
+ //
+
+ FrameworkStringRef FrameworkString::operator+=( FrameworkStringCref aRef )
+ {
+ return FrameworkString::operator+=( aRef.getValue() );
+ }
+
//! version FrameworkString for the FrameworkString MetaType
|