Lines Matching +full:case +full:- +full:sensitive
1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (C) 2019-2021 Paragon Software GmbH, All rights reserved.
19 return chr - ('a' - 'A'); in upcase_unicode_char()
30 * - Case insensitive
31 * - If name equals and 'bothcases' then
32 * - Case sensitive
33 * 'Straight way' code scans input names twice in worst case.
46 for (; len; s1++, s2++, len--) { in ntfs_cmp_names()
47 diff1 = le16_to_cpu(*s1) - le16_to_cpu(*s2); in ntfs_cmp_names()
55 return l1 - l2; in ntfs_cmp_names()
58 for (; len; s1++, s2++, len--) { in ntfs_cmp_names()
59 diff2 = upcase_unicode_char(upcase, le16_to_cpu(*s1)) - in ntfs_cmp_names()
65 diff2 = l1 - l2; in ntfs_cmp_names()
72 const u16 *s1 = uni1->name; in ntfs_cmp_names_cpu()
73 const __le16 *s2 = uni2->name; in ntfs_cmp_names_cpu()
74 size_t l1 = uni1->len; in ntfs_cmp_names_cpu()
75 size_t l2 = uni2->len; in ntfs_cmp_names_cpu()
83 for (; len; s1++, s2++, len--) { in ntfs_cmp_names_cpu()
84 diff1 = *s1 - le16_to_cpu(*s2); in ntfs_cmp_names_cpu()
92 return l1 - l2; in ntfs_cmp_names_cpu()
95 for (; len; s1++, s2++, len--) { in ntfs_cmp_names_cpu()
96 diff2 = upcase_unicode_char(upcase, *s1) - in ntfs_cmp_names_cpu()
102 diff2 = l1 - l2; in ntfs_cmp_names_cpu()
110 while (len--) { in ntfs_names_hash()