
Message du 07/04/11 19:24 De : "Olaf van der Spek" A : boost@lists.boost.org Copie à : Objet : Re: [boost] [filesystem] Decomposition of filenames beginning with period?
On Thu, Apr 7, 2011 at 7:16 PM, Scott McMurray wrote:
Not an argument for or against, but what is the stem and extension in 'filename.with.many.of.periods'? I think the rule you apply to this should be consistent with .file
stem: filename extension: .with.many.of.periods
Are you sure?
That's what I'd think.
"if p.filename() contains a dot but does not consist solely of one or to two dots, returns the substring of p.filename() starting at the rightmost dot and ending at the path's end. Otherwise, returns an empty path object." ~
Sounds like stem is "filename.with.many.of" and extension is ".periods".
Hmm, I was thinking about stuff like file.tar.gz
For me the extension is "gz" and the stem is "file.tar". Vicente