Esempio n. 1
0
 /// <summary>
 /// Marks this <see cref="String"/> as repeating <paramref name="count"/> times.
 /// </summary>
 /// <param name="count">The amount of times to repeat.</param>
 /// <returns>A new <see cref="Pattern"/> repeated <paramref name="count"/> times.</returns>
 public static Pattern Repeat(this String @string, Int32 count)
 {
     Guard.NotNull(@string, nameof(@string));
     return(new StringLiteral(StringierExtensions.Repeat(@string, count)));
 }
Esempio n. 2
0
 /// <summary>
 /// Marks this <see cref="Char"/> as repeating <paramref name="count"/> times.
 /// </summary>
 /// <param name="count">The amount of times to repeat.</param>
 /// <returns>A new <see cref="Pattern"/> repeated <paramref name="count"/> times.</returns>
 public static Pattern Repeat(this Char @char, Int32 count) => new StringLiteral(StringierExtensions.Repeat(@char, count));
Esempio n. 3
0
 /// <summary>
 /// Marks this <see cref="Rune"/> as repeating <paramref name="count"/> times.
 /// </summary>
 /// <param name="count">The amount of times to repeat.</param>
 /// <returns>A new <see cref="Pattern"/> repeated <paramref name="count"/> times.</returns>
 public static Pattern Repeat(this Rune @Rune, Int32 count) => new StringLiteral(StringierExtensions.Repeat(@Rune, count));