mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-01 12:40:36 +00:00
Replaces some more wiki garbage before rendering help.
This commit is contained in:
parent
765472a34d
commit
4411386ac6
|
@ -96,10 +96,62 @@ Fixed length strings must be defined in a {{KW|DIM}} statement, {{KW|SUB}} or {{
|
|||
|
||||
==Data type limits==
|
||||
The following table lists the numerical and string data types, their type suffix symbol, and the range of the values they can represent:
|
||||
{{DataTypeTable}}
|
||||
|
||||
|
||||
==References==
|
||||
'''Numerical types'''
|
||||
|
||||
{| class="wikitable"
|
||||
! Type Name !! Type suffix symbol !! Minimum value !! Maximum value !! Size in Bytes
|
||||
|-
|
||||
| _BIT || ` || -1 || 0 || 1/8
|
||||
|-
|
||||
| _BIT|_BIT * n || `n || -128 || 127 || n/8
|
||||
|-
|
||||
| _UNSIGNED _BIT || ~` || 0 || 1 || 1/8
|
||||
|-
|
||||
| _BYTE || %% || -128 || 127 || 1
|
||||
|-
|
||||
| _UNSIGNED _BYTE || ~%% || 0 || 255 || 1
|
||||
|-
|
||||
| INTEGER || % || -32,768 || 32,767 || 2
|
||||
|-
|
||||
| _UNSIGNED INTEGER || ~% || 0 || 65,535 || 2
|
||||
|-
|
||||
| LONG || & || -2,147,483,648 || 2,147,483,647 || 4
|
||||
|-
|
||||
| _UNSIGNED LONG || ~& || 0 || 4,294,967,295 || 4
|
||||
|-
|
||||
| _INTEGER64 || && || -9,223,372,036,854,775,808 || 9,223,372,036,854,775,807 || 8
|
||||
|-
|
||||
| _UNSIGNED _INTEGER64 || ~&& || 0 || 18,446,744,073,709,551,615 || 8
|
||||
|-
|
||||
| SINGLE || ! or none || -2.802597E-45 || +3.402823E+38 || 4
|
||||
|-
|
||||
| DOUBLE || # || -4.490656458412465E-324 || +1.797693134862310E+308 || 8
|
||||
|-
|
||||
| _FLOAT || ## || -1.18E−4932 || +1.18E+4932 || 32(10 used)
|
||||
|-
|
||||
| _OFFSET || %& || -9,223,372,036,854,775,808 || 9,223,372,036,854,775,807 || Use LEN
|
||||
|-
|
||||
| _UNSIGNED _OFFSET || ~%& || 0 || 18,446,744,073,709,551,615 || Use LEN
|
||||
|-
|
||||
| _MEM || none || combined memory variable type || N/A || Use LEN
|
||||
|}
|
||||
|
||||
|
||||
:''Note: For the floating-point numeric types [[SINGLE]] (default when not assigned), [[DOUBLE]] and [[_FLOAT]], the minimum values represent the smallest values closest to zero, while the maximum values represent the largest values closest to ±infinity. OFFSET dot values are used as a part of the [[_MEM]] variable type in QB64 to return or set the position in memory.''
|
||||
|
||||
|
||||
'''String text type'''
|
||||
{| class="wikitable"
|
||||
! Type Name !! Type suffix symbol !! Minimum length !! Maximum length || Size in Bytes
|
||||
|-
|
||||
| STRING || $ || 0 || 2,147,483,647 || Use LEN
|
||||
|-
|
||||
| STRING|STRING * ''n'' || $''n'' || 1 || 2,147,483,647 || n
|
||||
|}
|
||||
|
||||
|
||||
<center>''Note: For the fixed-length string type [[STRING|STRING * ''n'']], where ''n'' is an integer length value from 1 (one) to 2,147,483,647.</center>
|
||||
|
||||
{{PageNavigation}}
|
||||
|
|
|
@ -282,6 +282,23 @@ SUB WikiParse (a$)
|
|||
c$(ii) = SPACE$(ii)
|
||||
NEXT
|
||||
|
||||
a$ = StrReplace$(a$, "<", "<")
|
||||
a$ = StrReplace$(a$, ">", ">")
|
||||
a$ = StrReplace$(a$, CHR$(194) + CHR$(160), "")
|
||||
a$ = StrReplace$(a$, "&", "&")
|
||||
a$ = StrReplace$(a$, CHR$(226) + CHR$(136) + CHR$(146), "-")
|
||||
a$ = StrReplace$(a$, "<nowiki>", "")
|
||||
a$ = StrReplace$(a$, "</nowiki>", "")
|
||||
a$ = StrReplace$(a$, "<center>", "")
|
||||
a$ = StrReplace$(a$, "</center>", "")
|
||||
a$ = StrReplace$(a$, "</span>", "")
|
||||
|
||||
i = INSTR(a$, "<span ")
|
||||
DO WHILE i
|
||||
a$ = LEFT$(a$, i - 1) + MID$(a$, INSTR(i + 1, a$, ">") + 1)
|
||||
i = INSTR(a$, "<span ")
|
||||
LOOP
|
||||
|
||||
n = LEN(a$)
|
||||
i = 1
|
||||
DO WHILE i <= n
|
||||
|
@ -617,7 +634,6 @@ SUB WikiParse (a$)
|
|||
REDIM _PRESERVE tableCol(1 TO UBOUND(tableCol) + 99) AS INTEGER
|
||||
END IF
|
||||
IF tableCol(thisCol) < LEN(_TRIM$(p$)) + 2 THEN tableCol(thisCol) = LEN(_TRIM$(p$)) + 2
|
||||
p$ = StrReplace$(p$, "<", "<")
|
||||
tableRow(totalRows) = tableRow(totalRows) + _TRIM$(p$) + CHR$(0)
|
||||
END IF
|
||||
LOOP WHILE j < LEN(l$)
|
||||
|
|
Loading…
Reference in a new issue