C# 클래스 Censored.Censor

A .NET library to easily easily detect and censor words
파일 보기 프로젝트 열기: jamesmontemagno/Censored 1 사용 예제들

공개 메소드들

메소드 설명
Censor ( IEnumerable censoredWords = null ) : System

Initializes a new instance of the Censored.Censor class.

CensorText ( string text ) : string

Censors the text and replaces dirty words with ****

HasCensoredWord ( string text ) : bool

Determines whether the text is dirty (has a bad word in it).

비공개 메소드들

메소드 설명
StarCensoredMatch ( Group m ) : string
ToRegexPattern ( string wildcardSearch ) : string

메소드 상세

Censor() 공개 메소드

Initializes a new instance of the Censored.Censor class.
public Censor ( IEnumerable censoredWords = null ) : System
censoredWords IEnumerable Censored words, if null uses default list
리턴 System

CensorText() 공개 메소드

Censors the text and replaces dirty words with ****
public CensorText ( string text ) : string
text string Text to censor
리턴 string

HasCensoredWord() 공개 메소드

Determines whether the text is dirty (has a bad word in it).
public HasCensoredWord ( string text ) : bool
text string Text to check for dirty words.
리턴 bool