Home | History | Annotate | Download | only in motemplate

Lines Matching refs:_string

445     self._string = string
450 render_state.text.Append(self._string)
453 return self._string.startswith('\n')
457 self._string = self._string[1:]
460 original_length = len(self._string)
461 self._string = self._string[:self._LastIndexOfSpaces()]
462 return original_length - len(self._string)
465 if self._string.endswith('\n'):
466 self._string = self._string[:len(self._string) - 1]
470 return index == 0 or self._string[index - 1] == '\n'
473 index = len(self._string)
474 while index > 0 and self._string[index - 1] == ' ':
485 return self._string
826 self._string = string
835 return self._string[self._cursor - 1]
839 if self._cursor > 0 and self._string[self._cursor - 1] == '\n':
847 if self._cursor == len(self._string):
849 assert self._cursor < len(self._string)
851 if (self._cursor + 1 < len(self._string) and
852 self._string[self._cursor + 1] in '{}'):
854 _TOKENS.get(self._string[self._cursor:self._cursor+3]) or
855 _TOKENS.get(self._string[self._cursor:self._cursor+2]))
890 self._string[self._cursor - 1] not in excluded):
893 return self._string[start:end]
901 self._string[self._cursor - 1] in ' \n\r\t'):
907 self._string[self._cursor:])