Lines Matching refs:char
30 def selective_find(str, char, index, pos):
32 char in str. index is the position of the character considering
33 only ordinals up to and including char, and pos is the position in
43 if c == char:
45 elif c < char:
55 char = ord(c)
56 curlen = selective_len(str, char)
57 delta = (curlen+1) * (char - oldchar)
66 oldchar = char
134 char = ord(extended[extpos])
140 if 0x41 <= char <= 0x5A: # A-Z
141 digit = char - 0x41
142 elif 0x30 <= char <= 0x39:
143 digit = char - 22 # 0x30-26
159 char = 0x80
171 char += pos // (len(base) + 1)
172 if char > 0x10FFFF:
174 raise UnicodeError("Invalid character U+%x" % char)
175 char = ord('?')
177 base = base[:pos] + chr(char) + base[pos:]