[Gd-chatter] r11616 - trunk/libraries/regular-expressions
turbo24prg at gwydiondylan.org
turbo24prg at gwydiondylan.org
Sat Jan 12 14:48:13 CET 2008
Author: turbo24prg
Date: Sat Jan 12 14:48:12 2008
New Revision: 11616
Modified:
trunk/libraries/regular-expressions/interface.dylan
Log:
job: 7357
api change: split returns <sequence>, was #rest <string>
Modified: trunk/libraries/regular-expressions/interface.dylan
==============================================================================
--- trunk/libraries/regular-expressions/interface.dylan (original)
+++ trunk/libraries/regular-expressions/interface.dylan Sat Jan 12 14:48:12 2008
@@ -238,7 +238,7 @@
define function split
(pattern :: <string>, input :: <string>,
#key count = #f, remove-empty-items = #t, start = 0, end: input-end = #f)
- => (#rest whole-bunch-of-strings :: <string>);
+ => (strings :: <sequence>);
let positioner = make-regex-positioner(pattern);
split-string(positioner, input, start, input-end | size(input),
count, remove-empty-items);
@@ -261,7 +261,7 @@
(positioner :: <function>, input :: <string>, start :: <integer>,
input-end :: <integer>, count :: false-or(<integer>),
remove-empty-items :: <object>)
- => (#rest whole-bunch-of-strings :: <string>);
+ => (strings :: <sequence>);
let strings = make(<deque>);
block (done)
let end-of-last-match = 0;
@@ -292,9 +292,9 @@
end while;
end block;
if (remove-empty-items)
- apply(values, remove!(strings, #f, test: method (a, b) a.empty? end));
+ remove!(strings, #f, test: method (a, b) a.empty? end);
else
- apply(values, strings);
+ strings
end if;
end function split-string;
More information about the chatter
mailing list