Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11663: No way to query file extension without allocating memory
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-09-09 18:14:22
#11663: No way to query file extension without allocating memory
---------------------------------+--------------------------
Reporter: matthew.chaplain@⦠| Owner: bemandawes
Type: Feature Requests | Status: assigned
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.57.0 | Severity: Optimization
Resolution: | Keywords:
---------------------------------+--------------------------
Comment (by daniel.kruegler@â¦):
I have doubts regarding the practical usefulness of that feature (modulo
globbing as pointed out by Beman): At least on Windows systems, path names
are handled case-insensitive, so if you want to check whether a given path
has a .pdf extension, you would need to check against all uppercase and
lowercase character combinations of .pdf (.Pdf, .pDf, .pdF, ...). Note
that this wouldn't be solved by has_extension() internally because all
other existing lexical comparison functions of filesystem do compare
*exactly* and for consistency reasons this function would need to do the
same.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11663#comment:2> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC