# encoding=utf-8

from twitter_text.autolink import Autolink
from twitter_text.extractor import Extractor
from twitter_text.highlighter import HitHighlighter
from twitter_text.validation import Validation
from twitter_text.unicode import force_unicode

class TwitterText(object):
    def __init__(self, text):
        self.text = force_unicode(text) # this will get modified by some functions
        self.original_text = self.text # this never changes; use it as a fallback or for comparison
        self.has_been_linked = False
        self.tweet_length = None # gets changed by validation method
        self.tweet_is_valid = None # gets changed by validation method
        self.validation_error = None # gets changed by validation method
        
    def __unicode__(self):
        return self.text
        
    def __repr__(self):
        return self.__unicode__()
    
    @property
    def autolink(self):
        return Autolink(self.text, parent = self)
        
    @property
    def extractor(self):
        return Extractor(self.text)
        
    @property
    def highlighter(self):
        return HitHighlighter(self.text, parent = self)
        
    @property
    def validation(self):
        return Validation(self.text, parent = self)
4ab219444e032cda68098c1f4c23e5f44b2f364e
<mask token>


class TwitterText(object):

    def __init__(self, text):
        self.text = force_unicode(text)
        self.original_text = self.text
        self.has_been_linked = False
        self.tweet_length = None
        self.tweet_is_valid = None
        self.validation_error = None
    <mask token>

    def __repr__(self):
        return self.__unicode__()

    @property
    def autolink(self):
        return Autolink(self.text, parent=self)

    @property
    def extractor(self):
        return Extractor(self.text)
    <mask token>
    <mask token>

<mask token>


class TwitterText(object):

    def __init__(self, text):
        self.text = force_unicode(text)
        self.original_text = self.text
        self.has_been_linked = False
        self.tweet_length = None
        self.tweet_is_valid = None
        self.validation_error = None

    def __unicode__(self):
        return self.text

    def __repr__(self):
        return self.__unicode__()

    @property
    def autolink(self):
        return Autolink(self.text, parent=self)

    @property
    def extractor(self):
        return Extractor(self.text)
    <mask token>

    @property
    def validation(self):
        return Validation(self.text, parent=self)

<mask token>


class TwitterText(object):

    def __init__(self, text):
        self.text = force_unicode(text)
        self.original_text = self.text
        self.has_been_linked = False
        self.tweet_length = None
        self.tweet_is_valid = None
        self.validation_error = None

    def __unicode__(self):
        return self.text

    def __repr__(self):
        return self.__unicode__()

    @property
    def autolink(self):
        return Autolink(self.text, parent=self)

    @property
    def extractor(self):
        return Extractor(self.text)

    @property
    def highlighter(self):
        return HitHighlighter(self.text, parent=self)

    @property
    def validation(self):
        return Validation(self.text, parent=self)

from twitter_text.autolink import Autolink
from twitter_text.extractor import Extractor
from twitter_text.highlighter import HitHighlighter
from twitter_text.validation import Validation
from twitter_text.unicode import force_unicode


class TwitterText(object):

    def __init__(self, text):
        self.text = force_unicode(text)
        self.original_text = self.text
        self.has_been_linked = False
        self.tweet_length = None
        self.tweet_is_valid = None
        self.validation_error = None

    def __unicode__(self):
        return self.text

    def __repr__(self):
        return self.__unicode__()

    @property
    def autolink(self):
        return Autolink(self.text, parent=self)

    @property
    def extractor(self):
        return Extractor(self.text)

    @property
    def highlighter(self):
        return HitHighlighter(self.text, parent=self)

    @property
    def validation(self):
        return Validation(self.text, parent=self)

# encoding=utf-8

from twitter_text.autolink import Autolink
from twitter_text.extractor import Extractor
from twitter_text.highlighter import HitHighlighter
from twitter_text.validation import Validation
from twitter_text.unicode import force_unicode

class TwitterText(object):
    def __init__(self, text):
        self.text = force_unicode(text) # this will get modified by some functions
        self.original_text = self.text # this never changes; use it as a fallback or for comparison
        self.has_been_linked = False
        self.tweet_length = None # gets changed by validation method
        self.tweet_is_valid = None # gets changed by validation method
        self.validation_error = None # gets changed by validation method
        
    def __unicode__(self):
        return self.text
        
    def __repr__(self):
        return self.__unicode__()
    
    @property
    def autolink(self):
        return Autolink(self.text, parent = self)
        
    @property
    def extractor(self):
        return Extractor(self.text)
        
    @property
    def highlighter(self):
        return HitHighlighter(self.text, parent = self)
        
    @property
    def validation(self):
        return Validation(self.text, parent = self)