[Boost-bugs] [Boost C++ Libraries] #5379: Support '#' comments in property_tree ini parser

Subject: [Boost-bugs] [Boost C++ Libraries] #5379: Support '#' comments in property_tree ini parser
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-27 22:13:45


#5379: Support '#' comments in property_tree ini parser
---------------------------------------------------------+------------------
 Reporter: Dimitri Kaparis <kaparis.dimitri@…> | Owner: cornedbee
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: property_tree
  Version: Boost 1.45.0 | Severity: Not Applicable
 Keywords: |
---------------------------------------------------------+------------------
 The INI parser currently supports only the semi-colon symbol as comment
 marker.

 The wikipedia article on INI files,
 http://en.wikipedia.org/wiki/INI_file#Varying_features notes:

   Some software supports the use of the number sign (#) as an alternative
 to
   the semicolon for indicating comments.

 The feature would be useful to me, since I'm using a number of existing
 files that use '#' as a comment marker. Also, this would make the ini
 parser compatible with java properties files.

 I'm attaching a patch that enables the use of # for comments. A more
 elaborate implementation could make the feature optional, as to avoid
 breaking ini files with properties starting with #.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5379>
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:06 UTC