forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodepointToNum.lcdoc
More file actions
40 lines (23 loc) · 1.23 KB
/
Copy pathcodepointToNum.lcdoc
File metadata and controls
40 lines (23 loc) · 1.23 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
Name: codepointToNum
Type: function
Syntax: codepointToNum(<unicodeCodepoint>)
Summary: Converts a Unicode codepoint to an integer.
Introduced: 7.0
OS: mac,windows,linux,ios,android
Platforms: desktop,server,web,mobile
Example:
get codepointToNum("A")
Example:
put codepointToNum(space) is 0x20
Example:
get codepointToNum(codepoint 1 of field "data")
Parameters:
unicodeCodepoint: A single Unicode codepoint
Returns (integer): The <codepointToNum> function returns an integer in the range 0x000000 to 0x10FF that identifies the given character.
Description:
Use the <codepointToNum> function to translate a Unicode codepoint to its integer represntation.
The <codepointToNum> function takes a Unicode codepoint and returns its integer vaalue.
The <codepointToNum> function raises an exception if the argument contains multiple codepoints; it should generally be used in the form:
codepointToNum(codepoint x of string)
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.
References: nativeCharToNum (function), codepointProperty (function), numToNativeChar (function), normalizeText (function), numToCodepoint (function)