C# Class Twitter.Text.Validator

A class for validating Tweet texts.
Mostrar archivo Open project: niltz/twitter-text-cs

Public Methods

Method Description
GetTweetLength ( String text ) : int

IsValidHashTag ( String text ) : bool
IsValidList ( String text ) : bool
IsValidTweet ( String text ) : bool

IsValidUrl ( String text ) : bool
IsValidUsername ( String text ) : bool

Validator ( ) : System

Method Details

GetTweetLength() public method

public GetTweetLength ( String text ) : int
text String Target of string. Should be normalized 'NormalizationForm.FormC'
return int

IsValidHashTag() public method

public IsValidHashTag ( String text ) : bool
text String
return bool

IsValidList() public method

public IsValidList ( String text ) : bool
text String
return bool

IsValidTweet() public method

public IsValidTweet ( String text ) : bool
text String
return bool

IsValidUrl() public method

public IsValidUrl ( String text ) : bool
text String
return bool

IsValidUsername() public method

public IsValidUsername ( String text ) : bool
text String
return bool

Validator() public method

public Validator ( ) : System
return System