|
Boost : |
Subject: Re: [boost] [filesystem] Decomposition of filenames beginning with period?
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2011-04-07 13:16:15
On Thu, Apr 7, 2011 at 08:31, Olaf van der Spek <olafvdspek_at_[hidden]> wrote:
> On Thu, Apr 7, 2011 at 5:29 PM, Brian Schrom <brian.schrom_at_[hidden]> 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?
"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." ~
<http://www.boost.org/doc/libs/1_46_1/libs/filesystem/v3/doc/reference.html#path-extension>
Sounds like stem is "filename.with.many.of" and extension is ".periods".
~ Scott
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk