This repository was archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 227
Expand file tree
/
Copy pathcodepointProperty.lcdoc
More file actions
64 lines (46 loc) · 2.09 KB
/
codepointProperty.lcdoc
File metadata and controls
64 lines (46 loc) · 2.09 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
Name: codepointProperty
Type: function
Syntax: codepointProperty(<unicodeCodepoint>, <propertyName>)
Summary:
Retrieves a Unicode Character Database (UCD )character property of a
Unicode codepoint.
Introduced: 7.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
get codepointProperty("A","Script") -- returns "Latin"
Example:
put codePointProperty(codepoint 1 of tString, "Name")
Parameters:
unicodeCodepoint(string):
A Unicode codepoint, or an expression which evaulates to a Unicode
codepoint.
propertyName (enum):
The name of a supported UCD codepoint property. Examples of supported
properties, for a full list see http://www.unicode.org/versions/Unicode6.2.0/ch04.pdf
- "Name": Unique name for the codepoint
- "Numeric_Value": Numerical value, e.g. 4 for 4
- "Quotation_Mark": True if the codepoint is a quotation mark
- "Uppercase_Mapping": Uppercase equivalent of the codepoint
- "Lowercase": True if the codepoint is lower-case
Returns(string):
The codepointProperty returns the value of the UCD property for the
specified Unicode codepoint.
Description:
Use the <codepointProperty> function to retrieve a UCD property of a
Unicode codepoint.
The Unicode standard and the associated Unicode Character Database (UCD)
define a series of properties for each codepoint in the Unicode
standard. A number of these properties are used internally by the engine
during text processing but it is also possible to query these properties
directly using this function.
There are many properties available; please see the version 6.3.0 of the
Unicode standard, Chapter 4 and Section 5 of Unicode Technical Report
(TR)#44 for details on the names and values of properties. Property
names may be specified with either spaces or underscores and are not
case-sensitive.
>*Note:* This function is not intended for general-purpose use; please
> use functions such as <toUpper> or the <is|equals> operators instead.
References: nativeCharToNum (function), numToNativeChar (function),
toUpper (function), numToCodepoint (function), codepoint (keyword),
codepoints (keyword), equals (operator)