Home
last modified time | relevance | path

Searched refs:as_utf8 (Results 1 - 11 of 11) sorted by relevance

/third_party/protobuf/python/google/protobuf/
H A Dtext_encoding.py58 def CEscape(text, as_utf8):
64 as_utf8: Specifies if result may contain non-ASCII characters.
77 if as_utf8 and text_is_unicode:
83 if as_utf8:
H A Dtext_format.py104 def __init__(self, as_utf8):
125 as_utf8=False,
148 as_utf8: Return unescaped Unicode for non-ASCII characters.
181 out = TextWriter(as_utf8)
185 as_utf8,
211 codec = 'utf-8' if kwargs.get('as_utf8') else 'ascii'
224 as_utf8=False,
237 out=out, indent=indent, as_utf8=as_utf8,
256 as_utf8
[all...]
/third_party/protobuf/python/google/protobuf/internal/
H A Dtext_encoding_test.py61 text_encoding.CEscape(unescaped, as_utf8=False))
63 text_encoding.CEscape(unescaped, as_utf8=True))
H A Dtext_format_test.py339 # Test as_utf8 = False.
342 as_utf8=False)
348 # Test as_utf8 = True.
351 as_utf8=True)
361 text = text_format.MessageToString(message, as_utf8=True)
457 text = text_format.MessageToString(message, as_utf8=True)
471 text = text_format.MessageToString(message, as_utf8=False) # ASCII
620 utf8_text = text_format.MessageToBytes(message, as_utf8=True)
633 ascii_text = text_format.MessageToBytes(message) # as_utf8=False default
H A Dpython_message.py1037 return text_format.MessageToString(self, as_utf8=True).decode('utf-8')
/third_party/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
H A Dtext_format_test.py216 # Test as_utf8 = False.
218 message, as_one_line=True, as_utf8=False)
223 # Test as_utf8 = True.
225 message, as_one_line=True, as_utf8=True)
233 text = text_format.MessageToString(message, as_utf8 = True)
/third_party/rust/crates/rust-openssl/openssl/src/
H A Dasn1.rs440 pub fn as_utf8(&self) -> Result<OpensslString, ErrorStack> { in as_utf8() functions
455 /// strings in rust, it is preferable to use [`as_utf8`]
457 /// [`as_utf8`]: struct.Asn1String.html#method.as_utf8
477 match self.as_utf8() { in fmt()
/third_party/rust/crates/rust-openssl/openssl/src/x509/
H A Dtests.rs117 assert_eq!(&**friendly.data().as_utf8().unwrap(), "Example"); in test_nid_values()
140 assert_eq!(&**friendly.data().as_utf8().unwrap(), "Example"); in test_nameref_iterator()
226 let o = o.next().unwrap().data().as_utf8().unwrap(); in test_authority_issuer_and_serial()
229 let cn = cn.next().unwrap().data().as_utf8().unwrap(); in test_authority_issuer_and_serial()
/third_party/python/Lib/
H A Dtraceback.py562 as_utf8 = str.encode('utf-8')
563 return len(as_utf8[:offset].decode("utf-8", errors="replace"))
/third_party/protobuf/src/google/protobuf/
H A Dtext_format.h295 void SetUseUtf8StringEscaping(bool as_utf8);
H A Dtext_format.cc1822 void TextFormat::Printer::SetUseUtf8StringEscaping(bool as_utf8) { in SetUseUtf8StringEscaping() argument
1823 SetDefaultFieldValuePrinter(as_utf8 ? new FastFieldValuePrinterUtf8Escaping() in SetUseUtf8StringEscaping()

Completed in 16 milliseconds