-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start a high-level changelog. * Fix NOTICE file to be compliant with what the license text says, matching our repos for php-cssjanus, less.php, excimer-ui-client, and other Apache-licensed projects. * Remove outdated build filter for Doxygen and the broken use of `<pre lang="">` which doesn't work on Gitiles. The element was missing when viewing https://gerrit.wikimedia.org/g/AhoCorasick * Move repo docs from primary class file to README. In particular they were on the @file block, which meant they weren't even prominent in the Doxygen output (i.e. not on the class page). Bug: T301632 Bug: T287972 Change-Id: I8d4f2fc2094e9dde19bd438a57d69eba545dabf9
- Loading branch information
Showing
8 changed files
with
43 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
## v2.0.0 | ||
|
||
* [BREAKING CHANGE] Raise claimed PHP need from 7.0+ to 7.4+ (James D. Forrester) | ||
* [BREAKING CHANGE] Drop HHVM support (James D. Forrester) | ||
* Fix for numeric strings (Miguel Xavier Penha Neto) [T301632](https://phabricator.wikimedia.org/T301632) | ||
|
||
## v1.0.1 | ||
|
||
* docs: Fix `<pre>` compat with Doxygen markdown (Timo Tijhof) | ||
|
||
## v1.0.0 | ||
|
||
* Initial commit (Ori Livneh) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
AhoCorasick PHP Library | ||
wikimedia/aho-corasick. https://gerrit.wikimedia.org/g/AhoCorasick | ||
|
||
Copyright 2015 Ori Livneh <[email protected]> | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,6 @@ | ||
<?php | ||
/** | ||
* AhoCorasick PHP Library | ||
* | ||
* A PHP implementation of the Aho-Corasick string matching algorithm. | ||
* | ||
* Alfred V. Aho and Margaret J. Corasick, "Efficient string matching: | ||
* an aid to bibliographic search", CACM, 18(6):333-340, June 1975. | ||
* | ||
* @link http://xlinux.nist.gov/dads//HTML/ahoCorasick.html | ||
* @link https://en.wikipedia.org/wiki/Aho-Corasick_string_matching_algorithm | ||
* | ||
* Copyright (C) 2015 Ori Livneh <[email protected]> | ||
* Copyright 2015 Ori Livneh <[email protected]> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
|
@@ -46,7 +36,7 @@ | |
* Alfred V. Aho and Margaret J. Corasick, "Efficient string matching: | ||
* an aid to bibliographic search", CACM, 18(6):333-340, June 1975. | ||
* | ||
* @link http://xlinux.nist.gov/dads//HTML/ahoCorasick.html | ||
* @link http://xlinux.nist.gov/dads/HTML/ahoCorasick.html | ||
*/ | ||
class MultiStringMatcher { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,6 @@ | ||
<?php | ||
/** | ||
* AhoCorasick PHP Library | ||
* | ||
* A PHP implementation of the Aho-Corasick string matching algorithm. | ||
* | ||
* Alfred V. Aho and Margaret J. Corasick, "Efficient string matching: | ||
* an aid to bibliographic search", CACM, 18(6):333-340, June 1975. | ||
* | ||
* @link http://xlinux.nist.gov/dads//HTML/ahoCorasick.html | ||
* @link https://en.wikipedia.org/wiki/Aho-Corasick_string_matching_algorithm | ||
* | ||
* Copyright (C) 2015 Ori Livneh <[email protected]> | ||
* Copyright 2015 Ori Livneh <[email protected]> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
|
@@ -31,8 +21,7 @@ | |
namespace AhoCorasick; | ||
|
||
/** | ||
* This class extends MultiStringMatcher, adding search and replace | ||
* functionality. | ||
* Search and replace functionality. | ||
*/ | ||
class MultiStringReplacer extends MultiStringMatcher { | ||
|
||
|