cuda_cffi/_cffi_autogen_common.py
def _find_breakpoint(line, break_pattern=', ', nmax=80):
    """ determine where to break the line """
    line = _remove_comment(line)
    locs = [m.start() for m in re.finditer(break_pattern, line)]
    if len(locs) > 0:
        break_loc = locs[np.where(
            np.asarray(locs) < (nmax - len(break_pattern)))[0][-1]]
        break_loc += len(break_pattern)
    else:
        break_loc = None
    return locs, break_loc
 determine where to break the line 
determine where to break the line
determine where to break the line
def _find_breakpoint(line, break_pattern=', ', nmax=80):
    line = _remove_comment(line)
    locs = [m.start() for m in re.finditer(break_pattern, line)]
    if len(locs) > 0:
        break_loc = locs[np.where(
            np.asarray(locs) < (nmax - len(break_pattern)))[0][-1]]
        break_loc += len(break_pattern)
    else:
        break_loc = None
    return locs, break_loc
def _find_breakpoint ( line , break_pattern = ', ' , nmax = 80 ) : line = _remove_comment ( line ) locs = [ m . start ( ) for m in re . finditer ( break_pattern , line ) ] if len ( locs ) > 0 : break_loc = locs [ np . where ( np . asarray ( locs ) < ( nmax - len ( break_pattern ) ) ) [ 0 ] [ - 1 ] ] break_loc += len ( break_pattern ) else : break_loc = None return locs , break_loc
determine where to break the line
determine where to break the line
""" determine where to break the line """
line
break_pattern
nmax