Home | History | Annotate | Download | only in tools

Lines Matching refs:cr

42 def PrevailingEOLName(crlf, cr, lf):
47 cr: How many CR (\r) characters are in the file, excluding CRLF sequences.
53 most = max(crlf, cr, lf)
54 if most == cr:
55 return 'cr'
61 def FixEndings(file, crlf, cr, lf):
63 most = max(crlf, cr, lf)
89 cr = CountChars(text, '\r') - crlf
93 if crlf > 0 or cr > 0:
98 if ((crlf > 0 and cr > 0) or
100 ( lf > 0 and cr > 0)):
101 print '%s: mostly %s' % (filename, PrevailingEOLName(crlf, cr, lf))
102 FixEndings(filename, crlf, cr, lf)