Skip to content

Commit e3fd518

Browse files
committed
LCB: Use "Number" instead of "number".
1 parent f357b2b commit e3fd518

File tree

16 files changed

+161
-161
lines changed

16 files changed

+161
-161
lines changed

libscript/src/arithmetic.mlc

Lines changed: 41 additions & 41 deletions
Large diffs are not rendered by default.

libscript/src/array.mlc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Example:
125125
put 2 into tArray["key2"]
126126
put 3 into tArray["key3"]
127127

128-
variable tVar as number
128+
variable tVar as Number
129129
put the number of elements in tArray into tVar -- tVar contains 3
130130

131131
Description:
@@ -270,7 +270,7 @@ Summary: Designates the array with no elements.
270270

271271
Example:
272272
variable tVar as array
273-
variable tCount as number
273+
variable tCount as Number
274274
put the empty array into tVar
275275
put the number of elements in tVar into tCount -- tCount is 0
276276

@@ -299,7 +299,7 @@ Example:
299299
put 2 into tArray["key2"]
300300
put 3 into tArray["key3"]
301301

302-
variable tSum as number
302+
variable tSum as Number
303303
put 0 into tSum
304304

305305
variable tElement

libscript/src/binary.mlc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ Summary: Designates data of length 0.
189189

190190
Example:
191191
variable tVar as data
192-
variable tCount as number
192+
variable tCount as Number
193193
put the empty data into tVar
194194
put the number of bytes in tVar into tCount -- tCount is 0
195195

libscript/src/bitwise.mlc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Right: An expression which evaluates to an integer.
4040
Returns: The integer whose binary representation is the result of the bitwise AND operation.
4141

4242
Example:
43-
variable tVar as number
43+
variable tVar as Number
4444
put 3 bitwise and 6 into tVar -- tVar contains 2
4545

4646
Description:
@@ -66,7 +66,7 @@ Returns: The integer whose binary representation is the result of the bitwise O
6666

6767

6868
Example:
69-
variable tVar as number
69+
variable tVar as Number
7070
put 3 bitwise or 6 into tVar -- tVar contains 7
7171

7272
Description:
@@ -90,7 +90,7 @@ Right: An expression which evaluates to an integer.
9090
Returns: The integer whose binary representation is the result of the bitwise XOR operation.
9191

9292
Example:
93-
variable tVar as number
93+
variable tVar as Number
9494
put 3 bitwise xor 6 into tVar -- tVar contains 5
9595

9696
Description:
@@ -113,7 +113,7 @@ Operand: An expression which evaluates to an integer.
113113
Returns: The integer whose binary representation is the result of the bitwise NOT operation.
114114

115115
Example:
116-
variable tVar as number
116+
variable tVar as Number
117117
put bitwise not -5 into tVar -- tVar contains 4
118118

119119
Description:

libscript/src/char.mlc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Returns: The number of chars in <Target>.
6969

7070
Example:
7171

72-
variable tVar as number
72+
variable tVar as Number
7373
variable tSource as String
7474
put "hello" into tString
7575
put the number of chars in tString into tVar
@@ -335,11 +335,11 @@ Target: An expression which evaluates to a string.
335335
Returns: Returns the offset of <Needle> in <Target>.
336336

337337
Example:
338-
variable tVar as number
338+
variable tVar as Number
339339
put the first offset of chars "art" in "cartoon" into tVar -- tVar contains 2
340340

341341
Example:
342-
variable tVar as number
342+
variable tVar as Number
343343
variable tFilePath as String
344344
put "/Users/user/Documents/file.txt" into tFilePath
345345
put the last offset of "/" in tFilePath into tVar
@@ -370,7 +370,7 @@ After: An expression which evaluates to a valid integer index of Ta
370370
Returns: Returns the offset of <Needle> after <After> in <Target>.
371371

372372
Example:
373-
variable tVar as number
373+
variable tVar as Number
374374
put the offset of chars "nse" after 4 in "nonsense" into tVar -- tVar contains 2
375375

376376
Description:
@@ -396,8 +396,8 @@ Before: An expression which evaluates to a valid integer index of T
396396
Returns: Returns the offset of <Needle> before <Before> in <Target>.
397397

398398
Example:
399-
variable tVar as number
400-
variable tLastDot as number
399+
variable tVar as Number
400+
variable tLastDot as Number
401401
variable tAddress as String
402402
variable tTLD as String
403403
put "http://www.livecode.com/index.html" into tAddress

libscript/src/codeunit.mlc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Returns: The number of codeunits in <Target>.
6767

6868
Example:
6969

70-
variable tVar as number
70+
variable tVar as Number
7171
variable tSource as String
7272
put "hello" into tString
7373
put the number of codeunits in tString into tVar
@@ -333,11 +333,11 @@ Target: An expression which evaluates to a string.
333333
Returns: Returns the offset of <Needle> in <Target>.
334334

335335
Example:
336-
variable tVar as number
336+
variable tVar as Number
337337
put the first offset of codeunits "art" in "cartoon" into tVar -- tVar contains 2
338338

339339
Example:
340-
variable tVar as number
340+
variable tVar as Number
341341
variable tFilePath as String
342342
put "/Users/user/Documents/file.txt" into tFilePath
343343
put the last offset of "/" in tFilePath into tVar
@@ -368,7 +368,7 @@ After: An expression which evaluates to a valid integer index of Ta
368368
Returns: Returns the offset of <Needle> after <After> in <Target>.
369369

370370
Example:
371-
variable tVar as number
371+
variable tVar as Number
372372
put the offset of codeunits "nse" after 4 in "nonsense" into tVar -- tVar contains 2
373373

374374
Description:
@@ -394,8 +394,8 @@ Before: An expression which evaluates to a valid integer index of T
394394
Returns: Returns the offset of <Needle> before <Before> in <Target>.
395395

396396
Example:
397-
variable tVar as number
398-
variable tLastDot as number
397+
variable tVar as Number
398+
variable tLastDot as Number
399399
variable tAddress as String
400400
variable tTLD as String
401401
put "http://www.livecode.com/index.html" into tAddress

libscript/src/date.mlc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Example:
3131
variable tDateTime as list
3232
put the local time into tDateTime
3333

34-
variable tDayOfMonth as number
34+
variable tDayOfMonth as Number
3535
put tDateTime[3] into tDayOfMonth
3636

3737
Description:

libscript/src/list.mlc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Example:
191191
Example:
192192
variable tList as list
193193
put [1,2,3] into tList
194-
variable tNum as number
194+
variable tNum as Number
195195
pop front of tList into tNum -- tNum is 1, tList is [2,3]
196196

197197
Description:
@@ -218,7 +218,7 @@ Returns: The number of elements in the list <Target>.
218218
Example:
219219
variable tVar as list
220220
put [1,2,3,4,5] into tVar
221-
variable tNum as number
221+
variable tNum as Number
222222
put the number of elements in tVar into tNum -- tNum is 5
223223

224224
Description:
@@ -428,7 +428,7 @@ Example:
428428
put [1,2,3] into tVar
429429
put "A" into element 1 of tVar -- tVar is ["A",2,3]
430430

431-
variable tNum as number
431+
variable tNum as Number
432432
put element 2 of tVar into tNum -- tNum is 2
433433

434434
Description:
@@ -458,7 +458,7 @@ Example:
458458
put [1,2,3] into tVar
459459
put "A" into tVar[1] -- tVar is ["A",2,3]
460460

461-
variable tNum as number
461+
variable tNum as Number
462462
put tVar[2] into tNum -- tNum is 2
463463

464464
Description:
@@ -645,7 +645,7 @@ Example:
645645
variable tVar as list
646646
put the empty list into tVar
647647

648-
variable tCount as number
648+
variable tCount as Number
649649
put 1 into tCount
650650
repeat 3 times
651651
push tCount onto tVar
@@ -688,7 +688,7 @@ Example:
688688
variable tVar as list
689689
put the empty list into tVar
690690

691-
variable tCount as number
691+
variable tCount as Number
692692
put 1 into tCount
693693
repeat 3 times
694694
push tCount onto tVar
@@ -728,7 +728,7 @@ Example:
728728
variable tVar as list
729729
put the empty list into tVar
730730

731-
variable tCount as number
731+
variable tCount as Number
732732
put 2 into tCount
733733
repeat 3 times
734734
push tCount onto tVar
@@ -769,7 +769,7 @@ Example:
769769
variable tVar as list
770770
put the empty list into tVar
771771

772-
variable tCount as number
772+
variable tCount as Number
773773
put 2 into tCount
774774
repeat 3 times
775775
push tCount onto tVar
@@ -807,7 +807,7 @@ Summary: Designates the list of length zero.
807807

808808
Example:
809809
variable tVar as list
810-
variable tCount as number
810+
variable tCount as Number
811811
put the empty list into tVar
812812
put the number of elements in tVar into tCount -- tCount is 0
813813

libscript/src/math-foundation.mlc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ module com.livecode.mathfoundation
2323
use com.livecode.foreign
2424

2525
public foreign handler MCMathFoundationExecRoundRealToNearest(inout Target as CDouble) as undefined binds to "<builtin>"
26-
public foreign handler MCMathFoundationExecRoundNumberToNearest(inout Target as number) as undefined binds to "<builtin>"
26+
public foreign handler MCMathFoundationExecRoundNumberToNearest(inout Target as Number) as undefined binds to "<builtin>"
2727

2828
public foreign handler MCMathFoundationEvalRoundedRealToNearest(in Target as CDouble, out Value as CDouble) as undefined binds to "<builtin>"
29-
public foreign handler MCMathFoundationEvalRoundedNumberToNearest(in Target as number, out Value as number) as undefined binds to "<builtin>"
29+
public foreign handler MCMathFoundationEvalRoundedNumberToNearest(in Target as Number, out Value as Number) as undefined binds to "<builtin>"
3030

3131
public foreign handler MCMathFoundationEvalFloorReal(in Target as CDouble, out Value as CDouble) as undefined binds to "<builtin>"
32-
public foreign handler MCMathFoundationEvalFloorNumber(in Target as number, out Value as number) as undefined binds to "<builtin>"
32+
public foreign handler MCMathFoundationEvalFloorNumber(in Target as Number, out Value as Number) as undefined binds to "<builtin>"
3333
public foreign handler MCMathFoundationEvalCeilingReal(in Target as CDouble, out Value as CDouble) as undefined binds to "<builtin>"
34-
public foreign handler MCMathFoundationEvalCeilingNumber(in Target as number, out Value as number) as undefined binds to "<builtin>"
34+
public foreign handler MCMathFoundationEvalCeilingNumber(in Target as Number, out Value as Number) as undefined binds to "<builtin>"
3535

3636
public foreign handler MCMathFoundationEvalPi(out Value as CDouble) as undefined binds to "<builtin>"
3737
--
@@ -42,7 +42,7 @@ public foreign handler MCMathFoundationEvalPi(out Value as CDouble) as undefined
4242
Summary: The constant pi
4343

4444
Example:
45-
variable tVar as number
45+
variable tVar as Number
4646
put the cos of pi into tVar -- tVar contains -1
4747

4848
Description:
@@ -64,7 +64,7 @@ Summary: Rounds <Target> to the nearest integer.
6464
Target: An expression that evaluates to a numeric container.
6565

6666
Example:
67-
variable tNum as number
67+
variable tNum as Number
6868
put -5.5 into tNum
6969
round tNum -- tNum contains -6
7070

@@ -87,8 +87,8 @@ Target: An expression that evaluates to a number.
8787
Returns: The rounded value of <Target>
8888

8989
Example:
90-
variable tNum as number
91-
variable tRounded as number
90+
variable tNum as Number
91+
variable tRounded as Number
9292
put -5.5 into tNum
9393
put the rounded of tNum into tRounded -- tRounded contains -6
9494

@@ -113,8 +113,8 @@ Target: An expression that evaluates to a number.
113113
Returns: The floor of <Target>
114114

115115
Example:
116-
variable tNum as number
117-
variable tFloor as number
116+
variable tNum as Number
117+
variable tFloor as Number
118118
put -5.5 into tNum
119119
put the floor of tNum into tFloor -- tFloor contains -6
120120

@@ -138,8 +138,8 @@ Target: An expression that evaluates to a number.
138138
Returns: The ceiling of <Target>
139139

140140
Example:
141-
variable tNum as number
142-
variable tCeiling as number
141+
variable tNum as Number
142+
variable tCeiling as Number
143143
put -5.5 into tNum
144144
put the ceiling of tNum into tCeiling -- tCeiling contains -5
145145

0 commit comments

Comments
 (0)