Skip to content

Commit e6546c7

Browse files
committed
Add SequenceMatcher::OP_NOP
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
1 parent b891c73 commit e6546c7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/SequenceMatcher.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
*/
1414
final class SequenceMatcher
1515
{
16-
const OP_EQ = 1 << 0;
17-
const OP_DEL = 1 << 1;
18-
const OP_INS = 1 << 2;
19-
const OP_REP = 1 << 3;
16+
const OP_NOP = 0; // no operation
17+
const OP_EQ = 1 << 0; // equal
18+
const OP_DEL = 1 << 1; // delete
19+
const OP_INS = 1 << 2; // insert
20+
const OP_REP = 1 << 3; // replace
2021

2122
const OP_INT_TO_STR_MAP = [
23+
self::OP_NOP => 'nop',
2224
self::OP_EQ => 'eq',
2325
self::OP_DEL => 'del',
2426
self::OP_INS => 'ins',

0 commit comments

Comments
 (0)