Home
last modified time | relevance | path

Searched refs:as_utf8 (Results 1 – 8 of 8) sorted by relevance

/external/protobuf/python/google/protobuf/
Dtext_encoding.py58 def CEscape(text, as_utf8): argument
77 if as_utf8 and text_is_unicode:
83 if as_utf8:
Dtext_format.py101 def __init__(self, as_utf8): argument
121 as_utf8=False, argument
173 out = TextWriter(as_utf8)
174 printer = _Printer(out, indent, as_utf8, as_one_line,
207 as_utf8=False, argument
219 out=out, indent=indent, as_utf8=as_utf8,
237 as_utf8=False, argument
247 printer = _Printer(out, indent, as_utf8, as_one_line,
259 as_utf8=False, argument
269 printer = _Printer(out, indent, as_utf8, as_one_line,
[all …]
/external/protobuf/python/google/protobuf/internal/
Dtext_encoding_test.py61 text_encoding.CEscape(unescaped, as_utf8=False))
63 text_encoding.CEscape(unescaped, as_utf8=True))
Dtext_format_test.py237 as_utf8=False)
246 as_utf8=True)
256 text = text_format.MessageToString(message, as_utf8=True)
342 text = text_format.MessageToString(message, as_utf8=True)
356 text = text_format.MessageToString(message, as_utf8=False) # ASCII
465 utf8_text = text_format.MessageToBytes(message, as_utf8=True)
Dpython_message.py1019 return text_format.MessageToString(self, as_utf8=True).decode('utf-8')
/external/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Dtext_format_test.py218 message, as_one_line=True, as_utf8=False)
225 message, as_one_line=True, as_utf8=True)
233 text = text_format.MessageToString(message, as_utf8 = True)
/external/protobuf/src/google/protobuf/
Dtext_format.h286 void SetUseUtf8StringEscaping(bool as_utf8);
Dtext_format.cc1815 void TextFormat::Printer::SetUseUtf8StringEscaping(bool as_utf8) { in SetUseUtf8StringEscaping() argument
1816 SetDefaultFieldValuePrinter(as_utf8 ? new FastFieldValuePrinterUtf8Escaping() in SetUseUtf8StringEscaping()