From 59c4fff9ff2fd46800165ca1b338d16e5e5fae8b Mon Sep 17 00:00:00 2001 From: JinmingHu Date: Thu, 25 Apr 2024 07:58:25 +0800 Subject: [PATCH] Add comments for sort-keys (#5566) --- sdk/storage/azure-storage-common/src/shared_key_policy.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sdk/storage/azure-storage-common/src/shared_key_policy.cpp b/sdk/storage/azure-storage-common/src/shared_key_policy.cpp index 595b312cf..7f3fbf785 100644 --- a/sdk/storage/azure-storage-common/src/shared_key_policy.cpp +++ b/sdk/storage/azure-storage-common/src/shared_key_policy.cpp @@ -11,6 +11,10 @@ #include namespace { +/* + * We need to imitate .Net culture-aware sorting, which is used in storage service. + * Below tables contain sort-keys for en-US culture. + */ const static int table_lv0[128] = { 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,