A new class -->String

jinheking caoqi at bgi.net.cn
Wed Apr 4 03:38:10 PDT 2007


>As a final note, there's a (less Java-like) string class implementation at 
>http://www.dprogramming.com/dstring.php. It stores its data as char[], 
>wchar[] or dchar[] and tries to use whichever is the most space-efficient 
>yet can still store all elements in a single array element. The last bit 
>allows it to implement "intuitive" slicing, never slicing in the middle of 
>a group of UTF-8 or UTF-16 code units that form a single character point 
>(if I got the terminology right).

Next time,I will do it.If  I have this power.

I hope you help me.ok? 





More information about the Digitalmars-d mailing list