Lines Matching defs:str
26 def gettext(self, message: str) -> str:
29 def ngettext(self, singular: str, plural: str, n: int) -> str:
33 def pgettext(self, context: str, message: str) -> str:
36 def npgettext(self, context: str, singular: str, plural: str, n: int) -> str:
99 self, source: str, name: t.Optional[str], filename: t.Optional[str] = None
126 self, name: str, lineno: t.Optional[int] = None
139 name: str,
170 def _make_new_gettext(func: t.Callable[[str], str]) -> t.Callable[..., str]:
172 def gettext(__context: Context, __string: str, **variables: t.Any) -> str:
184 def _make_new_ngettext(func: t.Callable[[str, str, int], str]) -> t.Callable[..., str]: argument
188 __singular: str,
189 __plural: str,
203 def _make_new_pgettext(func: t.Callable[[str, str], str]) -> t.Callable[..., str]: argument
206 __context: Context, __string_ctx: str, __string: str, **variables: t.Any
221 func: t.Callable[[str, str, str, int], str] argument
226 __string_ctx: str,
227 __singular: str,
228 __plural: str,
297 def pgettext(c: str, s: str) -> str:
304 def npgettext(c: str, s: str, p: str, n: int) -> str:
317 gettext: t.Callable[[str], str],
318 ngettext: t.Callable[[str, str, int], str],
320 pgettext: t.Optional[t.Callable[[str, str], str]] = None, argument
321 npgettext: t.Optional[t.Callable[[str, str, str, int], str]] = None,
345 source: t.Union[str, nodes.Template],
346 gettext_functions: t.Sequence[str] = GETTEXT_FUNCTIONS,
476 def _trim_whitespace(self, string: str, _ws_re: t.Pattern[str] = _ws_re) -> str:
528 singular: str,
529 plural: t.Optional[str],
530 context: t.Optional[str],
531 variables: t.Dict[str, nodes.Expr],
656 gettext_functions: t.Sequence[str] = GETTEXT_FUNCTIONS,
741 self, tokens: t.Sequence[t.Tuple[int, str, str]], comment_tags: t.Sequence[str] argument
775 keywords: t.Sequence[str],
776 comment_tags: t.Sequence[str],
777 options: t.Dict[str, t.Any],
823 def getbool(options: t.Mapping[str, str], key: str, default: bool = False) -> bool: argument