MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / xml_encoding get_wchar_encoding

Function xml_encoding get_wchar_encoding

src/pugiXML/pugixml.cpp:1098–1106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1096 }
1097
1098 PUGI__FN xml_encoding get_wchar_encoding()
1099 {
1100 PUGI__STATIC_ASSERT(sizeof(wchar_t) == 2 || sizeof(wchar_t) == 4);
1101
1102 if (sizeof(wchar_t) == 2)
1103 return is_little_endian() ? encoding_utf16_le : encoding_utf16_be;
1104 else
1105 return is_little_endian() ? encoding_utf32_le : encoding_utf32_be;
1106 }
1107
1108 PUGI__FN xml_encoding guess_buffer_encoding(uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3)
1109 {

Callers

nothing calls this directly

Calls 1

is_little_endianFunction · 0.85

Tested by

no test coverage detected