Allow sort keys to contain nothing but a single NUL character (characters may be ignorable).

[SVN r27408]
This commit is contained in:
John Maddock
2005-02-17 12:44:16 +00:00
parent 077f211f2f
commit ecd5dd5ff3
7 changed files with 41 additions and 6 deletions

View File

@ -372,6 +372,8 @@ typename w32_regex_traits_implementation<charT>::string_type
result.erase(i);
break;
}
if(result.empty())
result = string_type(1, charT(0));
return result;
}