Azure中Blob列表的排序顺序 [英] Sort order of blob list in Azure

查看:90
本文介绍了Azure中Blob列表的排序顺序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MSDN上的列表Blob 文章说:

The List Blobs article on MSDN says that:

Blob在响应正文中按字母顺序列出,首字母大写.

Blobs are listed in alphabetical order in the response body, with upper-case letters listed first.

但是,字母顺序取决于他们所使用的文化,还是隐式指代的字母顺序的确切含义?

However, alphabetical ordering depend on which culture they're using, or is there a precise meaning of alphabetical order that they are implicitly referring to?

我想知道确切的订购方案.我猜(并希望)他们正在使用序数(二进制)排序规则,等效于.NET中的StringComparison.Ordinal .

I want to know the exact ordering scheme. I'm guessing (and hoping) that they are using the ordinal (binary) sorting rules, equivalent to StringComparison.Ordinal in .NET.

推荐答案

是的,您是对的.它等于.NET中的 StringComparison.Ordinal .列出的所有Blob均以UTF-16编码.列表Blob名称规则是按字符比较两个字符串.小Unicode值在大Unicode值之前.这与 StringComparison.Ordinal 中的规则相同. NET.

Yes , you are right. It equals to StringComparison.Ordinal in .NET. All of the listed blobs are all encoded in UTF-16.And the list blob name rule is that comparing the 2 strings char by char. The small Unicode value is before the large one. It is the same rule with StringComparison.Ordinal in .NET.

这篇关于Azure中Blob列表的排序顺序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆