aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/StyleContext.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2010-07-13 21:19:35 +1000
committernyamatongwe <devnull@localhost>2010-07-13 21:19:35 +1000
commit6cf0abd5bbf6c54149546d5d19bf67a2a0f93490 (patch)
tree526d0194ec85f789bf3d71e1159d5fb83f745bf1 /src/StyleContext.cxx
parent65af538e0dc3702a7b29ef82243696e21b7fa03a (diff)
downloadscintilla-mirror-6cf0abd5bbf6c54149546d5d19bf67a2a0f93490.tar.gz
Creating lexlib with lexer support files.
Diffstat (limited to 'src/StyleContext.cxx')
-rw-r--r--src/StyleContext.cxx55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/StyleContext.cxx b/src/StyleContext.cxx
deleted file mode 100644
index 4a1f71622..000000000
--- a/src/StyleContext.cxx
+++ /dev/null
@@ -1,55 +0,0 @@
-// Scintilla source code edit control
-/** @file StyleContext.cxx
- ** Lexer infrastructure.
- **/
-// Copyright 1998-2004 by Neil Hodgson <neilh@scintilla.org>
-// This file is in the public domain.
-
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-#include <stdio.h>
-
-#include "Platform.h"
-
-#include "PropSet.h"
-#include "Accessor.h"
-#include "StyleContext.h"
-
-#ifdef SCI_NAMESPACE
-using namespace Scintilla;
-#endif
-
-static void getRange(unsigned int start,
- unsigned int end,
- Accessor &styler,
- char *s,
- unsigned int len) {
- unsigned int i = 0;
- while ((i < end - start + 1) && (i < len-1)) {
- s[i] = styler[start + i];
- i++;
- }
- s[i] = '\0';
-}
-
-void StyleContext::GetCurrent(char *s, unsigned int len) {
- getRange(styler.GetStartSegment(), currentPos - 1, styler, s, len);
-}
-
-static void getRangeLowered(unsigned int start,
- unsigned int end,
- Accessor &styler,
- char *s,
- unsigned int len) {
- unsigned int i = 0;
- while ((i < end - start + 1) && (i < len-1)) {
- s[i] = static_cast<char>(tolower(styler[start + i]));
- i++;
- }
- s[i] = '\0';
-}
-
-void StyleContext::GetCurrentLowered(char *s, unsigned int len) {
- getRangeLowered(styler.GetStartSegment(), currentPos - 1, styler, s, len);
-}