forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodeunit.lcdoc
More file actions
42 lines (27 loc) · 1.08 KB
/
Copy pathcodeunit.lcdoc
File metadata and controls
42 lines (27 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Name: codeunit
Type: keyword
Syntax: codeunit
Summary:
Designates the encoded unit in which a codepoint is stored.
Introduced: 7.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
get codeunit 1 of tString
Example:
get the first codeunit of tString
Description:
Use the <codeunit> <keyword> to refer to the encoded units in which
codepoints are stored.
A <codeunit> is the encoded units in which codepoints are stored (e.g.
16 bit words in UTF-16 or 8-bit bytes in UTF-8). Although the engine
currently uses UTF-16 for storage of Unicode text, this should not be
relied upon. The byte order of the codeunits depends on the platform and
it is not guaranteed that the engine will always use UTF-16 for text
storage.
The hierarchy of the new and altered chunk types is as follows:
byte w of codeunit x of codepoint y of char z of word ...
>*Note:* This chunk type is not of general utility.
References: keyword (glossary), characters (keyword), codepoint (keyword),
codeunits (keyword), character (keyword), codepoints (keyword),
bytes (keyword), byte (keyword)