Changeset 34662 in project


Ignore:
Timestamp:
10/01/17 00:58:46 (3 months ago)
Author:
kon
Message:

rel 1.4

File:
1 edited

Legend:

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

    r34451 r34662  
    190190Like {{hex_to_str}} except {{OUT}} is a {{blob}} of size >= {{(/ LEN 2)}}.
    191191
     192=== String Interpolation
     193
     194==== Usage
     195
     196<enscript language=scheme>
     197(require-extension string-interpolation)
     198</enscript>
     199
     200<enscript language=scheme>
     201(require-extension utf8-string-interpolation)
     202</enscript>
     203
     204==== string-interpolation
     205
     206<procedure>(string-interpolation STR [eval-tag: EVAL-TAG] [eval-env: EVAL-ENV]) => string</procedure>
     207
     208Performs substitution of embedded Scheme expressions, evaluated in the
     209{{EVAL-ENV}}, prefixed with {{EVAL-TAG}} and optionally enclosed in curly
     210brackets. Two consecutive {{EVAL-TAG}}s are translated to a single
     211{{EVAL-TAG}}.
     212
     213Similar to the {{#<#}} multi-line string.
     214
     215{{STR}} is a {{string}}.
     216
     217{{EVAL-TAG}} is a {{character}}, default {{#\#}}.
     218
     219{{EVAL-ENV}} is an {{environment}}, default {{(interaction-environment)}}.
     220
     221==== Usage
     222
     223<enscript language=scheme>
     224(require-extension string-interpolation-syntax)
     225</enscript>
     226
     227==== set-sharp-string-interpolation-syntax
     228
     229<procedure>(set-sharp-string-interpolation-syntax PROC)</procedure>
     230
     231Extends the read-syntax with #"..." where the {{"..."}} is evaluated using
     232{{(PROC "...")}}. When {{PROC}} is {{#f}} the read-syntax is cleared. When
     233{{PROC}} is {{#t}} then {{PROC}} is {{identity}}.
     234
    192235
    193236== Requirements
    194237
    195238[[check-errors]]
     239[[utf8]]
     240
     241[[setup-helper]]
    196242
    197243
     
    203249== Version history
    204250
     251; 1.4.0 : Add string-interpolation modules.
    205252; 1.3.1 : Fix {{hex_to_str}}, {{hex_to_blob}}.
    206253; 1.3.0 : Add {{hex->string}}, {{hex_to_str}}, {{hex_to_blob}}.
Note: See TracChangeset for help on using the changeset viewer.