Home
last modified time | relevance | path

Searched refs:text_type (Results 1 – 25 of 30) sorted by relevance

12

/external/libmojo/third_party/markupsafe/
D__init__.py12 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)))
[all …]
D_native.py12 from markupsafe._compat import text_type
22 return Markup(text_type(s)
44 if not isinstance(s, text_type):
45 s = text_type(s)
D_compat.py16 text_type = str variable
21 text_type = unicode variable
/external/mesa3d/src/gallium/drivers/swr/rasterizer/scripts/mako/
Dfilters.py68 if isinstance(x, compat.text_type):
73 return compat.text_type(x, encoding=key)
87 self.codepoint2entity = dict([(c, compat.text_type('&%s;' % n))
96 return compat.text_type(text).translate(self.codepoint2entity)
117 return self.__escapable.sub(self.__escape, compat.text_type(text)
173 return (compat.text_type(text), ex.end)
Dexceptions.py92 self.message = compat.text_type(self.error)
100 if not isinstance(self.message, compat.text_type):
101 self.message = compat.text_type(self.message, 'ascii', 'replace')
Dcompat.py19 text_type = str variable
45 text_type = unicode variable
Dtemplate.py629 not isinstance(self.template_source, compat.text_type):
669 if not compat.py3k and isinstance(cid, compat.text_type):
682 if isinstance(source, compat.text_type):
Dlexer.py177 if isinstance(text, compat.text_type):
/external/libmojo/third_party/jinja2/
Dfilters.py21 from jinja2._compat import next, imap, string_types, text_type, iteritems
77 return escape(text_type(value))
119 return text_type(s).replace(text_type(old), text_type(new), count)
318 return text_type(d).join(imap(text_type, value))
329 value[idx] = text_type(item)
333 d = text_type(d)
342 return text_type(value).center(width)
557 return Markup(text_type(value)).striptags()
752 return text_type(value)
Dtests.py13 from jinja2._compat import text_type, string_types, mapping_types
67 return text_type(value).islower()
72 return text_type(value).isupper()
Dexceptions.py11 from jinja2._compat import imap, text_type, PY2, implements_to_string
20 message = text_type(message).encode('utf-8')
75 u', '.join(imap(text_type, names))
Dutils.py14 from jinja2._compat import text_type, string_types, implements_iterator, \
200 words = _word_split_re.split(text_type(escape(text)))
288 obj = text_type(obj)
289 if isinstance(obj, text_type):
291 return text_type(url_quote(obj))
D_compat.py23 text_type = str variable
51 text_type = unicode variable
Dbccache.py24 from jinja2._compat import BytesIO, pickle, PY2, text_type
163 if isinstance(filename, text_type):
Druntime.py17 from jinja2._compat import next, imap, text_type, iteritems, \
29 to_string = text_type
50 return concat(imap(text_type, seq))
Denvironment.py31 text_type, reraise, implements_iterator, implements_to_string, \
471 source = text_type(source)
484 self.iter_extensions(), text_type(source))
Dlexer.py23 from jinja2._compat import next, iteritems, implements_iterator, text_type, \
597 source = text_type(source)
Dnodes.py19 from jinja2._compat import next, izip, with_metaclass, text_type, \
694 return ''.join(text_type(x.as_const(eval_ctx)) for x in self.nodes)
/external/python/cpython2/Lib/lib2to3/fixes/
Dfix_metaclass.py164 text_type = node.children[0].type # always Leaf(nnn, 'class')
217 pass_leaf = Leaf(text_type, u'pass')
226 pass_leaf = Leaf(text_type, u'pass')
/external/v8/src/regexp/
Dregexp-ast.h169 TextType text_type() const { return text_type_; } in text_type() function
174 DCHECK(text_type() == ATOM); in atom()
179 DCHECK(text_type() == CHAR_CLASS); in char_class()
184 TextElement(TextType text_type, RegExpTree* tree) in TextElement() argument
185 : cp_offset_(-1), text_type_(text_type), tree_(tree) {} in TextElement()
Djsregexp.cc896 switch (text_type()) { in length()
2554 if (elm.text_type() == TextElement::ATOM) { in GetQuickCheckDetails()
2811 if (elm.text_type() == TextElement::ATOM) { in FilterOneByte()
2827 DCHECK(elm.text_type() == TextElement::CHAR_CLASS); in FilterOneByte()
3252 if (elm.text_type() == TextElement::ATOM) { in TextEmitPass()
3287 DCHECK_EQ(TextElement::CHAR_CLASS, elm.text_type()); in TextEmitPass()
3439 if (elm.text_type() == TextElement::CHAR_CLASS) { in MakeCaseIndependent()
3459 if (elm.text_type() != TextElement::CHAR_CLASS) return NULL; in GetSuccessorOfOmnivorousTextNode()
4615 switch (elm.text_type()) { in VisitText()
6421 if (text.text_type() == TextElement::ATOM) { in FillInBMInfo()
[all …]
/external/protobuf/python/google/protobuf/internal/
Dtype_checkers.py173 if not isinstance(proposed_value, (bytes, six.text_type)):
175 (proposed_value, type(proposed_value), (bytes, six.text_type)))
Dmessage_test.py737 self.assertIsInstance(m.optional_string, six.text_type)
1298 self.assertIsInstance(msg.map_string_string['abc'], six.text_type)
1387 self.assertIsInstance(key, six.text_type)
1388 self.assertIsInstance(value, six.text_type)
/external/protobuf/python/google/protobuf/
Djson_format.py311 if not isinstance(text, six.text_type): text = text.decode('utf-8')
580 if isinstance(value, six.text_type) and value.find(' ') != -1:
Dtext_format.py89 if isinstance(val, six.text_type):
303 if isinstance(value, six.text_type):
1010 return six.text_type(the_bytes, 'utf-8')

12