MCPcopy Index your code
hub / github.com/RustPython/RustPython / code_page_encoding_name

Function code_page_encoding_name

crates/vm/src/stdlib/_codecs.rs:762–767  ·  view source on GitHub ↗
(code_page: u32)

Source from the content-addressed store, hash-verified

760 }
761
762 fn code_page_encoding_name(code_page: u32) -> String {
763 match code_page {
764 0 => "mbcs".to_string(),
765 cp => format!("cp{cp}"),
766 }
767 }
768
769 /// Get WideCharToMultiByte flags for encoding.
770 /// Matches encode_code_page_flags() in CPython.

Callers 2

code_page_encodeFunction · 0.85
code_page_decodeFunction · 0.85

Calls 1

to_stringMethod · 0.80

Tested by

no test coverage detected