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

📄 search.h

📁 nedit 是一款linux下的开发源码的功能强大的编辑器
💻 H
字号:
/* $Id: search.h,v 1.19.2.1 2003/06/20 21:43:51 slobasso Exp $ */#ifndef NEDIT_SEARCH_H_INCLUDED#define NEDIT_SEARCH_H_INCLUDED#include "nedit.h"#include <X11/Intrinsic.h>#include <X11/X.h>enum SearchDirection {SEARCH_FORWARD, SEARCH_BACKWARD};void DoFindReplaceDlog(WindowInfo *window, int direction, int keepDialogs,        int searchType, Time time);void DoReplaceMultiFileDlog(WindowInfo *window);void UpdateReplaceActionButtons(WindowInfo* window);void DoFindDlog(WindowInfo *window, int direction, int keepDialogs,        int searchType, Time time);int SearchAndSelect(WindowInfo *window, int direction, const char *searchString,	int searchType, int searchWrap);int SearchAndSelectSame(WindowInfo *window, int direction, int searchWrap);int SearchAndSelectIncremental(WindowInfo *window, int direction,	const char *searchString, int searchType, int searchWrap, int continued);void SearchForSelected(WindowInfo *window, int direction, int searchWrap,    int searchType, Time time);int SearchAndReplace(WindowInfo *window, int direction, const char *searchString,	const char *replaceString, int searchType, int searchWrap);int ReplaceAndSearch(WindowInfo *window, int direction, const char *searchString,	const char *replaceString, int searchType, int searchWrap);int ReplaceFindSame(WindowInfo *window, int direction, int searchWrap);int ReplaceSame(WindowInfo *window, int direction, int searchWrap);int ReplaceAll(WindowInfo *window, const char *searchString, const char *replaceString,	int searchType);int ReplaceInSelection(WindowInfo *window, const char *searchString,	const char *replaceString, int searchType);int SearchWindow(WindowInfo *window, int direction, const char *searchString,	int searchType, int searchWrap, int beginPos, int *startPos, int *endPos, 	int *extentBW, int* extentFW);int SearchString(const char *string, const char *searchString, int direction,       int searchType, int wrap, int beginPos, int *startPos, int *endPos,       int *searchExtentBW, int*searchExtentFW, const char *delimiters);char *ReplaceAllInString(char *inString, const char *searchString,	const char *replaceString, int searchType, int *copyStart,	int *copyEnd, int *replacementLength, const char *delimiters);void BeginISearch(WindowInfo *window, int direction);void EndISearch(WindowInfo *window);void SetISearchTextCallbacks(WindowInfo *window);void FlashMatching(WindowInfo *window, Widget textW);void SelectToMatchingCharacter(WindowInfo *window);void GotoMatchingCharacter(WindowInfo *window);void RemoveFromMultiReplaceDialog(WindowInfo *window);/*** Schwarzenberg: added SEARCH_LITERAL_WORD .. SEARCH_REGEX_NOCASE **** The order of the integers in this enumeration must be exactly** the same as the order of the coressponding strings of the** array  SearchMethodStrings defined in preferences.c (!!)***/enum SearchType {      	SEARCH_LITERAL, SEARCH_CASE_SENSE, SEARCH_REGEX, 	SEARCH_LITERAL_WORD, SEARCH_CASE_SENSE_WORD, SEARCH_REGEX_NOCASE,        N_SEARCH_TYPES /* must be last in enum SearchType */ };#ifdef REPLACE_SCOPE/* Scope on which the replace operations apply */enum ReplaceScope { REPL_SCOPE_WIN, REPL_SCOPE_SEL, REPL_SCOPE_MULTI };/* Default scope if selection exists when replace dialog pops up.   "Smart" means "In Selection" if the selection spans more than   one line; "In Window" otherwise. */enum ReplaceAllDefaultScope { REPL_DEF_SCOPE_WINDOW,			      REPL_DEF_SCOPE_SELECTION,			      REPL_DEF_SCOPE_SMART };				  #endif/*** Returns a pointer to the string describing the search type for search ** action routine parameters (see menu.c for processing of action routines)** If searchType is invalid defaultRV is returned.*/const char *SearchTypeArg(int searchType, const char * defaultRV);/* ** Parses a search type description string. If the string contains a valid ** search type description, returns TRUE and writes the corresponding ** SearchType in searchType. Returns FALSE and leaves searchType untouched ** otherwise. */int StringToSearchType(const char * string, int *searchType);/*** History of search actions.*/extern int NHist;#endif /* NEDIT_SEARCH_H_INCLUDED */

⌨️ 快捷键说明

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