From f09ffefddb9aae732b485153b706b0f96ffe4933 Mon Sep 17 00:00:00 2001 From: "scc%mozilla.org" Date: Tue, 8 Aug 2000 00:14:35 +0000 Subject: [PATCH] not part of the build; initial work on multi-fragment strings git-svn-id: svn://10.0.0.236/trunk@75738 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/string/public/nsFragmentedString.h | 41 +++++++++++++++---- mozilla/xpcom/ds/nsFragmentedString.h | 41 +++++++++++++++---- .../xpcom/string/public/nsFragmentedString.h | 41 +++++++++++++++---- 3 files changed, 102 insertions(+), 21 deletions(-) diff --git a/mozilla/string/public/nsFragmentedString.h b/mozilla/string/public/nsFragmentedString.h index 9e1e7059e49..5e640b2fb4e 100644 --- a/mozilla/string/public/nsFragmentedString.h +++ b/mozilla/string/public/nsFragmentedString.h @@ -1,20 +1,20 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* - * The contents of this file are subject to the Netscape Public + * The contents of this file are subject to the Mozilla Public * License Version 1.1 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ - * + * the License at http://www.mozilla.org/MPL/ + * * Software distributed under the License is distributed on an "AS * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or * implied. See the License for the specific language governing * rights and limitations under the License. - * - * The Original Code is mozilla.org code. - * + * + * The Original Code is Mozilla XPCOM. + * * The Initial Developer of the Original Code is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All + * Copyright (C) 2000 Netscape Communications Corporation. All * Rights Reserved. * * Original Author: @@ -39,8 +39,35 @@ class basic_nsFragmentedString ... */ { + protected: + virtual const void* Implementation() const; + + virtual const CharT* GetReadableFragment( nsReadableFragment&, nsFragmentRequest, PRUint32 ) const; + virtual CharT* GetWritableFragment( nsWritableFragment&, nsFragmentRequest, PRUint32 ); + public: + virtual PRUint32 Length() const; + + virtual void SetCapacity( PRUint32 aNewCapacity ); + virtual void SetLength( PRUint32 aNewLength ); + + private: + // ... }; + /** + * |SetLength| + */ + + + /** + * |SetCapacity|. + * + * If a client tries to increase the capacity of multi-fragment string, perhaps a single + * empty fragment of the appropriate size should be appended. + */ + + + #endif // !defined(nsFragmentedString_h___) diff --git a/mozilla/xpcom/ds/nsFragmentedString.h b/mozilla/xpcom/ds/nsFragmentedString.h index 9e1e7059e49..5e640b2fb4e 100644 --- a/mozilla/xpcom/ds/nsFragmentedString.h +++ b/mozilla/xpcom/ds/nsFragmentedString.h @@ -1,20 +1,20 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* - * The contents of this file are subject to the Netscape Public + * The contents of this file are subject to the Mozilla Public * License Version 1.1 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ - * + * the License at http://www.mozilla.org/MPL/ + * * Software distributed under the License is distributed on an "AS * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or * implied. See the License for the specific language governing * rights and limitations under the License. - * - * The Original Code is mozilla.org code. - * + * + * The Original Code is Mozilla XPCOM. + * * The Initial Developer of the Original Code is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All + * Copyright (C) 2000 Netscape Communications Corporation. All * Rights Reserved. * * Original Author: @@ -39,8 +39,35 @@ class basic_nsFragmentedString ... */ { + protected: + virtual const void* Implementation() const; + + virtual const CharT* GetReadableFragment( nsReadableFragment&, nsFragmentRequest, PRUint32 ) const; + virtual CharT* GetWritableFragment( nsWritableFragment&, nsFragmentRequest, PRUint32 ); + public: + virtual PRUint32 Length() const; + + virtual void SetCapacity( PRUint32 aNewCapacity ); + virtual void SetLength( PRUint32 aNewLength ); + + private: + // ... }; + /** + * |SetLength| + */ + + + /** + * |SetCapacity|. + * + * If a client tries to increase the capacity of multi-fragment string, perhaps a single + * empty fragment of the appropriate size should be appended. + */ + + + #endif // !defined(nsFragmentedString_h___) diff --git a/mozilla/xpcom/string/public/nsFragmentedString.h b/mozilla/xpcom/string/public/nsFragmentedString.h index 9e1e7059e49..5e640b2fb4e 100644 --- a/mozilla/xpcom/string/public/nsFragmentedString.h +++ b/mozilla/xpcom/string/public/nsFragmentedString.h @@ -1,20 +1,20 @@ /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* - * The contents of this file are subject to the Netscape Public + * The contents of this file are subject to the Mozilla Public * License Version 1.1 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/NPL/ - * + * the License at http://www.mozilla.org/MPL/ + * * Software distributed under the License is distributed on an "AS * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or * implied. See the License for the specific language governing * rights and limitations under the License. - * - * The Original Code is mozilla.org code. - * + * + * The Original Code is Mozilla XPCOM. + * * The Initial Developer of the Original Code is Netscape * Communications Corporation. Portions created by Netscape are - * Copyright (C) 1998 Netscape Communications Corporation. All + * Copyright (C) 2000 Netscape Communications Corporation. All * Rights Reserved. * * Original Author: @@ -39,8 +39,35 @@ class basic_nsFragmentedString ... */ { + protected: + virtual const void* Implementation() const; + + virtual const CharT* GetReadableFragment( nsReadableFragment&, nsFragmentRequest, PRUint32 ) const; + virtual CharT* GetWritableFragment( nsWritableFragment&, nsFragmentRequest, PRUint32 ); + public: + virtual PRUint32 Length() const; + + virtual void SetCapacity( PRUint32 aNewCapacity ); + virtual void SetLength( PRUint32 aNewLength ); + + private: + // ... }; + /** + * |SetLength| + */ + + + /** + * |SetCapacity|. + * + * If a client tries to increase the capacity of multi-fragment string, perhaps a single + * empty fragment of the appropriate size should be appended. + */ + + + #endif // !defined(nsFragmentedString_h___)