最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

What algorithm is used for case insensitive filenames on Windows? - Stack Overflow

programmeradmin8浏览0评论

What case-insensitivity algorithm is used by Windows to decide if two filenames are the same?

I want to know so I can roughly replicate this in code that doesn't run on Windows. I say "roughly" because apparently this is basically impossible to do robustly, but fortunately that doesn't matter for my use case.

There are some other questions around this such as this one and this one and some articles like this one, but they all assume I can use Win32 APIs to do the case conversion/comparison.

How do I do it if my code is not running on Windows?

发布评论

评论列表(0)

  1. 暂无评论