Lines Matching refs:cur_len
197 def _handle_long_word(self, reversed_chunks, cur_line, cur_len, width):
200 cur_len : int, width : int)
210 space_left = width - cur_len
235 # cur_len will be zero, so the next line will be entirely
269 # cur_len is just the length of all the chunks in cur_line.
271 cur_len = 0
291 if cur_len + l <= width:
293 cur_len += l
302 self._handle_long_word(chunks, cur_line, cur_len, width)
303 cur_len = sum(map(len, cur_line))
307 cur_len -= len(cur_line[-1])
316 not chunks[0].strip()) and cur_len <= width):
323 cur_len + len(self.placeholder) <= width):
327 cur_len -= len(cur_line[-1])