⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stylecontext.cxx

📁 robocup rcssserver 运行防真机器人足球比赛所用的服务器端
💻 CXX
字号:
// 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"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);}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -