Lines Matching refs:str

163 def _describe_token_type(token_type: str) -> str:
183 def describe_token(token: "Token") -> str:
191 def describe_token_expr(expr: str) -> str:
204 def count_newlines(value: str) -> int:
211 def compile_rules(environment: "Environment") -> t.List[t.Tuple[str, str]]:
258 self, message: str, cls: t.Type[TemplateSyntaxError] = TemplateSyntaxError
263 def __call__(self, lineno: int, filename: str) -> "te.NoReturn":
269 type: str
270 value: str
272 def __str__(self) -> str:
275 def test(self, expr: str) -> bool:
290 def test_any(self, *iterable: str) -> bool:
326 name: t.Optional[str],
327 filename: t.Optional[str],
365 def next_if(self, expr: str) -> t.Optional[Token]:
374 def skip_if(self, expr: str) -> bool:
401 def expect(self, expr: str) -> Token:
464 pattern: t.Pattern[str]
465 tokens: t.Union[str, t.Tuple[str, ...], t.Tuple[Failure]]
466 command: t.Optional[str]
481 def c(x: str) -> t.Pattern[str]:
524 self.rules: t.Dict[str, t.List[_Rule]] = {
596 def _normalize_newlines(self, value: str) -> str:
604 source: str,
605 name: t.Optional[str] = None,
606 filename: t.Optional[str] = None,
607 state: t.Optional[str] = None,
615 stream: t.Iterable[t.Tuple[int, str, str]],
616 name: t.Optional[str] = None,
617 filename: t.Optional[str] = None,
655 msg = str(e).split(":")[-1].strip()
669 source: str,
670 name: t.Optional[str],
671 filename: t.Optional[str] = None,
672 state: t.Optional[str] = None,
673 ) -> t.Iterator[t.Tuple[int, str, str]]:
697 balancing_stack: t.List[str] = []
723 groups: t.Sequence[str] = m.groups()