|
Boost Users : |
Subject: Re: [Boost-users] property tree case sensitivity
From: Brad Tilley (kj4eit_at_[hidden])
Date: 2012-02-08 07:41:40
On Feb 8, 5:19 am, Daniel Bradburn <moags..._at_[hidden]> wrote:
> See here for details on how to make a case insensitive string type:http://www.gotw.ca/gotw/029.htm
>
> You can then specialise the property tree with this new type:
>
> typedef basic_ptree< ci_string, std::string > ptree;
>
> You can also use boost::iequals for comparing strings ignoring case,
> which may or may not be a better solution depending on your
> requirements.Regards
>
> Dan
Thanks Dan! I wasn't aware of iequals. Combined with iptree, that
makes a perfect solution.
Brad
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net