Multilingual text sorting in Perl, on Windows, using locale

后端 未结 2 907
半阙折子戏
半阙折子戏 2020-12-10 19:57

I am building a piece of software for sorting book indexes in different languages. It uses Perl, and keys off of the locale. I am developing it on Unix, but it needs to be p

2条回答
  •  萌比男神i
    2020-12-10 20:59

    Win32::OLE::NLS gives you access to that part of the system. It provides you CompareString and the necessary tools to obtain the necessary locale id.

    In case you want/need to locate the system documentation, the underlying system call is named CompareStringEx.

提交回复
热议问题