diff options
author | Neil <nyamatongwe@gmail.com> | 2015-07-29 09:46:53 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-07-29 09:46:53 +1000 |
commit | 7604a6b2a98fc2250408368eb51f8f6827d888c8 (patch) | |
tree | 12d1805299de9c35a8c3e17a92480212125f50c0 /lexlib/StyleContext.cxx | |
parent | e9f77f985ad02f0bc79580e3df572c6c6449d03e (diff) | |
download | scintilla-mirror-7604a6b2a98fc2250408368eb51f8f6827d888c8.tar.gz |
Change lexlib to use Sci_Position and Sci_PositionU to prepare for large file
support.
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); } |