Fixed primary equivalence classes, so that delimiter based sort keys with a delim in position 0 still work.

[SVN r26738]
This commit is contained in:
John Maddock
2005-01-19 11:13:53 +00:00
parent 2a248d1f87
commit 8545aeb1f3
3 changed files with 7 additions and 1 deletions

View File

@ -509,8 +509,10 @@ typename cpp_regex_traits_implementation<charT>::string_type
case sort_delim:
// get a regular sort key, and then truncate everything after the delim:
result.assign(this->m_pcollate->transform(p1, p2));
if(result.size() && (result[0] == m_collate_delim))
break;
std::size_t i;
for(i = 0; i < result.size(); ++i)
for(i = 1; i < result.size(); ++i)
{
if(result[i] == m_collate_delim)
break;