digitalmars.D - dstring support?
- Yossarian (9/9) Mar 27 2008 Hello,
- Janice Caron (3/9) Mar 28 2008 I'm pretty sure that "sometime in the future" that will indeed be
- Janice Caron (9/9) Mar 28 2008 Actually, what I'd really like to see is CTFE versions of the
- Yossarian (7/16) Mar 29 2008 thank you. i've got my own find rewritten for use dstring, but using som...
Hello, will there be sometime in future _d_string version of std.string.find(), std.regex.*(),.. (maybe some more widechar unaware, but these two I noticed first)? it really hurts me to have entire program in widechar, and converting it to utf8 for calling regex, really slow. -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/
Mar 27 2008
On 27/03/2008, Yossarian <xtauer01 stud.fit.vutbr.cz> wrote:Hello, will there be sometime in future _d_string version of std.string.find(), std.regex.*(),.. (maybe some more widechar unaware, but these two I noticed first)? it really hurts me to have entire program in widechar, and converting it to utf8 for calling regex, really slow.I'm pretty sure that "sometime in the future" that will indeed be true. Just don't know when! :-)
Mar 28 2008
Actually, what I'd really like to see is CTFE versions of the functions in std.string. Right now, if I want a compile-time find() function, I basically have to write a new one. The problem is that the existing std.string functions call other functions that have extern(C) declations, thus making them unusable at compile time. Yossarian, you might find that std.algorithm.find() can be used in place of std.string.find(). It's type-agnostic, and hugely more powerful.
Mar 28 2008
Dne Fri, 28 Mar 2008 08:58:08 +0100 Janice Caron <caron800 googlemail.com> napsal/-a:Actually, what I'd really like to see is CTFE versions of the functions in std.string. Right now, if I want a compile-time find() function, I basically have to write a new one. The problem is that the existing std.string functions call other functions that have extern(C) declations, thus making them unusable at compile time. Yossarian, you might find that std.algorithm.find() can be used in place of std.string.find(). It's type-agnostic, and hugely more powerful.thank you. i've got my own find rewritten for use dstring, but using some standard function would be much better. -- Tato zpráva byla vytvořena převratným poštovním klientem Opery: http://www.opera.com/mail/
Mar 29 2008