(self, data)
return start, end
Get from a docstring the return parameter description indexes.
        In javadoc style it is after @return.

        :param data: string to parse
        :returns: start and end indexes of found element else (-1, -1)
          Note: the end index is the index after the last included character or -1 if
          reached the end
        :rtype: tuple
Get from a docstring the return parameter description indexes.
        In javadoc style it is after @return.
Get from a docstring the return parameter description indexes . In javadoc style it is after @return .
def get_return_description_indexes(self, data):
        """Get from a docstring the return parameter description indexes.
        In javadoc style it is after @return.

        :param data: string to parse
        :returns: start and end indexes of found element else (-1, -1)
          Note: the end index is the index after the last included character or -1 if
          reached the end
        :rtype: tuple

        """
        start, end = -1, -1
        stl_return = self.opt['return'][self.style['in']]['name']
        if self.style['in'] in self.tagstyles + ['unknown']:
            idx = self.get_key_index(data, 'return')
            idx_abs = idx
            # search starting description
            if idx >= 0:
                # FIXME: take care if a return description starts with <, >, =,...
                m = re.match(r'\W*(\w+)', data[idx_abs + len(stl_return):])
                if m:
                    first = m.group(1)
                    idx = data[idx_abs:].find(first)
                    idx_abs += idx
                    start = idx_abs
                else:
                    idx = -1
            # search the end
            idx = self.get_elem_index(data[idx_abs:])
            if idx > 0:
                idx_abs += idx
                end = idx_abs

        if self.style['in'] in ['params', 'unknown'] and (start, end) == (-1, -1):
            # TODO: manage this
            pass

        return start, end
def get_return_description_indexes ( self , data ) : start , end = - 1 , - 1 stl_return = self . opt [ 'return' ] [ self . style [ 'in' ] ] [ 'name' ] if self . style [ 'in' ] in self . tagstyles + [ 'unknown' ] : idx = self . get_key_index ( data , 'return' ) idx_abs = idx # search starting description if idx >= 0 : # FIXME: take care if a return description starts with <, >, =,... m = re . match ( r'\W*(\w+)' , data [ idx_abs + len ( stl_return ) : ] ) if m : first = m . group ( 1 ) idx = data [ idx_abs : ] . find ( first ) idx_abs += idx start = idx_abs else : idx = - 1 # search the end idx = self . get_elem_index ( data [ idx_abs : ] ) if idx > 0 : idx_abs += idx end = idx_abs if self . style [ 'in' ] in [ 'params' , 'unknown' ] and ( start , end ) == ( - 1 , - 1 ) : # TODO: manage this pass return start , end