import std.algorithm.searching: startsWith, commonPrefix; if(s1.startsWith(s2)) {...} string prefix = commonPrefix(s1,s2);
- Is there a d analog of strncmp? dan via Digitalmars-d-learn
- Re: Is there a d analog of s... Adam D. Ruppe via Digitalmars-d-learn
- Re: Is there a d analog ... Jonathan M Davis via Digitalmars-d-learn
- Re: Is there a d analog ... dan via Digitalmars-d-learn
- Re: Is there a d analog of s... cy via Digitalmars-d-learn