Changeset 13009 in project


Ignore:
Timestamp:
01/15/09 08:33:05 (11 years ago)
Author:
Ivan Raikov
Message:

Updates to the regex unit documentation to reflect irregex transition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/Unit regex

    r9670 r13009  
    44== Unit regex
    55
    6 This library unit provides support for regular expressions. The regular
    7 expression package used is {{PCRE}} (''Perl Compatible Regular Expressions'')
    8 written by Philip Hazel. See [[http://www.pcre.org]] for information about
    9 the particular regexp flavor and extensions provided by this library.
    10 
    11 To test that PCRE support has been built into Chicken properly, try:
     6This library unit provides support for regular expressions. The
     7regular expression package used is {{irregex}} written by Alex
     8Shinn. See [[http://synthcode.com/scheme/irregex/]] for information
     9about the particular regexp flavor and extensions provided by this
     10library.
     11
     12To test that {{irregex}} support has been built into Chicken properly,
     13try:
    1214
    1315<enscript highlight=scheme>
    1416(require 'regex)
    15 (feature? 'pcre) => #t
     17(feature? 'irregex) => #t
    1618</enscript>
    1719
     
    119121or {{#f}} otherwise.
    120122
    121 
    122 === regexp-optimize
    123 
    124  [procedure] (regexp-optimize RX)
    125  
    126 Perform available optimizations for the precompiled regular expression {{RX}}.
    127 Returns {{#t}} when optimization performed, and {{#f}} otherwise.
    128 
    129 
    130123=== string-match
    131124=== string-match-positions
     
    243236
    244237
    245 === make-anchored-pattern
    246 
    247  [procedure] (make-anchored-pattern REGEXP [WITHOUT-BOL [WITHOUT-EOL]])
    248 
    249 Makes an anchored pattern from {{REGEXP}} (a string or a precompiled regular
    250 expression) and returns the updated pattern. When {{WITHOUT-BOL}} is {{#t}} the
    251 beginning-of-line anchor is not added. When {{WITHOUT-EOL}} is {{#t}} the
    252 end-of-line anchor is not added.
    253 
    254 The {{WITHOUT-BOL}} and {WITHOUT-EOL}} arguments are ignored for a precompiled regular
    255 expression.
    256 
    257 
    258238Previous: [[Unit match]]
    259239
Note: See TracChangeset for help on using the changeset viewer.