Skip to content

Commit

Permalink
Search: PCRE mode: Add support for Everything v1.4.1.1017 and v1.5.0.…
Browse files Browse the repository at this point in the history
…1315 (#45)
  • Loading branch information
Chaoses-Ib committed Jun 8, 2022
1 parent a3ed78f commit 7abc002
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
* [→开发](docs/development.md)

## 安装
1. 安装 Everything v1.4.1.1015 x64 [安装版](https://www.voidtools.com/Everything-1.4.1.1015.x64-Setup.exe)[便携版](https://www.voidtools.com/Everything-1.4.1.1015.x64.zip)(不支持精简版)。
如果你能使用英文界面,也可以选择安装 v1.5.0.1305a x64 [安装版](https://www.voidtools.com/Everything-1.5.0.1305a.x64-Setup.exe)[便携版](https://www.voidtools.com/Everything-1.5.0.1305a.x64.zip)
1. 安装 Everything v1.4.1.1017 x64 [安装版](https://www.voidtools.com/Everything-1.4.1.1017.x64-Setup.exe)[便携版](https://www.voidtools.com/Everything-1.4.1.1017.x64.zip)(不支持精简版)。
如果你能使用英文界面,也可以选择安装 v1.5.0.1315a x64 [安装版](https://www.voidtools.com/Everything-1.5.0.1315a.x64-Setup.exe)[便携版](https://www.voidtools.com/Everything-1.5.0.1315a.x64.zip)
1. 安装 [VC++ 2022 x64 运行库](https://aka.ms/vs/17/release/vc_redist.x64.exe)
1.[Releases](../../releases) 下载压缩包。
1. 解压压缩包,将文件放入 Everything 安装目录( `C:\Program Files\Everything` )。
Expand All @@ -43,8 +43,10 @@

支持多音字和 Unicode 辅助平面汉字。
* 只支持 Everything 以下版本:
* v1.4.1.1017 x64 [安装版](https://www.voidtools.com/Everything-1.4.1.1017.x64-Setup.exe)/[便携版](https://www.voidtools.com/Everything-1.4.1.1017.x64.zip)
* v1.4.1.1015 x64 [安装版](https://www.voidtools.com/Everything-1.4.1.1015.x64-Setup.exe)/[便携版](https://www.voidtools.com/Everything-1.4.1.1015.x64.zip)
* v1.4.1.1009 x64 [安装版](https://www.voidtools.com/Everything-1.4.1.1009.x64-Setup.exe)/[便携版](https://www.voidtools.com/Everything-1.4.1.1009.x64.zip)
* v1.5.0.1315a x64 [安装版](https://www.voidtools.com/Everything-1.5.0.1315a.x64-Setup.exe)/[便携版](https://www.voidtools.com/Everything-1.5.0.1315a.x64.zip)
* v1.5.0.1305a x64 [安装版](https://www.voidtools.com/Everything-1.5.0.1305a.x64-Setup.exe)/[便携版](https://www.voidtools.com/Everything-1.5.0.1305a.x64.zip)
* v1.5.0.1296a x64 [安装版](https://www.voidtools.com/Everything-1.5.0.1296a.x64-Setup.exe)/[便携版](https://www.voidtools.com/Everything-1.5.0.1296a.x64.zip)
* 后置修饰符:
Expand Down
12 changes: 12 additions & 0 deletions source/PinyinSearchPcre.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,12 @@ PinyinSearchPcre::PinyinSearchPcre() {
regcomp_real = Everything + 0x1A8FC0;
regexec_real = Everything + 0x1A90A0;
}
else if (ipc_version.build == 1017) {
regcomp_p3_14_real = Everything + 0x175C0;
regcomp_p2_14_real = Everything + 0x5CEF0;
regcomp_real = Everything + 0x1A8FC0;
regexec_real = Everything + 0x1A90A0;
}
else
support = false;

Expand All @@ -730,6 +736,12 @@ PinyinSearchPcre::PinyinSearchPcre() {
regcomp_real = Everything + 0x336880;
regexec_real = Everything + 0x336960;
}
else if (ipc_version.build == 1315) {
regcomp_p3_15_real = Everything + 0x2DB30;
regcomp_p2_15_real = Everything + 0xB7630;
regcomp_real = Everything + 0x348820;
regexec_real = Everything + 0x348900;
}
else
support = false;

Expand Down

0 comments on commit 7abc002

Please sign in to comment.