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 226
Expand file tree
/
Copy pathcaseSensitive.lcdoc
More file actions
81 lines (63 loc) · 3.2 KB
/
caseSensitive.lcdoc
File metadata and controls
81 lines (63 loc) · 3.2 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
76
77
78
79
80
Name: caseSensitive
Type: property
Syntax: set the caseSensitive to {true | false}
Summary:
Specifies whether comparisons treat uppercase and lowercase letters as
different.
Introduced: 1.0
OS: mac, windows, linux, ios, android
Platforms: desktop, server, mobile
Example:
set the caseSensitive to true
Value (bool):
The <caseSensitive> is true or false.
By default, the <caseSensitive> <property> is set to false.
Description:
Use the <caseSensitive> <property> to control the behavior of text
comparisons.
The <caseSensitive> <property> <control|controls> the <behavior> of the
all <string> comparisons, including the comparison <operator|operators>
<=>, <>>, <<>, <>=>, <<=>, <is in>, <is among>,
<is not among>, and <contains>; the <command|commands> <filter>,
<find>, and <replace>; and the <function|functions> <offset>,
<itemOffset>, <wordOffset>, <lineOffset>, and <replaceText>.
If the <caseSensitive> <property> is set to true, all the <LiveCode>
terms listed above, as well as all other <string> comparisons, treat
uppercase and lowercase letters as different. For example, a search for
"Apple" does not find the <string> "apple" or "APPLE", and the
<expression> "APPLE" = "apple" <evaluate|evaluates> to false.
If the <caseSensitive> is false, uppercase letters are treated as equal
to their lowercase equivalents: a search for "Apple" finds strings such
as "apple" or "APPLE" without paying attention to the case of each
letter, and the expression "APPLE" = "apple" <evaluate|evaluates> to
true.
The <caseSensitive> also affects <custom property> names and <array>
<key> names. If the <caseSensitive> is true, <custom property> names
that differ only in the case of their letters are treated as different
<custom property|custom properties>. If the <caseSensitive> is false,
<custom property> names that differ only in letter case cannot be
distinguished from each other. The same is true for the <keys> of
<array> <element|elements>.
Since the <caseSensitive> is a local property, its <value> is <reset> to
false when the current <handler> finishes <execute|executing>. It
retains its <value> only for the current <handler>, and setting it in
one <handler> does not affect its <value> in other <handler|handlers> it
<call|calls>.
>*Important:* <message|Messages>, <object(glossary)> names, and
> <LiveCode> terms are never treated as <case-sensitive>, even if the
> <caseSensitive> is set to true.
References: replace (command), find (command), filter (command),
reset (command), wordOffset (function), offset (function),
value (function), lineOffset (function), replaceText (function),
keys (function), itemOffset (function), object (glossary),
element (glossary), call (glossary), property (glossary),
evaluate (glossary), behavior (glossary), operator (glossary),
case-sensitive (glossary), array (glossary), execute (glossary),
expression (glossary), command (glossary), function (glossary),
LiveCode (glossary), custom property (glossary), key (glossary),
message (glossary), handler (glossary),
string (keyword), = (operator), contains (operator), > (operator),
>= (operator), is among (operator), is not among (operator),
< (operator), <= (operator), is in (operator),
wholeMatches (property)
Tags: database