www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - dstring support?

reply Yossarian <xtauer01 stud.fit.vutbr.cz> writes:
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
next sibling parent "Janice Caron" <caron800 googlemail.com> writes:
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
prev sibling parent reply "Janice Caron" <caron800 googlemail.com> writes:
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
parent Yossarian <xtauer01 stud.fit.vutbr.cz> writes:
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