diff options
author | Neil <nyamatongwe@gmail.com> | 2013-07-06 10:24:58 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-07-06 10:24:58 +1000 |
commit | 474fe6ef6a140edcdb948e9a055cf0fd2307946b (patch) | |
tree | 02f86fc0f2c86577f57969c51868c8eb5a4884c0 /lexlib/StyleContext.h | |
parent | bb5e33f851d5b2a4cb8f4426327fba98947bf270 (diff) | |
download | scintilla-mirror-474fe6ef6a140edcdb948e9a055cf0fd2307946b.tar.gz |
Remove functions that are not used. Fix comment.
Diffstat (limited to 'lexlib/StyleContext.h')
-rw-r--r-- | lexlib/StyleContext.h | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/lexlib/StyleContext.h b/lexlib/StyleContext.h index fc6c60d2f..73b7b515a 100644 --- a/lexlib/StyleContext.h +++ b/lexlib/StyleContext.h @@ -1,5 +1,5 @@ // Scintilla source code edit control -/** @file StyleContext.cxx +/** @file StyleContext.h ** Lexer infrastructure. **/ // Copyright 1998-2004 by Neil Hodgson <neilh@scintilla.org> @@ -19,30 +19,6 @@ static inline int MakeLowerCase(int ch) { return ch - 'A' + 'a'; } -inline int UnicodeCodePoint(const unsigned char *us) { - if (us[0] < 0xC2) { - return us[0]; - } else if (us[0] < 0xE0) { - return ((us[0] & 0x1F) << 6) + (us[1] & 0x3F); - } else if (us[0] < 0xF0) { - return ((us[0] & 0xF) << 12) + ((us[1] & 0x3F) << 6) + (us[2] & 0x3F); - } else if (us[0] < 0xF5) { - return ((us[0] & 0x7) << 18) + ((us[1] & 0x3F) << 12) + ((us[2] & 0x3F) << 6) + (us[3] & 0x3F); - } - return us[0]; -} - -inline int BytesInUnicodeCodePoint(int codePoint) { - if (codePoint < 0x80) - return 1; - else if (codePoint < 0x800) - return 2; - else if (codePoint < 0x10000) - return 3; - else - return 4; -} - // All languages handled so far can treat all characters >= 0x80 as one class // which just continues the current token or starts an identifier if in default. // DBCS treated specially as the second character can be < 0x80 and hence |