MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ShiftJIS_ConvertString

Function ShiftJIS_ConvertString

pcsx2/ShiftJisToUnicode.cpp:834–851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

832}
833
834std::string ShiftJIS_ConvertString( const char* src )
835{
836 std::string result;
837
838 // Implementation Notes:
839 // * The length of the result (in chars) cannot exceed the length of the source.
840
841 result.reserve( strlen(src) * 2 );
842
843 while( *src != 0 )
844 {
845 int skip;
846 StringUtil::AppendUTF16CharacterToUTF8(result, ShiftJIS_ConvertChar( (u8*)src, skip ));
847 src += skip;
848 }
849
850 return result;
851}
852
853std::string ShiftJIS_ConvertString( const char* src, int maxlen )
854{

Callers 7

_hwWrite8Function · 0.85
write_HLEFunction · 0.85
Kprintf_HLEFunction · 0.85
__Deci2CallFunction · 0.85
SYSCALLFunction · 0.85
flush_stdoutFunction · 0.85
iopHwWrite8_Page3Function · 0.85

Calls 3

ShiftJIS_ConvertCharFunction · 0.85
reserveMethod · 0.45

Tested by

no test coverage detected