Lines Matching refs:str
163 def _eat_identifier(cls, str, limit, pos):
179 ord(str[i - 1]) < 128 and
180 is_ascii_id_char[ord(str[i - 1])]
188 if i > limit and ord(str[i - 1]) >= 128:
189 while i - 4 >= limit and ('a' + str[i - 4:pos]).isidentifier():
191 if i - 2 >= limit and ('a' + str[i - 2:pos]).isidentifier():
193 if i - 1 >= limit and ('a' + str[i - 1:pos]).isidentifier():
200 if not str[i:pos].isidentifier():
203 # All characters in str[i:pos] are valid ASCII identifier
206 if not _IS_ASCII_ID_FIRST_CHAR[ord(str[i])]:
212 iskeyword(str[i:pos]) and
213 str[i:pos] not in cls._ID_KEYWORDS