Changeset 8398 in project


Ignore:
Timestamp:
02/12/08 04:23:10 (12 years ago)
Author:
Kon Lovett
Message:

Added character definitions table procedure documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/Unit regex

    r8386 r8398  
    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'') 
     6This library unit provides support for regular expressions. The regular
     7expression package used is {{PCRE}} (''Perl Compatible Regular Expressions'')
    88written by Philip Hazel. See [[http://www.pcre.org]] for information about
    99the particular regexp flavor and extensions provided by this library.
     
    6060
    6161
     62=== regex-chardef-table?
     63
     64 [procedure] (regex-chardef-table? OBJECT)
     65
     66Returns {{#t}} if the {{OBJECT}} is a {{character definitions table}}, and
     67{{#f}} otherwise.
     68
     69
     70=== regex-chardef-table
     71
     72 [procedure] (regex-chardef-table)
     73
     74Returns a new {{character definitions table}}.
     75
     76
    6277=== regexp
    6378
     
    7388=== regexp*
    7489
    75  [procedure] (regexp* STRING [OPTIONS [TABLES]])
     90 [procedure] (regexp* STRING [OPTIONS [CHARDEFS-TABLE]])
    7691
    7792Returns a precompiled regular expression object for {{string}}. The optional
    7893argument {{OPTIONS}} must be a list of option symbols. The optional argument
    79 {{TABLES}} must be a character definitions table (not defined here).
    80 
    81 
    82 Option Symbols:
     94{{CHARDEFS-TABLE}} must be a character definitions table.
     95
     96
     97==== Option Symbols:
    8398
    8499; caseless : Character case insensitive match
     
    123138
    124139 [procedure] (regexp-optimize RX)
    125  
     140
    126141Perform available optimizations for the precompiled regular expression {{RX}}.
    127142Returns {{#t}} when optimization performed, and {{#f}} otherwise.
     
    184199
    185200(string-split-fields "," s #:suffix)
    186  
     201
    187202  => ("this is a string 1" " 2" " 3")
    188203</enscript>
     
    195210Searches substrings in {{STRING}} that match {{REGEXP}}
    196211and substitutes them with the string {{SUBST}}. The substitution
    197 can contain references to subexpressions in 
     212can contain references to subexpressions in
    198213{{REGEXP}} with the {{\NUM}} notation, where {{NUM}}
    199214refers to the NUMth parenthesized expression. The optional argument
Note: See TracChangeset for help on using the changeset viewer.