开发者

Sort string array with special characters

开发者 https://www.devze.com 2023-02-04 06:12 出处:网络
I need to sort an array with special sw开发者_运维知识库edish characters. When it reaches a character such as Ö, it will place it in the back of the array. How do I compare the characters, according

I need to sort an array with special sw开发者_运维知识库edish characters. When it reaches a character such as Ö, it will place it in the back of the array. How do I compare the characters, according to the swedish alphabet?


Check out locale-dependent ordering for std::string for locale-specific character and string comparison.

0

精彩评论

暂无评论...
验证码 换一张
取 消