C# 클래스 numl.Utils.StringHelpers

A string helpers.
파일 보기 프로젝트 열기: sethjuarez/numl

공개 메소드들

메소드 설명
BuildCharArray ( IEnumerable examples, string exclusion = null ) : string[]

Builds character array.

BuildDistinctWordArray ( IEnumerable examples, string separator = " ", string exclusion = null ) : string[]

Builds distinct word array.

BuildEnumArray ( IEnumerable examples ) : string[]

Builds enum array.

GetChars ( string s, string exclusions = null ) : IEnumerable

Lazy list of available characters in a given string.

GetWordCount ( string item, StringProperty property ) : double[]

Gets word count.

GetWordPosition ( string item, string dictionary, bool checkNumber = true ) : int

Gets word position.

GetWords ( string s, string separator = " ", string exclusions = null ) : IEnumerable

Lazy list of available words in a string.

Sanitize ( this s, bool checkNumber = true ) : string

A string extension method that sanitizes.

메소드 상세

BuildCharArray() 공개 정적인 메소드

Builds character array.
public static BuildCharArray ( IEnumerable examples, string exclusion = null ) : string[]
examples IEnumerable The examples.
exclusion string (Optional) the exclusion.
리턴 string[]

BuildDistinctWordArray() 공개 정적인 메소드

Builds distinct word array.
public static BuildDistinctWordArray ( IEnumerable examples, string separator = " ", string exclusion = null ) : string[]
examples IEnumerable The examples.
separator string (Optional) separator string.
exclusion string (Optional) the exclusion.
리턴 string[]

BuildEnumArray() 공개 정적인 메소드

Builds enum array.
public static BuildEnumArray ( IEnumerable examples ) : string[]
examples IEnumerable The examples.
리턴 string[]

GetChars() 공개 정적인 메소드

Lazy list of available characters in a given string.
public static GetChars ( string s, string exclusions = null ) : IEnumerable
s string string.
exclusions string (Optional) characters to ignore.
리턴 IEnumerable

GetWordCount() 공개 정적인 메소드

Gets word count.
public static GetWordCount ( string item, StringProperty property ) : double[]
item string The item.
property numl.Model.StringProperty The property.
리턴 double[]

GetWordPosition() 공개 정적인 메소드

Gets word position.
Thrown when the requested operation is invalid.
public static GetWordPosition ( string item, string dictionary, bool checkNumber = true ) : int
item string The item.
dictionary string The dictionary.
checkNumber bool (Optional) true to check number.
리턴 int

GetWords() 공개 정적인 메소드

Lazy list of available words in a string.
public static GetWords ( string s, string separator = " ", string exclusions = null ) : IEnumerable
s string input string.
separator string (Optional) separator string.
exclusions string (Optional) excluded words.
리턴 IEnumerable

Sanitize() 공개 정적인 메소드

A string extension method that sanitizes.
public static Sanitize ( this s, bool checkNumber = true ) : string
s this string.
checkNumber bool (Optional) true to check number.
리턴 string