Difference between revisions of "String"
From Free Pascal wiki
Jump to navigationJump to searchm |
m |
||
Line 1: | Line 1: | ||
{{String}} | {{String}} | ||
− | '''String''' is a [[Type]] which may contain [[ | + | '''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. |
[[Compiler]] switch {$H} is usually on {$H+}, then String is AnsiString type. | [[Compiler]] switch {$H} is usually on {$H+}, then String is AnsiString type. |
Revision as of 16:07, 1 May 2015
│
Deutsch (de) │
English (en) │
español (es) │
français (fr) │
русский (ru) │
String is a Type which may contain characters. String is ShortString or AnsiString type.
Compiler switch {$H} is usually on {$H+}, then String is AnsiString type.
The ShortString length is decided by the programmer and should be, in UCSD Pascal, be from 1 to 255 characters. The length of an AnsiString is only limited by available memory.
In the future, there might be a compiler switch to use unicode (UTF-8 or UTF-16) depending on platform.
See also
- Character and string types, a detailled reference covering internal memory layout and access options.
simple data types |
|
---|---|
complex data types |