diff options
Diffstat (limited to 'lexlib/StyleContext.cxx')
| -rw-r--r-- | lexlib/StyleContext.cxx | 20 | 
1 files changed, 10 insertions, 10 deletions
| diff --git a/lexlib/StyleContext.cxx b/lexlib/StyleContext.cxx index 9429c5ba8..5bcacb018 100644 --- a/lexlib/StyleContext.cxx +++ b/lexlib/StyleContext.cxx @@ -21,12 +21,12 @@  using namespace Scintilla;  #endif -static void getRange(unsigned int start, -		unsigned int end, +static void getRange(Sci_PositionU start, +		Sci_PositionU end,  		LexAccessor &styler,  		char *s, -		unsigned int len) { -	unsigned int i = 0; +		Sci_PositionU len) { +	Sci_PositionU i = 0;  	while ((i < end - start + 1) && (i < len-1)) {  		s[i] = styler[start + i];  		i++; @@ -34,16 +34,16 @@ static void getRange(unsigned int start,  	s[i] = '\0';  } -void StyleContext::GetCurrent(char *s, unsigned int len) { +void StyleContext::GetCurrent(char *s, Sci_PositionU len) {  	getRange(styler.GetStartSegment(), currentPos - 1, styler, s, len);  } -static void getRangeLowered(unsigned int start, -		unsigned int end, +static void getRangeLowered(Sci_PositionU start, +		Sci_PositionU end,  		LexAccessor &styler,  		char *s, -		unsigned int len) { -	unsigned int i = 0; +		Sci_PositionU len) { +	Sci_PositionU i = 0;  	while ((i < end - start + 1) && (i < len-1)) {  		s[i] = static_cast<char>(tolower(styler[start + i]));  		i++; @@ -51,6 +51,6 @@ static void getRangeLowered(unsigned int start,  	s[i] = '\0';  } -void StyleContext::GetCurrentLowered(char *s, unsigned int len) { +void StyleContext::GetCurrentLowered(char *s, Sci_PositionU len) {  	getRangeLowered(styler.GetStartSegment(), currentPos - 1, styler, s, len);  } | 
