First public contribution.
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
26 #if defined(__VC32__) && !defined(__MSVCDOTNET__)
28 #else //!__VC32__ || __MSVCDOTNET__
31 #endif //!__VC32__ || __MSVCDOTNET__
37 NB only byte strings supported, no Unicode yet
39 WARNING: Class for internal use ONLY. Compatibility is not guaranteed in future releases.
44 inline String(const char* aText);
45 inline String(int aLength, char* aText);
46 inline String(const String& aString);
47 inline String& operator = (const char* aText);
48 inline String& operator = (const String& aString);
49 inline String& operator += (const char aChar);
50 inline String& operator += (const String& aString);
51 inline int operator == (const String& aString) const;
52 inline char& operator [] (const int aNum) const;
53 inline int Length() const;
54 inline const char* Text();
55 IMPORT_C virtual void Externalize(ostream& out);
57 inline void CopyText(char* aDest, const char* aSource, int aLength) const;
58 IMPORT_C int CreateText(const int aLength);
59 IMPORT_C void DeleteText(char* aText) const;
63 int32 iLength; // length of string
65 friend ostream& operator << (ostream& out, const String& aString);