def search(self, buf):
self._check_type(buf)<EOL>normalized = unicodedata.normalize(self.FORM, buf)<EOL>idx = normalized.find(self._text)<EOL>if idx < <NUM_LIT:0>:<EOL><INDENT>return None<EOL><DEDENT>start = idx<EOL>end = idx + len(self._text)<EOL>return SequenceMatch(self, normalized[start:end], start, end)<EOL>
Search the provided buffer for matching text.

        Search the provided buffer for matching text. If the *match* is found,
        returns a :class:`SequenceMatch` object, otherwise returns ``None``.

        :param buf: Buffer to search for a match.
        :return: :class:`SequenceMatch` if matched, None if no match was found.