1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
function StrConv(const sText: String; Conversion: DWORD): String; overload; var nSize: Integer; begin nSize := LCMapString(LOCALE_SYSTEM_DEFAULT, Conversion, PChar(sText), Length(sText), nil, 0); SetLength(Result, nSize); nSize := LCMapString(LOCALE_SYSTEM_DEFAULT, Conversion, PChar(sText), Length(sText), PChar(Result), nSize); if nSize <= 0 then Result := sText else SetLength(Result, nSize); end;
Result := StrConv(sText, LCMAP_FULLWIDTH);
Result := StrConv(Char, LCMAP_FULLWIDTH);
|