📄 textsearch.h
字号:
/*
Super fast linear text search algorithms:
searchi = search ignore case
search = search case sensitive
searchiw = search ignore case words only (e.g. words delimited by whitespace only,
not words within words)
searchw() = search case sensitive words only
All functions return the number of matches for keyword in buffer, or -1 on error.
by James Buchanan
No license ristrictions on this code.
Email: jamesb@northnet.com.au
*/
#ifndef __TEXTSEARCH_H
#define __TEXTSEARCH_H
#include <stdio.h>
#include <stdlib.h>
int searchi(const char *buffer, const char *keyword);
int search(const char *buffer, const char *keyword);
int searchiw(const char *buffer, const char *keyword);
int searchw(const char *buffer, const char *keyword);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -