📄 isearchstrategy.cs
字号:
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
// <version>$Revision: 1261 $</version>
// </file>
using System;
using System.Drawing;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop.Internal.Undo;
namespace SearchAndReplace
{
/// <summary>
/// This interface is the basic interface which all
/// search algorithms must implement.
/// </summary>
public interface ISearchStrategy
{
/// <remarks>
/// Only with a call to this method the search strategy must
/// update their pattern information. This method will be called
/// before the FindNext function.
/// </remarks>
bool CompilePattern();
/// <remarks>
/// The find next method should search the next occurrence of the
/// compiled pattern in the text using the textIterator and options.
/// </remarks>
SearchResult FindNext(ITextIterator textIterator);
/// <summary>
/// Find only in the specified range.
/// </summary>
SearchResult FindNext(ITextIterator textIterator, int offset, int length);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -