string comparison

doubleagent doubleagent03 at gmail.com
Sat Dec 18 23:01:30 PST 2010


Andrei's quick dictionary illustration [in his book, 'The D Programming
Language'] doesn't seem to work.  Code attached.

On my computer, with d2-0.5.0, I got the following output while testing.

andrei
0	andrei
 andrei
1	andrei


Also, why doesn't 'splitter' show up on the site's documentation of
std.string?  And what advantage does 'splitter(strip(line))' offer over
'split(line)'?
begin 644 dictionary.d
M:6UP;W)T('-T9"YS=&1I;RP@<W1D+G-T<FEN9SL*"G9O:60@;6%I;B at I('L*
M"75I;G1;<W1R:6YG72!D:6-T:6]N87)Y.R`O+R!V6VM=+"!S;R!S=')I;F<M
M/G5I;G0*"69O<F5A8V@@*&QI;F4[('-T9&EN+F)Y3&EN92 at I*2!["@D)+R\@
M8G)E86L@<V5N=&5N8V4@:6YT;R!W;W)D<PH)"2\O($%D9"!E86-H('=O<F0@
M:6X@=&AE('-E;G1E;F-E('1O('1H92!V;V-A8G5L87)Y"@D)9F]R96%C:"`H
M=V]R9#L@<W!L:71T97(H<W1R:7`H;&EN92DI*2!["@D)"6EF("AW;W)D(&EN
M(&1I8W1I;VYA<GDI(&-O;G1I;G5E.R`O+R!N;W1H:6YG('1O(&1O"@D)"6%U
M=&\@;F5W260@/2!D:6-T:6]N87)Y+FQE;F=T:#L*"0D)9&EC=&EO;F%R>5MW
M;W)D72`](&YE=TED.PH)"0EW<FET969L;B at B)7-<="5S(BP@;F5W260L('=O
.<F0I.PH)"7T*"7T*?0H`
`
end


More information about the Digitalmars-d-learn mailing list