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, Boolean) 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, Boolean) 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.