This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [libstdc++] Transforming a string to a primary sort key
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Tim Shen <timshen91 at gmail dot com>
- Cc: <libc-alpha at sourceware dot org>, Paolo Carlini <paolo dot carlini at oracle dot com>, <roland at gnu dot org>
- Date: Fri, 28 Mar 2014 16:40:11 +0000
- Subject: Re: [libstdc++] Transforming a string to a primary sort key
- Authentication-results: sourceware.org; auth=none
- References: <CAPrifDmGAR=wVP7++dDC--V9R0jfO2r7ohvD_Bnnd3YM3VNASQ at mail dot gmail dot com>
On Fri, 28 Mar 2014, Tim Shen wrote:
> Hi there, I'm a libstdc++ developer, contributing C++11 <regex> part.
>
> C++ standard <regex> specifies a function
> `regex_traits::transform_primary()` that takes a string, then converts
> it to a "primary sort key". However, the standard doesn't specify any
> interface to do the actual conversion.
That sounds like strxfrm to me - if it's not, could you explain how it
differs?
--
Joseph S. Myers
joseph@codesourcery.com