Opened 10 years ago

#6972 new Feature Requests

Boost.Locale doesn't provide sufficient control over collation

Reported by: Karim Chichakly <kchichakly@…> Owned by: Artyom Beilis
Milestone: To Be Determined Component: locale
Version: Boost 1.49.0 Severity: Problem
Keywords: Cc:

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.