Lines Matching refs:counter
45 def add_label_data(self, format, counter, blankline=None): pass
115 def add_label_data(self, format, counter, blankline = None):
121 self.writer.send_label_data(self.format_counter(format, counter))
127 def format_counter(self, format, counter):
131 label = label + ('%d' % counter)
133 if counter > 0:
134 label = label + self.format_letter(c, counter)
136 if counter > 0:
137 label = label + self.format_roman(c, counter)
142 def format_letter(self, case, counter):
144 while counter > 0:
145 counter, x = divmod(counter-1, 26)
153 def format_roman(self, case, counter):
157 # This will die of IndexError when counter is too big
158 while counter > 0:
159 counter, x = divmod(counter, 10)