MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / Custom8BitEncoding>

Method Custom8BitEncoding>

src/fileformats/ocd_file_export.cpp:616–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

614
615template<>
616QTextCodec* OcdFileExport::determineEncoding<Ocd::Custom8BitEncoding>()
617{
618 auto encoding = codecFromSettings();
619 if (!encoding)
620 {
621 addWarning(::OpenOrienteering::OcdFileExport::tr("Encoding '%1' is not available. Check the settings.")
622 .arg(Settings::getInstance().getSetting(Settings::General_Local8BitEncoding).toString()));
623 encoding = QTextCodec::codecForLocale();
624 }
625 return encoding;
626}
627
628
629

Callers

nothing calls this directly

Calls 3

codecFromSettingsFunction · 0.70
toStringMethod · 0.45
getSettingMethod · 0.45

Tested by

no test coverage detected