Home | History | Annotate | Download | only in encodings

Lines Matching refs:pos

32 def selective_find(str, char, index, pos):
33 """Return a pair (index, pos), indicating the next occurrence of
35 only ordinals up to and including char, and pos is the position in
36 the full string. index/pos is the starting position in the full
41 pos += 1
42 if pos == l:
44 c = str[pos]
46 return index+1, pos
56 index = pos = -1
61 index,pos = selective_find(str,c,index,pos)
163 pos = -1
173 pos += delta+1
174 char += pos // (len(base) + 1)
179 pos = pos % (len(base) + 1)
180 base = base[:pos] + unichr(char) + base[pos:]
186 pos = text.rfind("-")
187 if pos == -1:
191 base = text[:pos]
192 extended = text[pos+1:]