diff options
Diffstat (limited to 'src/DocumentAccessor.cxx')
| -rw-r--r-- | src/DocumentAccessor.cxx | 26 | 
1 files changed, 13 insertions, 13 deletions
| diff --git a/src/DocumentAccessor.cxx b/src/DocumentAccessor.cxx index 9cce5d5b4..4cb90c3e4 100644 --- a/src/DocumentAccessor.cxx +++ b/src/DocumentAccessor.cxx @@ -1,4 +1,4 @@ -// SciTE - Scintilla based Text Editor +// Scintilla source code edit control  /** @file DocumentAccessor.cxx   ** Rapid easy access to contents of a Scintilla.   **/ @@ -7,7 +7,7 @@  #include <stdlib.h>  #include <string.h> -#include <ctype.h>  +#include <ctype.h>  #include <stdio.h>  #include "Platform.h" @@ -23,12 +23,12 @@  DocumentAccessor::~DocumentAccessor() {  } -#if PLAT_WIN  +#if PLAT_WIN  bool DocumentAccessor::InternalIsLeadByte(char ch) {  	if (SC_CP_UTF8 == codePage)  		// For lexing, all characters >= 0x80 are treated the  		// same so none is considered a lead byte. -		return false;	 +		return false;  	else  		return IsDBCSLeadByteEx(codePage, ch);  } @@ -38,7 +38,7 @@ bool DocumentAccessor::InternalIsLeadByte(char ch) {  bool DocumentAccessor::InternalIsLeadByte(char) {  	return false;  } -#endif  +#endif  void DocumentAccessor::Fill(int position) {  	if (lenDoc == -1) @@ -72,10 +72,10 @@ int DocumentAccessor::LevelAt(int line) {  	return pdoc->GetLevel(line);  } -int DocumentAccessor::Length() {  -	if (lenDoc == -1)  +int DocumentAccessor::Length() { +	if (lenDoc == -1)  		lenDoc = pdoc->Length(); -	return lenDoc;  +	return lenDoc;  }  int DocumentAccessor::GetLineState(int line) { @@ -134,12 +134,12 @@ void DocumentAccessor::Flush() {  int DocumentAccessor::IndentAmount(int line, int *flags, PFNIsCommentLeader pfnIsCommentLeader) {  	int end = Length();  	int spaceFlags = 0; -	 -	// Determines the indentation level of the current line and also checks for consistent  + +	// Determines the indentation level of the current line and also checks for consistent  	// indentation compared to the previous line. -	// Indentation is judged consistent when the indentation whitespace of each line lines  +	// Indentation is judged consistent when the indentation whitespace of each line lines  	// the same or the indentation of one line is a prefix of the other. -	 +  	int pos = LineStart(line);  	char ch = (*this)[pos];  	int indent = 0; @@ -166,7 +166,7 @@ int DocumentAccessor::IndentAmount(int line, int *flags, PFNIsCommentLeader pfnI  		}  		ch = (*this)[++pos];  	} -	 +  	*flags = spaceFlags;  	indent += SC_FOLDLEVELBASE;  	// if completely empty line or the start of a comment... | 
