Editing Strings 0 You are not logged in. The rich text editor does not work with JavaScript switched off. Please either enable it in your browser options, or visit your preferences to switch to the old MediaWiki editor <p data-rte-fromparser="true"><img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22Needs%20Examples%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7BNeeds%20Examples%7D%7D%22%7D" data-rte-instance="620390-707497571572a283228664" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" /> </p><p data-rte-fromparser="true" data-rte-empty-lines-before="1"><b>Strings</b> are the most complex data structure currently in FiM++. Though this is likely to change in future <a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22versions%22%2C%22link%22%3A%22versions%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5Bversions%5D%5D%22%7D" data-rte-instance="620390-707497571572a283228664" href="/wiki/Versions" title="Versions">versions</a>, Sparkle has no provisions for anything more complex. A string is an <a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22array%22%2C%22link%22%3A%22array%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5Barray%5D%5D%22%7D" data-rte-instance="620390-707497571572a283228664" href="/wiki/Array?action=edit&redlink=1" class="new" title="Array (page does not exist)">array</a> of <a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22characters%22%2C%22link%22%3A%22characters%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5Bcharacters%5D%5D%22%7D" data-rte-instance="620390-707497571572a283228664" href="/wiki/Characters" title="Characters">characters</a>, which are, themselves, abstractions of <a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22numbers%22%2C%22link%22%3A%22numbers%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5Bnumbers%5D%5D%22%7D" data-rte-instance="620390-707497571572a283228664" href="/wiki/Numbers" title="Numbers">numbers</a>, which are, in turn, abstractions of arrays of <a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22Booleans%22%2C%22link%22%3A%22Booleans%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5BBooleans%5D%5D%22%7D" data-rte-instance="620390-707497571572a283228664" href="/wiki/Booleans" title="Booleans">Booleans</a>. A string is typically used for input and output text, and, when printed, is simply a concatenation of its characters with no delimiters. That is to say, the string <img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22code%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Bcode%7Cliteral%7C%5C%22Hello%20world%21%5C%22%7D%7D%22%7D" data-rte-instance="620390-707497571572a283228664" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" /> prints exactly as <tt data-rte-washtml="1">Hello world!</tt> </p> <h2 data-rte-spaces-before="1" data-rte-spaces-after="1" data-rte-empty-lines-before="1"> <a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22FDS%22%2C%22link%22%3A%22FDS%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5BFDS%5D%5D%22%7D" data-rte-instance="620390-707497571572a283228664" href="/wiki/FDS" title="FDS" class="mw-redirect">FDS</a> </h2> <p data-rte-fromparser="true">To represent a string in the source code, use the following syntax. Note that the prefix and suffix are <i>not</i> stored in memory. </p> <h3 data-rte-spaces-before="1" data-rte-spaces-after="1" data-rte-empty-lines-before="1"> Prefix </h3> <p data-rte-fromparser="true">Exactly one of: </p> <ul><li data-rte-spaces-before="1"><img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22code%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Bcode%7Cliteral%7C%5C%22%7D%7D%22%7D" data-rte-instance="620390-707497571572a283228664" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" /> </li><li data-rte-spaces-before="1"><img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22code%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Bcode%7Cliteral%7C%26rdquo%3B%7D%7D%22%7D" data-rte-instance="620390-707497571572a283228664" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" /> </li><li data-rte-spaces-before="1"><img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22code%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Bcode%7Cliteral%7C%26ldquo%3B%7D%7D%22%7D" data-rte-instance="620390-707497571572a283228664" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" /> </li></ul> <h3 data-rte-spaces-before="1" data-rte-spaces-after="1" data-rte-empty-lines-before="1"> Internal </h3> <p data-rte-fromparser="true">Any number of: </p> <ul><li data-rte-spaces-before="1"><img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22tag%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Btag%7Ccharacter%7D%7D%22%7D" data-rte-instance="620390-707497571572a283228664" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" /> </li></ul> <h4 data-rte-spaces-before="1" data-rte-spaces-after="1" data-rte-empty-lines-before="1"> Restrictions </h4> <p data-rte-fromparser="true">Almost any <a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22UTF-8%22%2C%22link%22%3A%22Wikipedia%3AUTF-8%22%2C%22wasblank%22%3Afalse%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5BWikipedia%3AUTF-8%7CUTF-8%5D%5D%22%7D" data-rte-instance="620390-707497571572a283228664" href="http://en.wikipedia.org/wiki/UTF-8" class="extiw" title="wikipedia:UTF-8">UTF-8</a> character can be used. However, there are a few exceptions in Sparkle. Of course, double-quotes cannot be used (<tt data-rte-washtml="1"><span data-rte-entity="quot">"</span></tt>, <tt data-rte-washtml="1"><span data-rte-entity="ldquo">“</span></tt>, and <tt data-rte-washtml="1"><span data-rte-entity="rdquo">”</span></tt>). However, despite this restriction, you can use any other Unicode character. This includes <a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22non-printable%20characters%22%2C%22link%22%3A%22Wikipedia%3ANon-printable%20character%22%2C%22wasblank%22%3Afalse%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5BWikipedia%3ANon-printable%20character%7Cnon-printable%20characters%5D%5D%22%7D" data-rte-instance="620390-707497571572a283228664" href="http://en.wikipedia.org/wiki/Non-printable_character" class="extiw" title="wikipedia:Non-printable character">non-printable characters</a> and <i>all</i> <a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22whitespace%22%2C%22link%22%3A%22whitespace%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5Bwhitespace%5D%5D%22%7D" data-rte-instance="620390-707497571572a283228664" href="/wiki/Whitespace" title="Whitespace">whitespace</a> characters (yes, even newline characters). <!-- RTE::{"spaces":0,"type":"LINE_BREAK"} -->Certain compilers may restrict this further, but Sparkle does not inherently do so. </p> <h3 data-rte-spaces-before="1" data-rte-spaces-after="1" data-rte-empty-lines-before="1"> Suffix </h3> <p data-rte-fromparser="true">Exactly one of: </p> <ul><li data-rte-spaces-before="1"><img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22code%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Bcode%7Cliteral%7C%5C%22%7D%7D%22%7D" data-rte-instance="620390-707497571572a283228664" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" /> </li><li data-rte-spaces-before="1"><img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22code%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Bcode%7Cliteral%7C%26rdquo%3B%7D%7D%22%7D" data-rte-instance="620390-707497571572a283228664" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" /> </li><li data-rte-spaces-before="1"><img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%22%22%2C%22title%22%3A%22code%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7Bcode%7Cliteral%7C%26ldquo%3B%7D%7D%22%7D" data-rte-instance="620390-707497571572a283228664" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" /> </li></ul> <p data-rte-fromparser="true"><br /> </p> <h2 data-rte-spaces-before="1" data-rte-spaces-after="1" data-rte-empty-lines-before="2"> See Also </h2> <ul><li data-rte-spaces-before="1"><a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22Literal%22%2C%22link%22%3A%22Literal%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5BLiteral%5D%5D%22%7D" data-rte-instance="620390-707497571572a283228664" href="/wiki/Literal" title="Literal">Literal</a> </li><li data-rte-spaces-before="1"><a data-rte-meta="%7B%22type%22%3A%22internal%22%2C%22text%22%3A%22Value%22%2C%22link%22%3A%22Value%22%2C%22wasblank%22%3Atrue%2C%22noforce%22%3Atrue%2C%22wikitext%22%3A%22%5B%5BValue%5D%5D%22%7D" data-rte-instance="620390-707497571572a283228664" href="/wiki/Value" title="Value">Value</a> </li></ul> <p data-rte-fromparser="true" data-rte-empty-lines-before="1"><img data-rte-meta="%7B%22type%22%3A%22double-brackets%22%2C%22lineStart%22%3A%221%22%2C%22title%22%3A%22Navbox%5C%2FPhrases%22%2C%22placeholder%22%3A1%2C%22wikitext%22%3A%22%7B%7BNavbox%5C%2FPhrases%7D%7D%22%7D" data-rte-instance="620390-707497571572a283228664" class="placeholder placeholder-double-brackets" src="data:image/gif;base64,R0lGODlhAQABAIABAAAAAP///yH5BAEAAAEALAAAAAABAAEAQAICTAEAOw%3D%3D" type="double-brackets" /> </p> Loading editor Below are some commonly used wiki markup codes. Simply click on what you want to use and it will appear in the edit box above. Insert: – — … ° ≈ ≠ ≤ ≥ ± − × ÷ ← → · § Sign your username: ~~~~ Wiki markup: {{}} | [] [[]] [[Category:]] #REDIRECT [[]] <s></s> <sup></sup> <sub></sub> <code></code> <blockquote></blockquote> <ref></ref> {{Reflist}} <references/> <includeonly></includeonly> <noinclude></noinclude> {{DEFAULTSORT:}} <nowiki></nowiki> <!-- --> <span class="plainlinks"></span> Symbols: ~ | ¡ ¿ † ‡ ↔ ↑ ↓ • ¶ # ¹ ² ³ ½ ⅓ ⅔ ¼ ¾ ⅛ ⅜ ⅝ ⅞ ∞ ‘ “ ’ ” «» ¤ ₳ ฿ ₵ ¢ ₡ ₢ $ ₫ ₯ € ₠ ₣ ƒ ₴ ₭ ₤ ℳ ₥ ₦ № ₧ ₰ £ ៛ ₨ ₪ ৳ ₮ ₩ ¥ ♠ ♣ ♥ ♦ View this template This field is a spam trap. DO NOT fill it in! Edit summary Preview Mobile Desktop Show changes