Difference between revisions of "String"
m |
(slight rewording) |
||
Line 1: | Line 1: | ||
{{String}} | {{String}} | ||
− | '''String''' is a [[Type]] which may contain [[Character_and_string_types#AnsiChar|char]]acters. String is [[Character_and_string_types#ShortString|ShortString]] or [[Character_and_string_types#AnsiString|AnsiString]] type. | + | '''String''' is a [[Type]] which may contain [[Character_and_string_types#AnsiChar|char]]acters. String is a synonym for [[Character_and_string_types#ShortString|ShortString]] or [[Character_and_string_types#AnsiString|AnsiString]] depending on the current compiler setting. |
+ | |||
+ | If [[Compiler]] switch {$H}/{$LongStrings} is on {$H+}/{$LongStrings ON}, then a String type is the same as an AnsiString type, if not, it is a ShortString type. | ||
+ | |||
+ | The ShortString length can be decided by the programmer but is limited to 255 characters. If a ShortString length is not given, the length defaults to 255. | ||
− | |||
− | |||
The length of an AnsiString is only limited by available memory. | The length of an AnsiString is only limited by available memory. | ||
− | In the future, there might be a compiler switch to | + | In the future, there might be a compiler switch to have the String type refer to a Unicode (UTF-8 or UTF-16) String type. |
== See also == | == See also == |
Revision as of 05:39, 8 July 2016
│
Deutsch (de) │
English (en) │
español (es) │
français (fr) │
русский (ru) │
String is a Type which may contain characters. String is a synonym for ShortString or AnsiString depending on the current compiler setting.
If Compiler switch {$H}/{$LongStrings} is on {$H+}/{$LongStrings ON}, then a String type is the same as an AnsiString type, if not, it is a ShortString type.
The ShortString length can be decided by the programmer but is limited to 255 characters. If a ShortString length is not given, the length defaults to 255.
The length of an AnsiString is only limited by available memory.
In the future, there might be a compiler switch to have the String type refer to a Unicode (UTF-8 or UTF-16) String type.
See also
- Character and string types, a detailled reference covering internal memory layout and access options.
simple data types |
|
---|---|
complex data types |