Changeset 37681 in project


Ignore:
Timestamp:
06/09/19 23:30:13 (6 months ago)
Author:
Kon Lovett
Message:

rel 2.2.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/string-utils

    r36061 r37681  
    239239
    240240(set-sharp-string-interpolation-syntax string-interpolate)
    241 ;#"foo #(+ 1 2)bar #{(and 1 2)} baz"
     241#"foo #(+ 1 2)bar #{(and 1 2)} baz"
    242242;=> "foo 3bar 2 baz"
    243243</enscript>
    244244
    245 ==== Usage
    246 
    247 <enscript language=scheme>
    248 (import string-interpolation)
    249 </enscript>
    250 
    251 or
    252 
    253 <enscript language=scheme>
    254 (import utf8-string-interpolation)
     245See [[http://wiki.call-cc.org/man/5/Extensions%20to%20the%20standard#multiline-string-constant-with-embedded-expressions|Multiline String Constant with Embedded Expressions]].
     246
     247==== Usage
     248
     249<enscript language=scheme>
     250(import string-interpolation) ;or (import utf8-string-interpolation)
    255251</enscript>
    256252
    257253==== string-interpolate
    258254
    259 <procedure>(string-interpolate STR [eval-tag: EVAL-TAG] [eval-env: EVAL-ENV]) -> string</procedure>
    260 
    261 Performs substitution of embedded Scheme expressions, evaluated in the
    262 {{EVAL-ENV}}, prefixed with {{EVAL-TAG}} and optionally enclosed in curly
    263 brackets. Two consecutive {{EVAL-TAG}}s are translated to a single
    264 {{EVAL-TAG}}.
     255<procedure>(string-interpolate STR [eval-tag: EVAL-TAG]) -> list</procedure>
     256
     257Performs substitution of embedded Scheme expressions, prefixed with
     258{{EVAL-TAG}} and optionally enclosed in curly brackets. Two consecutive
     259{{EVAL-TAG}}s are translated to a single {{EVAL-TAG}}.
    265260
    266261Similar to the {{#<#}} multi-line string.
     
    269264
    270265{{EVAL-TAG}} is a {{character}}, default {{#\#}}.
    271 
    272 {{EVAL-ENV}} is an {{environment}}, default {{(interaction-environment)}}.
    273266
    274267Automatically invokes {{(set-sharp-string-interpolation-syntax
     
    295288== Version history
    296289
     290; 2.2.0 : Fix {{string-interpolation}}.
    297291; 2.1.0 : Add {{utf8-string-interpolation}}.
    298292; 2.0.0 : C5 release.
Note: See TracChangeset for help on using the changeset viewer.