MCPcopy Create free account
hub / github.com/SpartanJ/eepp / shiftJISToUTF32

Function shiftJISToUTF32

src/eepp/ui/doc/textdocument.cpp:403–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403String shiftJISToUTF32( const std::string_view& shiftJISString ) {
404 String string;
405 auto* ret = Window::Engine::instance()->getPlatformHelper()->iconv(
406 "UTF-32LE", "SHIFT-JIS", shiftJISString.data(), shiftJISString.size() );
407 if ( ret ) {
408 string = String( reinterpret_cast<String::StringBaseType*>( ret ) );
409 Window::Engine::instance()->getPlatformHelper()->iconvFree( ret );
410 }
411 return string;
412}
413
414static constexpr int codepointSize( TextFormat::Encoding enc ) {
415 switch ( enc ) {

Callers 1

ptrGetLineFunction · 0.85

Calls 5

iconvMethod · 0.80
getPlatformHelperMethod · 0.80
iconvFreeMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected