Subject: [Boost-bugs] [Boost C++ Libraries] #6972: Boost.Locale doesn't provide sufficient control over collation
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-06-07 21:35:04
#6972: Boost.Locale doesn't provide sufficient control over collation
----------------------------------------------------------+-----------------
Reporter: Karim Chichakly <kchichakly@â¦> | Owner: artyom
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: locale
Version: Boost 1.49.0 | Severity: Problem
Keywords: |
----------------------------------------------------------+-----------------
I have just started using boost Locale and it is a great addition to the
boost library. However, the collation level options do not give a fine
enough control. From the ICU documentation: "In some cases, punctuation
can be ignored while searching or sorting data...In other cases, it is
desirable for punctuated text to be distinguished from text without
punctuation." (This appears to be controlled by the Alternate attribute.)
However, boost Locale seems to always assume that punctuation can be
ignored when you are also ignoring case. In particular, I find at the
secondary level that "SINWAVE" is considered equal to "sin_wave" (compare
returns 0) when this is not what I (and very likely others) require.
The first two levels (primary and secondary) really need options to not
ignore punctuation and whitespace.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6972> 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:09 UTC