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

📄 searchmatcher.java

📁 用java 编写的源码开放的文本编辑器。有很多有用的特性
💻 JAVA
字号:
/* * SearchMatcher.java - Abstract string matcher interface * Copyright (C) 1999, 2001, 2002 Slava Pestov * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. */package org.gjt.sp.jedit.search;import gnu.regexp.CharIndexed;/** * An abstract interface for matching strings. * @author Slava Pestov * @version $Id: SearchMatcher.java,v 1.8 2003/01/12 03:08:25 spestov Exp $ */public interface SearchMatcher{	/**	 * Returns the offset of the first match of the specified text	 * within this matcher.	 * @param text The text to search in	 * @param start True if the start of the segment is the beginning of the	 * buffer	 * @param end True if the end of the segment is the end of the buffer	 * @param firstTime If false and the search string matched at the start	 * offset with length zero, automatically find next match	 * @param reverse If true, searching will be performed in a backward	 * direction.	 * @return an array where the first element is the start offset	 * of the match, and the second element is the end offset of	 * the match	 * @since jEdit 4.1pre7	 */	int[] nextMatch(CharIndexed text, boolean start, boolean end,		boolean firstTime, boolean reverse);	/**	 * Returns the specified text, with any substitution specified	 * within this matcher performed.	 * @param text The text	 * @return The changed string	 */	String substitute(String text) throws Exception;}

⌨️ 快捷键说明

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