forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodepointToNum.xml
More file actions
75 lines (59 loc) · 2.22 KB
/
Copy pathcodepointToNum.xml
File metadata and controls
75 lines (59 loc) · 2.22 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<doc>
<legacy_id></legacy_id>
<name>codepointToNum</name>
<type>function</type>
<syntax>
<example>codepointToNum(<i>unicodeCodepoint</i>)</example>
</syntax>
<synonyms>
</synonyms>
<summary>Converts a Unicode codepoint to an integer.</summary>
<examples>
<example>get codepointToNum("A") </example>
<example>put codepointToNum(space) is 0x20</example>
<example><p>get codepointToNum(codepoint 1 of field "data")</p></example>
</examples>
<history>
<introduced version="7.0">Added.</introduced>
<deprecated version=""></deprecated>
<removed version=""></removed>
<experimental version=""></experimental>
<nonexperimental version=""></nonexperimental>
</history>
<objects>
</objects>
<platforms>
<mac/>
<windows/>
<linux/>
<ios/>
<android/>
</platforms>
<classes>
<desktop/>
<server/>
<web/>
<mobile/>
</classes>
<security>
</security>
<classification>
</classification>
<references>
<function tag="numToCodepoint">numToCodepoint function</function>
<function tag="numToNativeChar">numToNativeChar function</function>
<function tag="nativeCharToNum">nativeCharToNum function</function>
<function tag="normalizeText">normalizeText function</function>
<function tag="codepointProperty">codepointProperty function</function>
</references>
<description>
<overview>Use the <b>codepointToNum</b> function to translate a Unicode codepoint to its integer represntation.</overview>
<parameters>
<parameter>
<name>unicodeCodepoint</name>
<description>A single Unicode codepoint</description>
</parameter> </parameters>
<value>The <b>codepointToNum</b> function returns an integer in the range 0x000000 to 0x10FF that identifies the given character.</value>
<comments>The <b>codepointToNum</b> function takes a Unicode codepoint and returns its integer vaalue.<p></p><p>The <b>codepointToNum</b> function raises an exception if the argument contains multiple codepoints; it should generally be used in the form:</p><p></p><p>codepointToNum(codepoint x of string)</p><p></p><p>Codepoints that are not currently assigned to characters by the latest Unicode standard are not considered to be invalid in order to ensure compatibility with future standards.</p></comments>
</description>
</doc>