Home | History | Annotate | Download | only in markupsafe

Lines Matching defs:text_type

12 from markupsafe._compat import text_type, string_types, int_types, \
23 class Markup(text_type):
72 return text_type.__new__(cls, base)
73 return text_type.__new__(cls, base, encoding, errors)
90 return self.__class__(text_type.__mul__(self, num))
99 return self.__class__(text_type.__mod__(self, arg))
104 text_type.__repr__(self)
108 return self.__class__(text_type.join(self, map(self.escape, seq)))
109 join.__doc__ = text_type.join.__doc__
112 return list(map(self.__class__, text_type.split(self, *args, **kwargs)))
113 split.__doc__ = text_type.split.__doc__
116 return list(map(self.__class__, text_type.rsplit(self, *args, **kwargs)))
117 rsplit.__doc__ = text_type.rsplit.__doc__
120 return list(map(self.__class__, text_type.splitlines(self, *args, **kwargs)))
121 splitlines.__doc__ = text_type.splitlines.__doc__
124 r"""Unescape markup again into an text_type string. This also resolves
143 return _entity_re.sub(handle_match, text_type(self))
146 r"""Unescape markup into an text_type string and strip all tags. This
168 orig = getattr(text_type, name)
184 if hasattr(text_type, 'partition'):
187 text_type.partition(self, self.escape(sep))))
190 text_type.rpartition(self, self.escape(sep))))
193 if hasattr(text_type, 'format'):
197 if hasattr(text_type, '__getslice__'):
219 __unicode__ = __str__ = lambda s: text_type(s.escape(s.obj))