This is the cl-difflib Reference Manual, version 0.2, generated automatically by Declt version 4.0 beta 2 "William Riker" on Tue Jul 15 03:47:21 2025 GMT+0.
The main system appears first, followed by any subsystem dependency.
cl-difflibA Lisp library for computing differences between sequences.
John Wiseman <jjwiseman@yahoo.com>
John Wiseman <jjwiseman@yahoo.com>
MIT
A Lisp library for computing differences between sequences. Based on Python’s difflib module.
0.2
package.lisp (file).
difflib.lisp (file).
license.txt (file).
news.txt (file).
Files are sorted by type and then listed depth-first from the systems components trees.
cl-difflib/difflib.lisppackage.lisp (file).
cl-difflib (system).
context-diff (function).
get-close-matches (function).
get-opcodes (generic function).
group-opcodes (function).
initialize-instance (method).
junk-function (reader method).
(setf junk-function) (writer method).
make-opcode (function).
opcode (structure).
opcode-i1 (reader).
(setf opcode-i1) (writer).
opcode-i2 (reader).
(setf opcode-i2) (writer).
opcode-j1 (reader).
(setf opcode-j1) (writer).
opcode-j2 (reader).
(setf opcode-j2) (writer).
opcode-p (function).
opcode-range (function).
opcode-tag (reader).
(setf opcode-tag) (writer).
opcode= (function).
print-object (method).
quick-similarity-ratio (generic function).
sequence-a (reader method).
(setf sequence-a) (writer method).
sequence-b (reader method).
(setf sequence-b) (writer method).
sequence-matcher (class).
set-sequence-a (generic function).
set-sequence-b (generic function).
set-sequences (generic function).
similarity-ratio (generic function).
test-function (reader method).
(setf test-function) (writer method).
unified-diff (function).
very-quick-similarity-ratio (generic function).
b-junk-function (reader method).
(setf b-junk-function) (writer method).
b-popular-function (reader method).
(setf b-popular-function) (writer method).
b2j (reader method).
(setf b2j) (writer method).
calculate-similarity-ratio (function).
chain-b (generic function).
copy-opcode (function).
do-range (macro).
enumerate (macro).
find-longest-match (generic function).
full-b-count (reader method).
(setf full-b-count) (writer method).
get-matching-blocks (generic function).
has-key (function).
helper (generic function).
matching-blocks (reader method).
(setf matching-blocks) (writer method).
opcodes (reader method).
(setf opcodes) (writer method).
Packages are listed by definition order.
difflibcommon-lisp.
context-diff (function).
get-close-matches (function).
get-opcodes (generic function).
group-opcodes (function).
junk-function (generic reader).
(setf junk-function) (generic writer).
make-opcode (function).
opcode (structure).
opcode-i1 (reader).
(setf opcode-i1) (writer).
opcode-i2 (reader).
(setf opcode-i2) (writer).
opcode-j1 (reader).
(setf opcode-j1) (writer).
opcode-j2 (reader).
(setf opcode-j2) (writer).
opcode-p (function).
opcode-range (function).
opcode-tag (reader).
(setf opcode-tag) (writer).
opcode= (function).
quick-similarity-ratio (generic function).
sequence-a (generic reader).
(setf sequence-a) (generic writer).
sequence-b (generic reader).
(setf sequence-b) (generic writer).
sequence-matcher (class).
set-sequence-a (generic function).
set-sequence-b (generic function).
set-sequences (generic function).
similarity-ratio (generic function).
test-function (generic reader).
(setf test-function) (generic writer).
unified-diff (function).
very-quick-similarity-ratio (generic function).
b-junk-function (generic reader).
(setf b-junk-function) (generic writer).
b-popular-function (generic reader).
(setf b-popular-function) (generic writer).
b2j (generic reader).
(setf b2j) (generic writer).
calculate-similarity-ratio (function).
chain-b (generic function).
copy-opcode (function).
do-range (macro).
enumerate (macro).
find-longest-match (generic function).
full-b-count (generic reader).
(setf full-b-count) (generic writer).
get-matching-blocks (generic function).
has-key (function).
helper (generic function).
matching-blocks (generic reader).
(setf matching-blocks) (generic writer).
opcodes (generic reader).
(setf opcodes) (generic writer).
Definitions are sorted by export status, category, package, and then by lexicographic order.
tag.
Tests two opcodes for equality.
sequence-matcher)) ¶sequence-matcher)) ¶automatically generated reader method
sequence-matcher)) ¶automatically generated writer method
sequence-matcher)) ¶sequence-matcher)) ¶automatically generated reader method
a.
sequence-matcher)) ¶automatically generated writer method
a.
sequence-matcher)) ¶automatically generated reader method
b.
sequence-matcher)) ¶automatically generated writer method
b.
sequence-matcher) a &optional force-p) ¶sequence-matcher) b &optional force-p) ¶sequence-matcher) a b &optional force-p) ¶sequence-matcher)) ¶Returns a measure of the sequences’ similarity (a value in [0, 1]).
sequence-matcher)) ¶automatically generated reader method
sequence-matcher)) ¶automatically generated writer method
sequence-matcher)) ¶sequence-matcher) &key) ¶A single instruction for modifying sequence A into sequence B, where TAG has the following possible values and meanings:
:REPLACE a[i1:i2] should be replaced by b[j1:j2]
:DELETE a[i1:i2] should be deleted
:INSERT b[j2:j2] should be inserted
:EQUAL a[i1:i2] = b[j1:j2]
The sequence-matcher class compares pairs of
sequences. The main restriction is that sequence elements must
be hashable (use :test-function to specify the type of
hashtable).
(setf b-junk-function).
b-junk-function.
(setf b-popular-function).
b-popular-function.
(setf b2j).
b2j.
chain-b.
find-longest-match.
(setf full-b-count).
full-b-count.
get-matching-blocks.
get-opcodes.
helper.
initialize-instance.
(setf junk-function).
junk-function.
(setf matching-blocks).
matching-blocks.
(setf opcodes).
opcodes.
quick-similarity-ratio.
(setf sequence-a).
sequence-a.
(setf sequence-b).
sequence-b.
set-sequence-a.
set-sequence-b.
set-sequences.
similarity-ratio.
(setf test-function).
test-function.
very-quick-similarity-ratio.
:a
:b
:junk-function
(function eql)
:test-function
Iterates VAR through the range of integers in [START-FORM,
END-FORM). Returns the value of END-FORM (at the time END-FORM is
evaluated, VAR is bound to the value of END-FORM.
(do-range (i 10 (length s))
(print (elt s i)))
Iterates over a sequence while keeping track of an index.
(enumerate (i e ’(a b c))
(format T "~&~S ~S" i e))
=>
1 a
2 b
3 c
Checks whether a key value is present in a hash table.
sequence-matcher)) ¶automatically generated reader method
sequence-matcher)) ¶automatically generated writer method
sequence-matcher)) ¶automatically generated reader method
sequence-matcher)) ¶automatically generated writer method
sequence-matcher)) ¶automatically generated reader method
b2j.
sequence-matcher)) ¶automatically generated writer method
b2j.
sequence-matcher)) ¶sequence-matcher) alo ahi blo bhi) ¶sequence-matcher)) ¶automatically generated reader method
sequence-matcher)) ¶automatically generated writer method
sequence-matcher)) ¶sequence-matcher) alo ahi blo bhi answer) ¶sequence-matcher)) ¶automatically generated reader method
sequence-matcher)) ¶automatically generated writer method
sequence-matcher)) ¶automatically generated reader method
sequence-matcher)) ¶automatically generated writer method
| Jump to: | (
B C D E F G H I J M O P Q S T U V |
|---|
| Jump to: | (
B C D E F G H I J M O P Q S T U V |
|---|
| Jump to: | A B F I J M O S T |
|---|
| Jump to: | A B F I J M O S T |
|---|
| Jump to: | C D F L N O P S |
|---|
| Jump to: | C D F L N O P S |
|---|