Difference between revisions of "Character and string types"

From Lazarus wiki
Jump to navigationJump to search
Line 9: Line 9:
 
| style="width: 100%;" | a
 
| style="width: 100%;" | a
 
|}
 
|}
 +
 +
==== Reference ====
 +
* [http://www.freepascal.org/docs-html/ref/refsu7.html FPC AnsiChar documentation]
  
 
== WideChar ==
 
== WideChar ==
Line 18: Line 21:
 
| style="width: 50%;" | || style="width: 50%;" | a
 
| style="width: 50%;" | || style="width: 50%;" | a
 
|}
 
|}
 +
 +
==== Reference ====
 +
* [http://www.freepascal.org/docs-html/ref/refsu8.html FPC WideChar documentation]
 +
  
 
[[Category: FPC]]
 
[[Category: FPC]]
 
[[Category: Data types]]
 
[[Category: Data types]]

Revision as of 15:51, 28 December 2013

Free Pascal supports several types of characters and strings.

AnsiChar

A variable of type AnsiChar is exactly 1 byte in size, and contains one ASCII character.

a

Reference

WideChar

A variable of type WideChar is exactly 2 bytes in size, and contains one Unicode character in UTF-16 encoding.

a

Reference