DISCLOSE

SmallBASIC syntax groups: 


String function DISCLOSE


10
20  DISCLOSE (str[, pairs [, ignore-pairs]])
30
Discloses a string.


See examples


If there is insufficient information on this page and you wish learn more about DISCLOSE, please send an email to smallbasic@gmail.com. You can help to improve information about DISCLOSE by submitting an article using the comments link below. Note, an offline language reference text file is now avialable – see the Download section.

Default pairs and ignore pairs

First non white-space character Check Ignore
“” ‘’
‘’ “”
( () “”’‘
[ [] “”’‘
{ {} “”’‘
< <> “”’‘
“” ‘’
s = "abc (abc)"
? s; tab(26); disclose(s, "()")
' prints abc
s = "abc (a(bc))"
? s; tab(26); disclose(s, "()"); tab(40); disclose(disclose(s, "()"), "()")
' prints a(bc), bc
s = "abc (a='(bc)')"
? s; tab(26); disclose(s, "()", "''"); tab(40); &
    disclose(disclose(s, "()", "''"), "()", "''")
' prints a='(bc)', nothing