~ chicken-core (chicken-5) 7718c808aae118ee49ad0271772c4b7ab282a01c
commit 7718c808aae118ee49ad0271772c4b7ab282a01c
Author: Peter Bex <peter.bex@xs4all.nl>
AuthorDate: Sat Nov 16 13:37:41 2013 +0100
Commit: Peter Bex <peter.bex@xs4all.nl>
CommitDate: Sat Nov 16 13:37:41 2013 +0100
Irregex: Fix #1064 and #1065 (documentation bugs)
This corresponds to Irregex upstream changesets 13742647d43a and 55efe3bf41a6
diff --git a/manual/Unit irregex b/manual/Unit irregex
index eb845f08..00739f34 100644
--- a/manual/Unit irregex
+++ b/manual/Unit irregex
@@ -535,11 +535,11 @@ pattern to the beginning or end of a word or line or even the whole
string. For example, to match on the end of a word:
<enscript highlight=scheme>
-(irregex-match '(: "foo" eow) "foo") => #<match>
+(irregex-search '(: "foo" eow) "foo") => #<match>
-(irregex-match '(: "foo" eow) "foo!") => #<match>
+(irregex-search '(: "foo" eow) "foo!") => #<match>
-(irregex-match '(: "foo" eow) "foof") => #f
+(irregex-search '(: "foo" eow) "foof") => #f
</enscript>
The {{bow}}, {{bol}}, {{eol}}, {{bos}} and {{eos}} work similarly.
@@ -556,8 +556,8 @@ limited to a fixed length, however the IrRegex versions have no such
limit.
<enscript highlight=scheme>
-(irregex-match '(: "regular" (look-ahead " expression"))
- "regular expression")
+(irregex-search '(: "regular" (look-ahead " expression"))
+ "regular expression")
=> #<match>
</enscript>
Trap