Lines Matching defs:string
10 import string, re
33 # that character winds up in string.whitespace. Respecting
34 # string.whitespace in those cases would 1) make textwrap treat 0xa0 the
53 string that will be prepended to the first line of wrapped
56 string that will be prepended to all lines save the first
82 whitespace_trans = string.maketrans(_whitespace, ' ' * len(_whitespace))
106 # XXX this is not locale- or charset-aware -- string.lowercase
112 % string.lowercase)
147 """_munge_whitespace(text : string) -> string
164 """_split(text : string) -> [string]
193 """_fix_sentence_endings(chunks : [string])
211 """_handle_long_word(chunks : [string],
212 cur_line : [string],
244 """_wrap_chunks(chunks : [string]) -> [string]
271 # Figure out which static string will prefix this line.
306 # Convert current line back to a string and store it in list
317 """wrap(text : string) -> [string]
321 lines. Tabs in 'text' are expanded with string.expandtabs(),
332 """fill(text : string) -> string
335 more than 'self.width' columns, and return a new string
348 default, tabs in 'text' are expanded with string.expandtabs(), and
357 """Fill a single paragraph of text, returning a new string.
360 than 'width' columns, and return a new string containing the entire
387 # Look for the longest leading string of spaces and tabs common to