Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 1011 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 1011 Bytes

aho-corasick

Aho-Corasick的Delphi实现,支持Unicode,加入双数组模式

关于

fork自https://github.com/hankcs/aho-corasick
我重新用Delphi做了实现,并自己实现了一个AC自动机与双数组模式结合的脏词过滤。支持Unicode。

用法

具体用法可参考/Test/文件夹下的测试用例。
因为用的是最新版Delphi 10.1 Berlin;低版本可能需要做修改。
单元文件内都有详细注释,其他就不多说了。

License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.