如何在Windows资源管理器中获得Delphi中的排序顺序?
综述:
>我所说的术语 >对于Windows(版本> = XP),Windows资源管理器利用自然 >对于在Delphi中进行编程,使用StrCmpLogicalW Windows API来进行自然排序。 >(1)由Martin Pool自然排序字符串比较的Delphi包装器。 ========================== 以下文件名将在Windows资源管理器中订购,如下所示: test_1_test.txt test_2_test.txt test_11_test.txt test_12_test.txt test_21_test.txt test_22_test.txt 例如,如果我把它们放在TStringList实例中并调用Sort,排序顺序如下: test_1_test.txt test_11_test.txt test_12_test.txt test_2_test.txt test_21_test.txt test_22_test.txt 为了记录,上述文件名将在Cygwin的rxvt终端或Linux发行版的xterm终端(如CentOS)中进行订购,如下所示: test_11_test.txt test_12_test.txt test_1_test.txt test_21_test.txt test_22_test.txt test_2_test.txt 你能帮助评论如何理解这种排序行为的差异?此外,是否可以获得与Windows资源管理器中相同的顺序?任何建议是赞赏! PS:我的Windows语言环境设置为中文,但我认为英文语言环境也是如此。
StrCmpLogicalW能处理数字,另一种是
CompareString
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- windows – 什么决定了进程外COM服务器注意到客户端已经死亡
- windows-xp – 如果USB驱动器丢失,如何防止数据访问?
- 如何在Windows上使用Paramiko的Pageant?
- win10系统上Python和pycharm的安装及配置
- 是否有类似于’谁’或’w’的工具通过Windows上的命令行?
- 如何在Windows上开发Apple Java Extensions?
- 怎么给win10进行分区?
- windows-server-2008 – 在Windows 2003 Active Directory域
- Windows – Git配置别名不再起作用
- 在Windows 7(64位)上如何在Octave中准确启用64位索引
- windows – 什么是svchost以及为什么它的多个实例
- windows – wmic useraccount SID空格/空行
- windows-phone-7 – 您是否需要许可才能开发Wind
- windows – 使用桌面复制API捕获登录和锁定屏幕
- 创建一个不需要pythonXX.dll的独立windows exe
- Vanilla Windows与Windows Server
- windows – 适用于企业用途的最佳USB指纹读取器
- windows-7 – 何时/如何将应用程序添加到Windows
- windows-phone-8 – 浏览器外特定设置不会影响浏
- windows-server-2008 – 无法通过rdp重定向麦克风