-
Notifications
You must be signed in to change notification settings - Fork 7
/
AllSegmentsWalkerExtensions.cs
53 lines (50 loc) · 1.72 KB
/
AllSegmentsWalkerExtensions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using System.Runtime.CompilerServices;
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
namespace Platform.Collections.Segments.Walkers
{
/// <summary>
/// <para>
/// Represents the all segments walker extensions.
/// </para>
/// <para></para>
/// </summary>
public static class AllSegmentsWalkerExtensions
{
/// <summary>
/// <para>
/// Walks the all using the specified walker.
/// </para>
/// <para></para>
/// </summary>
/// <param name="walker">
/// <para>The walker.</para>
/// <para></para>
/// </param>
/// <param name="@string">
/// <para>The string.</para>
/// <para></para>
/// </param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void WalkAll(this AllSegmentsWalkerBase<char> walker, string @string) => walker.WalkAll(@string.ToCharArray());
/// <summary>
/// <para>
/// Walks the all using the specified walker.
/// </para>
/// <para></para>
/// </summary>
/// <typeparam name="TSegment">
/// <para>The segment.</para>
/// <para></para>
/// </typeparam>
/// <param name="walker">
/// <para>The walker.</para>
/// <para></para>
/// </param>
/// <param name="@string">
/// <para>The string.</para>
/// <para></para>
/// </param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static void WalkAll<TSegment>(this AllSegmentsWalkerBase<char, TSegment> walker, string @string) where TSegment : Segment<char> => walker.WalkAll(@string.ToCharArray());
}
}