Difference between revisions of "string"

m (included link to other languages)
 
Line 1: Line 1:
Strings have the usual meaning: a sequence of characters. Lua is eight-bit clean and so strings may contain characters with any numeric value, including embedded zeros. That means that you can store any binary data into a string. See [http://www.lua.org/pil/2.4.html Programming in Lua].
+
From the Lua 5.1 [http://www.lua.org/manual/5.1/manual.html#2.2 reference manual §2.2]:
[[Category:Data Types]][[Category:Lua]]
+
 
 +
String represents arrays of characters. Lua is 8-bit clean: strings can contain any 8-bit character, including embedded zeros ('\0') (see [http://www.lua.org/manual/5.1/manual.html#2.1 §2.1]).
 +
 
 +
[[Category:Lua]]
 
== Other Languages ==
 
== Other Languages ==
 
{{i18n|string}}
 
{{i18n|string}}

Latest revision as of 23:01, 5 February 2012

From the Lua 5.1 reference manual §2.2:

String represents arrays of characters. Lua is 8-bit clean: strings can contain any 8-bit character, including embedded zeros ('\0') (see §2.1).

Other Languages