Skip to content
Taiizor edited this page Mar 1, 2023 · 2 revisions

Skylark.Standard.Extension.Word.WordExtension Class

The WordExtension class is a static class in the Skylark.Standard.Extension.Word namespace, which provides extension methods for string manipulation operations on words. The class contains the following methods:

Data Method

The Data method is used to count the number of words and characters in a given list of words. It has the following signature:

public static Skylark.Struct.Word.WordDataStruct Data(string List = Skylark.Standard.Helper.Word.WordHelper.List)

Parameters

  • List: A string representing the list of words to be counted. If no value is specified, the default value is the List property of the Skylark.Standard.Manage.Word.WordManage class.

Returns

A Skylark.Struct.Word.WordDataStruct object that contains the number of words and characters in the given list of words.

DataAsync Method

The DataAsync method is an asynchronous version of the Data method, which counts the number of words and characters in a given list of words. It has the following signature:

public static System.Threading.Tasks.Task<Skylark.Struct.Word.WordDataStruct> DataAsync(string List = Skylark.Standard.Helper.Word.WordHelper.List)

Parameters

  • List: A string representing the list of words to be counted. If no value is specified, the default value is the List property of the Skylark.Standard.Manage.Word.WordManage class.

Returns

A Task<Skylark.Struct.Word.WordDataStruct> object that represents the asynchronous operation of counting the number of words and characters in the given list of words.

Combine Method

The Combine method is used to combine a given list of words into a sentence. It has the following signature:

public static Skylark.Struct.Word.WordCombineStruct Combine(string List = Skylark.Standard.Helper.Word.WordHelper.List, char Space = Skylark.Standard.Helper.Word.WordHelper.Space, char Separator = Skylark.Standard.Helper.Word.WordHelper.Separator)

Parameters

  • List: A string representing the list of words to be combined. If no value is specified, the default value is the List property of the Skylark.Standard.Manage.Word.WordManage class.
  • Space: A char representing the space character to be used between the words. If no value is specified, the default value is the Space property of the Skylark.Standard.Helper.Word.WordHelper class.
  • Separator: A char representing the separator character to be used between the words. If no value is specified
Clone this wiki locally