eliminate junk from std.string?

Walter Bright newshound2 at digitalmars.com
Tue Jan 11 12:35:31 PST 2011


Lars T. Kyllingstad wrote:
> 1. What are the hexdigits, digits, octdigits, lowercase, letters, 
> uppercase, and whitespace arrays useful for?  The only thing I can think 
> of is to check whether a character belongs to one of them,

One example is conversion from a number to text. hexdigits[n] comes to mind. If 
you do a strings dump on a random executable, you'll usually find such strings 
embedded in it. By putting them in std.string, hopefully you won't find several 
instances of the same string.


More information about the Digitalmars-d mailing list