MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / Encoding_GetLabel

Function Encoding_GetLabel

src/Edit.c:648–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

646
647
648void Encoding_GetLabel ( int iEncoding )
649{
650 if ( mEncoding[iEncoding].wchLabel[0] == 0 ) {
651 WCHAR *pwsz;
652 WCHAR wch[256] = L"";
653 GetString ( mEncoding[iEncoding].idsName, wch, COUNTOF ( wch ) );
654 if ( pwsz = StrChr ( wch, L';' ) ) {
655 if ( pwsz = StrChr ( CharNext ( pwsz ), L';' ) ) {
656 pwsz = CharNext ( pwsz );
657 }
658 }
659 if ( !pwsz ) {
660 pwsz = wch;
661 }
662 StrCpyN ( mEncoding[iEncoding].wchLabel, pwsz, COUNTOF ( mEncoding[iEncoding].wchLabel ) );
663 }
664}
665
666
667int Encoding_MatchW ( LPCWSTR pwszTest )

Callers 1

UpdateStatusbarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected