Packagecom.swfjunkie.tweetr.utils
Classpublic class TweetUtil

Various Tweeter Helper Methods



Public Methods
 MethodDefined by
  
remove(input:String, remove:String):String
[static] Removes all instances of the remove string in the input string.
TweetUtil
  
replace(input:String, replace:String, replaceWith:String):String
[static] Replaces all instances of the replace string in the input string with the replaceWith string.
TweetUtil
  
returnTweetAge(created_at:String):String
[static] Returns a simplified String with the elapsed time.
TweetUtil
  
stringToBool(value:String):Boolean
[static] Converts a "true"/"false" String to a Boolean
TweetUtil
  
tidyTweet(status:String):String
[static] Some clients create pointless junk in tweets.
TweetUtil
Method detail
remove()method
public static function remove(input:String, remove:String):String

Removes all instances of the remove string in the input string.

Parameters
input:String — The string that will be checked for instances of remove string
 
remove:String — The string that will be removed from the input string.

Returns
String
replace()method 
public static function replace(input:String, replace:String, replaceWith:String):String

Replaces all instances of the replace string in the input string with the replaceWith string.

Parameters
input:String — The string that instances of replace string will be replaces with removeWith string.
 
replace:String — The string that will be replaced by instances of the replaceWith string.
 
replaceWith:String — The string that will replace instances of replace string.

Returns
String
returnTweetAge()method 
public static function returnTweetAge(created_at:String):String

Returns a simplified String with the elapsed time. Compares the tweet date and the current date to calculate the difference.

Parameters
created_at:String — The created_at data found within a tweet node

Returns
String
stringToBool()method 
public static function stringToBool(value:String):Boolean

Converts a "true"/"false" String to a Boolean

Parameters
value:String

Returns
Boolean
tidyTweet()method 
public static function tidyTweet(status:String):String

Some clients create pointless junk in tweets. Remove it.

Parameters
status:String

Returns
String




comments powered by Disqus