| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System.Collections.Generic; |
| | | 5 | | using System.Runtime.CompilerServices; |
| | | 6 | | using System.Runtime.Intrinsics.Arm; |
| | | 7 | | using System.Runtime.Intrinsics.X86; |
| | | 8 | | |
| | | 9 | | namespace System.Buffers |
| | | 10 | | { |
| | | 11 | | internal sealed class AsciiStringSearchValuesTeddyNonBucketizedN3<TStartCaseSensitivity, TCaseSensitivity> : AsciiSt |
| | | 12 | | where TStartCaseSensitivity : struct, StringSearchValuesHelper.ICaseSensitivity |
| | | 13 | | where TCaseSensitivity : struct, StringSearchValuesHelper.ICaseSensitivity |
| | | 14 | | { |
| | | 15 | | public AsciiStringSearchValuesTeddyNonBucketizedN3(ReadOnlySpan<string> values, HashSet<string> uniqueValues) |
| | 0 | 16 | | : base(values, uniqueValues, n: 3) |
| | 0 | 17 | | { } |
| | | 18 | | |
| | | 19 | | [CompExactlyDependsOn(typeof(Ssse3))] |
| | | 20 | | [CompExactlyDependsOn(typeof(AdvSimd.Arm64))] |
| | | 21 | | internal override int IndexOfAnyMultiString(ReadOnlySpan<char> span) => |
| | 0 | 22 | | IndexOfAnyN3(span); |
| | | 23 | | } |
| | | 24 | | } |
| | | 25 | | |