parameters: (self, text, encoding = "utf-16le", caseSensitive = False)
docstring: @type  text: str or compat.unicode
          @param text: Text to search for.
  
          @type  encoding: str
          @param encoding: (Optional) Encoding for the text parameter.
              Only used when the text to search for is a Unicode string.
              Don't change unless you know what you're doing!
  
          @type  caseSensitive: bool
          @param caseSensitive: C{True} of the search is case sensitive,
              C{False} otherwise.
docstring_summary: @type  text: str or compat.unicode
          @param text: Text to search for.
docstring_tokens: @type text : str or compat . unicode @param text : Text to search for .
function: def __init__(self, text, encoding = "utf-16le", caseSensitive = False):
          """
          @type  text: str or compat.unicode
          @param text: Text to search for.
  
          @type  encoding: str
          @param encoding: (Optional) Encoding for the text parameter.
              Only used when the text to search for is a Unicode string.
              Don't change unless you know what you're doing!
  
          @type  caseSensitive: bool
          @param caseSensitive: C{True} of the search is case sensitive,
              C{False} otherwise.
          """
          self.isUnicode = isinstance(text, compat.unicode)
          self.encoding = encoding
          self.caseSensitive = caseSensitive
          if not self.caseSensitive:
              pattern = text.lower()
          if self.isUnicode:
              pattern = text.encode(encoding)
          super(TextPattern, self).__init__(pattern)
function_tokens: def __init__ ( self , text , encoding = "utf-16le" , caseSensitive = False ) : self . isUnicode = isinstance ( text , compat . unicode ) self . encoding = encoding self . caseSensitive = caseSensitive if not self . caseSensitive : pattern = text . lower ( ) if self . isUnicode : pattern = text . encode ( encoding ) super ( TextPattern , self ) . __init__ ( pattern )