MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlGetCharEncodingName

Function xmlGetCharEncodingName

ThirdParty/libxml2/vtklibxml2/encoding.c:1177–1230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1175 */
1176
1177const char*
1178xmlGetCharEncodingName(xmlCharEncoding enc) {
1179 switch (enc) {
1180 case XML_CHAR_ENCODING_ERROR:
1181 return(NULL);
1182 case XML_CHAR_ENCODING_NONE:
1183 return(NULL);
1184 case XML_CHAR_ENCODING_UTF8:
1185 return("UTF-8");
1186 case XML_CHAR_ENCODING_UTF16LE:
1187 return("UTF-16");
1188 case XML_CHAR_ENCODING_UTF16BE:
1189 return("UTF-16");
1190 case XML_CHAR_ENCODING_EBCDIC:
1191 return("EBCDIC");
1192 case XML_CHAR_ENCODING_UCS4LE:
1193 return("ISO-10646-UCS-4");
1194 case XML_CHAR_ENCODING_UCS4BE:
1195 return("ISO-10646-UCS-4");
1196 case XML_CHAR_ENCODING_UCS4_2143:
1197 return("ISO-10646-UCS-4");
1198 case XML_CHAR_ENCODING_UCS4_3412:
1199 return("ISO-10646-UCS-4");
1200 case XML_CHAR_ENCODING_UCS2:
1201 return("ISO-10646-UCS-2");
1202 case XML_CHAR_ENCODING_8859_1:
1203 return("ISO-8859-1");
1204 case XML_CHAR_ENCODING_8859_2:
1205 return("ISO-8859-2");
1206 case XML_CHAR_ENCODING_8859_3:
1207 return("ISO-8859-3");
1208 case XML_CHAR_ENCODING_8859_4:
1209 return("ISO-8859-4");
1210 case XML_CHAR_ENCODING_8859_5:
1211 return("ISO-8859-5");
1212 case XML_CHAR_ENCODING_8859_6:
1213 return("ISO-8859-6");
1214 case XML_CHAR_ENCODING_8859_7:
1215 return("ISO-8859-7");
1216 case XML_CHAR_ENCODING_8859_8:
1217 return("ISO-8859-8");
1218 case XML_CHAR_ENCODING_8859_9:
1219 return("ISO-8859-9");
1220 case XML_CHAR_ENCODING_2022_JP:
1221 return("ISO-2022-JP");
1222 case XML_CHAR_ENCODING_SHIFT_JIS:
1223 return("Shift-JIS");
1224 case XML_CHAR_ENCODING_EUC_JP:
1225 return("EUC-JP");
1226 case XML_CHAR_ENCODING_ASCII:
1227 return(NULL);
1228 }
1229 return(NULL);
1230}
1231
1232/************************************************************************
1233 * *

Callers 4

htmlCreatePushParserCtxtFunction · 0.85
xmlSwitchEncodingFunction · 0.85
xmlNewIOInputStreamFunction · 0.85
xmlCreateIOParserCtxtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected