forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodeunitOffset.xml
More file actions
executable file
·99 lines (83 loc) · 3.42 KB
/
Copy pathcodeunitOffset.xml
File metadata and controls
executable file
·99 lines (83 loc) · 3.42 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<doc>
<legacy_id></legacy_id>
<name>codeunitOffset</name>
<type>function</type>
<syntax>
<example>codeunitOffset(stringToFind,stringToSearch[,codeunitsToSkip])</example>
<example></example>
<example></example>
<example></example>
<example></example>
</syntax>
<synonyms>
</synonyms>
<summary>Returns the number of codeunits between the beginning of a value and an occurrence of a specified string.</summary>
<examples>
<example><p>condeunitOffset(tCodeUnit, "This is the string to search")</p></example>
<example><p></p></example>
<example><p></p></example>
<example><p></p></example>
<example><p></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>
<category>Text and Data Processing</category>
<category></category>
<category></category>
<category></category>
<category></category>
</classification>
<references>
<function tag="wordOffset">wordOffset function</function>
<function tag="offset">offset function</function>
<function tag="paragraphOffset">paragraphOffset function</function>
<function tag="truewordOffset">truewordOffset function</function>
<function tag="tokenOffset">tokenOffset function</function>
<function tag="codepointOffset">codepointOffset function</function>
<function tag="sentenceOffset">sentenceOffset function</function>
<function tag="byteOffset">byteOffset function</function>
<property tag="wholeMatches">wholeMatches property</property>
<keyword tag="codeunit">codeunit keyword</keyword>
</references>
<description>
<overview>Use the <b>codeunitOffset</b> function to find which sentence a string occurs in.</overview>
<parameters>
<parameter>
<name>stringToFind</name>
<description>The stringToFind is a string or an expression that evaluates to a string.</description>
</parameter>
<parameter>
<name>stringToSearch</name>
<description>The stringToSearch is a string or an expression that evaluates to a string.</description>
</parameter>
<parameter>
<name>codeunitsToSkip</name>
<description>The codeunitsToSkip is a non-negative integer. If you don't specify how many codeunitsToSkip, the codeunitOffset function does not skip any codeunits.</description>
</parameter> </parameters>
<value>The <b>codeunitOffset</b> function returns a non-negative integer.</value>
<comments><p>The value returned by the <b>codeunitOffset</b> function is the number of the codeunit where the <i>stringToFind</i> appears in <i>stringToSearch</i>. If the <i>stringToFind</i> is not in <i>stringToSearch</i>, the <b>codeunitOffset</b> function returns zero. If the <i>stringToFind</i> is more than one codeunit, the <b>codeunitOffset</b> function always returns zero, even if the <i>stringToFind</i> appears in the <i>stringToSearch</i>.</p><p></p><p>If you specify how <i>manycodeunitsToSkip</i>, the <b>codeunitOffset</b> function skips the specified number of sentences in the <i>stringToSearch</i>. The value returned is relative to this starting point instead of the beginning of the <i>stringToSearch</i>.</p></comments>
</description>
</doc>