Class CharExtensions
Text-related extension methods for
Inheritance
System.Object
CharExtensions
Namespace: X10D.Text
Assembly: X10D.dll
Syntax
public static class CharExtensions : object
Methods
| Improve this Doc View SourceIsEmoji(Char)
Returns a value indicating whether this character constitutes an emoji.
Declaration
public static bool IsEmoji(this char value)
Parameters
Type | Name | Description |
---|---|---|
System.Char | value | The character to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if this character is an emoji; otherwise, false. |
Repeat(Char, Int32)
Returns a string composed of the current character repeated a specified number of times.
Declaration
public static string Repeat(this char value, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Char | value | The character to repeat. |
System.Int32 | count | The number of times to repeat. |
Returns
Type | Description |
---|---|
System.String | A |
Repeat(Char, Int32, Span<Char>)
Writes a character to a span of characters, repeated a specified number of times.
Declaration
public static void Repeat(this char value, int count, Span<char> destination)
Parameters
Type | Name | Description |
---|---|---|
System.Char | value | The character to repeat. |
System.Int32 | count | The number of times to repeat. |
Span<System.Char> | destination | The span of characters into which the repeated characters will be written. |