(self, data, prev=None)
return start, end
Get from a docstring the next parameter's description.
        In javadoc style it is after @param.

        :param data: string to parse
        :param prev: index after the param element name (Default value = None)
        :returns: start and end indexes of found element else (-1, -1)
        :rtype: tuple
Get from a docstring the next parameter's description.
        In javadoc style it is after @param.
Get from a docstring the next parameter s description . In javadoc style it is after @param .
def get_param_description_indexes(self, data, prev=None):
        """Get from a docstring the next parameter's description.
        In javadoc style it is after @param.

        :param data: string to parse
        :param prev: index after the param element name (Default value = None)
        :returns: start and end indexes of found element else (-1, -1)
        :rtype: tuple

        """
        start, end = -1, -1
        if not prev:
            _, prev = self.get_param_indexes(data)
        if prev < 0:
            return -1, -1
        m = re.match(r'\W*(\w+)', data[prev:])
        if m:
            first = m.group(1)
            start = data[prev:].find(first)
            if start >= 0:
                if '\n' in data[prev:prev+start]:
                    # avoid to get next element as a description
                    return -1, -1
                start += prev
                if self.style['in'] in self.tagstyles + ['unknown']:
                    end = self.get_elem_index(data[start:])
                    if end >= 0:
                        end += start
                if self.style['in'] in ['params', 'unknown'] and end == -1:
                    p1, _ = self.get_param_indexes(data[start:])
                    if p1 >= 0:
                        end = p1
                    else:
                        end = len(data)

        return start, end
def get_param_description_indexes ( self , data , prev = None ) : start , end = - 1 , - 1 if not prev : _ , prev = self . get_param_indexes ( data ) if prev < 0 : return - 1 , - 1 m = re . match ( r'\W*(\w+)' , data [ prev : ] ) if m : first = m . group ( 1 ) start = data [ prev : ] . find ( first ) if start >= 0 : if '\n' in data [ prev : prev + start ] : # avoid to get next element as a description return - 1 , - 1 start += prev if self . style [ 'in' ] in self . tagstyles + [ 'unknown' ] : end = self . get_elem_index ( data [ start : ] ) if end >= 0 : end += start if self . style [ 'in' ] in [ 'params' , 'unknown' ] and end == - 1 : p1 , _ = self . get_param_indexes ( data [ start : ] ) if p1 >= 0 : end = p1 else : end = len ( data ) return start , end