Changeset 40462 in project


Ignore:
Timestamp:
09/08/21 18:32:54 (2 weeks ago)
Author:
Kon Lovett
Message:

rel 2.5.3

File:
1 edited

Legend:

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

    r39997 r40462  
    206206</enscript>
    207207
     208==== string-split-chars
     209
     210<procedure>(string-split-chars STR DELIMITERS) -> (list-of string) (list-of char)</procedure>
     211
     212Returns a {{list}} of substrings of STR & a {{list}} of the characters, from
     213DELIMITERS, separating those substrings.
     214
     215; STR : {{string}} ; version string.
     216; DELIMITERS : {{string}} ; string of version component delimiter characters.
     217
     218<enscript language=scheme>
     219(string-split-chars "a.2,c" "$,.")
     220;=> ("a" "2" "c") (#\. #\,)
     221</enscript>
     222
    208223==== string-unzip
    209224
    210225<procedure>(string-unzip STR DELIMITERS) -> (list-of string) (list-of string)</procedure>
    211226
    212 Returns a {{list}} of substrings of STR & a {{list}} of the characters, from
     227Returns a {{list}} of substrings of STR & a {{list}} of the delimiters, from
    213228DELIMITERS, separating those substrings.
    214229
     
    392407== Version history
    393408
     409; 2.5.3 : Add {{string-split-chars}}.
    394410; 2.5.2 : Fix potential buffer overflow in {{to-hex}}.
    395411; 2.5.0 : Add {{string-zip}} & {{string-unzip}}.
Note: See TracChangeset for help on using the changeset viewer.