Difference between revisions of "User talk:Michl"

From Lazarus wiki
(question answered ;))
m
Line 1: Line 1:
 
+
{| class="wikitable sortable"
 +
! String Type, UTF-8 Source !! Example !! Const (in Source) !! Assigned to String !! Assigned to UTF8String !! Assigned to UnicodeString !! Assigned to CP1252String !! Assigned to RawByteString !! Assigned to ShortString !! Assigned to PChar
 +
|----
 +
|const||const s = 'äöü';||class="working"| working ||class="working"| working ||class="not"| wrong encoded || class="not"| wrong encoded || class="not"| wrong encoded ||class="working"| working ||class="working"| working ||class="working"| working
 +
|----
 +
|String||const s: String = 'äöü';||class="working"| working ||class="working"| working ||class="working"| working || class="working"| working || class="working"| working ||class="working"| working ||class="working"| working ||class="working"| working
 +
|----
 +
|ShortString||const s: String[80] = 'äöü';||class="working"| working ||class="working"| working ||class="working"| working || class="working"| working || class="not"| wrong encoded ||class="working"| working ||class="working"| working ||class="not"| not available
 +
|----
 +
|UTF8String||const s: UTF8String = 'äöü';||class="not"| wrong encoded ||class="not"| wrong encoded ||class="not"| wrong encoded || class="not"| wrong encoded || class="not"| wrong encoded ||class="not"| wrong encoded ||class="not"| wrong encoded ||class="not"| wrong encoded
 +
|----
 +
|UnicodeString||const s: UnicodeString = 'äöü';||class="not"| wrong encoded ||class="not"| wrong encoded ||class="not"| wrong encoded || class="not"| wrong encoded || class="not"| wrong encoded ||class="not"| wrong encoded ||class="not"| wrong encoded ||class="not"| wrong encoded
 +
|----
 +
|String with declared code page||type CP1252String = type AnsiString(1252);||class="not"| wrong encoded ||class="not"| wrong encoded ||class="not"| wrong encoded || class="not"| wrong encoded || class="not"| wrong encoded ||class="not"| wrong encoded ||class="not"| wrong encoded ||class="not"| wrong encoded
 +
|----
 +
|RawbyteString||const s: RawbyteString = 'äöü';||class="working"| working ||class="working"| working ||class="working"| working || class="working"| working || class="working"| working ||class="working"| working ||class="working"| working ||class="working"| working
 +
|}

Revision as of 00:42, 24 June 2016

String Type, UTF-8 Source Example Const (in Source) Assigned to String Assigned to UTF8String Assigned to UnicodeString Assigned to CP1252String Assigned to RawByteString Assigned to ShortString Assigned to PChar
const const s = 'äöü'; working working wrong encoded wrong encoded wrong encoded working working working
String const s: String = 'äöü'; working working working working working working working working
ShortString const s: String[80] = 'äöü'; working working working working wrong encoded working working not available
UTF8String const s: UTF8String = 'äöü'; wrong encoded wrong encoded wrong encoded wrong encoded wrong encoded wrong encoded wrong encoded wrong encoded
UnicodeString const s: UnicodeString = 'äöü'; wrong encoded wrong encoded wrong encoded wrong encoded wrong encoded wrong encoded wrong encoded wrong encoded
String with declared code page type CP1252String = type AnsiString(1252); wrong encoded wrong encoded wrong encoded wrong encoded wrong encoded wrong encoded wrong encoded wrong encoded
RawbyteString const s: RawbyteString = 'äöü'; working working working working working working working working