Mercurial > projects > mde
diff mde/text/util.d @ 2:78eb491bd642
mergetag: partially redesigned dataset and text reader classes. Changed text format.
committer: Diggory Hardy <diggory.hardy@gmail.com>
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Sat, 03 Nov 2007 15:15:43 +0000 |
parents | 18491334a525 |
children | 9a990644948c |
line wrap: on
line diff
--- a/mde/text/util.d Tue Oct 30 17:08:12 2007 +0000 +++ b/mde/text/util.d Sat Nov 03 15:15:43 2007 +0000 @@ -4,8 +4,9 @@ ******************************************************/ module mde.text.util; -T[] postTrim(T : T[]) (T[] str) { - for (uint i = str.length,j; i > 0; i = j) { +T postTrim(T) (T str) { + uint i = str.length; + for (uint j; i > 0; i = j) { j = i - 1; if (str[j] != ' ' || str[j] != '\t') break; }