| 832 | } |
| 833 | |
| 834 | std::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 | |
| 853 | std::string ShiftJIS_ConvertString( const char* src, int maxlen ) |
| 854 | { |
no test coverage detected