MCPcopy Create free account
hub / github.com/WheretIB/nullc / get_wchar_encoding

Function get_wchar_encoding

external/pugixml/pugixml.cpp:994–1002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

992 }
993
994 xml_encoding get_wchar_encoding()
995 {
996 STATIC_ASSERT(sizeof(wchar_t) == 2 || sizeof(wchar_t) == 4);
997
998 if (sizeof(wchar_t) == 2)
999 return is_little_endian() ? encoding_utf16_le : encoding_utf16_be;
1000 else
1001 return is_little_endian() ? encoding_utf32_le : encoding_utf32_be;
1002 }
1003
1004 xml_encoding guess_buffer_encoding(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3)
1005 {

Callers 4

get_buffer_encodingFunction · 0.85
convert_bufferFunction · 0.85
get_write_encodingFunction · 0.85

Calls 1

is_little_endianFunction · 0.85

Tested by

no test coverage detected