TweetExtensions Class

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Extension methods for extracting @mentions and #hashtags etc. from strings.

public static class TweetExtensions
Inheritance:
System.Object → TweetExtensions

Methods

AutoLink(string, bool) Auto-link @mentions, #hashtags, $cashtags and urls.
AutoLinkCashtags(string) Auto-link $cashtags in the provided text.
AutoLinkHashtags(string) Auto-link #hashtags in the provided text.
AutoLinkMentions(string) Auto-link @mentions in the provided text.
AutoLinkUrls(string) Auto-link urls in the provided text.
ExtractCashtags(string) Extract $cashtags from the provided text.
ExtractHashtags(string) Extract #hashtags from the provided text.
ExtractMentions(string) Extract @mentions from the provided text.
ExtractTo(string) Extract a @mentioned username from the beginning of the provided text (preceded by 0 or more spaces).
ExtractTokens(string, bool) Extract urls, #hashtags, @mentions and $cashtags from the provided text.
ExtractUrls(string) Extract urls from the provided text.
TweetHtml(string) Convert the plain text tweet to HTML by autolinking @mentions, #hashtags, $cashtags and urls. Also converts emoji shortname to img.
TweetText(string) Cleanup the provided plain text by trimming leading and ending whitespace, converting unicode emoji to shortnames etc.