diff options
| author | nyamatongwe <unknown> | 2010-02-17 00:39:46 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2010-02-17 00:39:46 +0000 | 
| commit | 58f779b422ffbb2291364dcd5966ead10b21b087 (patch) | |
| tree | fddf110012583bb00001b22648b574320f642815 /src/SplitVector.h | |
| parent | d55ea76cd64ec2770d97e62ccdfcff8ccad5b43d (diff) | |
| download | scintilla-mirror-58f779b422ffbb2291364dcd5966ead10b21b087.tar.gz | |
Formatting whitespace.
Diffstat (limited to 'src/SplitVector.h')
| -rw-r--r-- | src/SplitVector.h | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/src/SplitVector.h b/src/SplitVector.h index af4e890e3..2c5c7a1d0 100644 --- a/src/SplitVector.h +++ b/src/SplitVector.h @@ -1,6 +1,6 @@  // Scintilla source code edit control  /** @file SplitVector.h - ** Main data structure for holding arrays that handle insertions  + ** Main data structure for holding arrays that handle insertions   ** and deletions efficiently.   **/  // Copyright 1998-2007 by Neil Hodgson <neilh@scintilla.org> @@ -97,7 +97,7 @@ public:  	/// Retrieve the character at a particular position.  	/// Retrieving positions outside the range of the buffer returns 0. -	/// The assertions here are disabled since calling code can be  +	/// The assertions here are disabled since calling code can be  	/// simpler if out of range access works and returns 0.  	T ValueAt(int position) const {  		if (position < part1Length) { @@ -135,7 +135,7 @@ public:  		}  	} -	T& operator[](int position) const { +	T &operator[](int position) const {  		PLATFORM_ASSERT(position >= 0 && position < lengthBody);  		if (position < part1Length) {  			return body[position]; @@ -182,14 +182,14 @@ public:  		}  	} -	/// Ensure at least length elements allocated,  +	/// Ensure at least length elements allocated,  	/// appending zero valued elements if needed.  	void EnsureLength(int wantedLength) {  		if (Length() < wantedLength) {  			InsertValue(Length(), wantedLength - Length(), 0);  		}  	} -	 +  	/// Insert text into the buffer from an array.  	void InsertFromArray(int positionToInsert, const T s[], int positionFrom, int insertLength) {  		PLATFORM_ASSERT((positionToInsert >= 0) && (positionToInsert <= lengthBody)); @@ -238,7 +238,7 @@ public:  		DeleteRange(0, lengthBody);  	} -	T* BufferPointer() { +	T *BufferPointer() {  		RoomFor(1);  		GapTo(lengthBody);  		body[lengthBody] = 0;  | 
