</code></pre></div></div> <p>Returns ASCII code for the first character in given string.</p><hr /> <h3 class="d-inline-block"id="get_string_pointer"><ahref="#get_string_pointer"class="anchor-heading"aria-labelledby="get_string_pointer"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>get_string_pointer</strong></h3><pclass="label label-green">sfall.h</p><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">int</span><spanclass="n">get_string_pointer</span><spanclass="p">(</span><spanclass="n">string</span><spanclass="n">text</span><spanclass="p">)</span>
</code></pre></div></div><p>Returns a pointer to a string variable or to a text.</p><hr/><h3class="d-inline-block"id="string_format"><ahref="#string_format"class="anchor-heading"aria-labelledby="string_format"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>string_format</strong></h3><pclass="label label-green">sfall.h</p><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="n">string</span><spanclass="n">string_format</span><spanclass="p">(</span><spanclass="n">string</span><spanclass="n">format</span><spanclass="p">,</span><spanclass="n">any</span><spanclass="n">val1</span><spanclass="p">,</span><spanclass="n">any</span><spanclass="n">val2</span><spanclass="p">,</span><spanclass="p">...)</span>
</code></pre></div></div><p>Formats given value using standard syntax of C printf function (google “printf” for format details). However it is limited to formatting up to 4 values.</p><ul><li>formatting is only supported for %s and %d, and the format string is limited to 1024 characters</li></ul><hr/><h3id="string_split"><ahref="#string_split"class="anchor-heading"aria-labelledby="string_split"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>string_split</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="n">array</span><spanclass="n">string_split</span><spanclass="p">(</span><spanclass="n">string</span><spanclass="p">,</span><spanclass="n">split</span><spanclass="p">)</span>
</code></pre></div></div><p>Takes a string and a seperator, searches the string for all instances of the seperator, and returns a temp array filled with the pieces of the string split at each instance. If you give an empty string as the seperator, the string is split into individual characters. You can use this to search for a substring in a string like this: <codeclass="language-plaintext highlighter-rouge">strlen(get_array(string_split(haystack, needle), 0))</code></p><hr/><h3id="string_to_case"><ahref="#string_to_case"class="anchor-heading"aria-labelledby="string_to_case"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>string_to_case</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="n">string</span><spanclass="n">sfall_func2</span><spanclass="p">(</span><spanclass="s">"string_to_case"</span><spanclass="p">,</span><spanclass="n">string</span><spanclass="n">text</span><spanclass="p">,</span><spanclass="kt">int</span><spanclass="n">toCase</span><spanclass="p">)</span>
</code></pre></div></div><p>Converts all letters in the given string to the specified case.</p><divclass="language-plaintext highlighter-rouge"><divclass="highlight"><preclass="highlight"><code>toCase: 0 - lowercase, 1 - uppercase
</code></pre></div></div><p>NOTE: this function works only for English letters of A-Z/a-z.</p><hr/><h3id="strlen"><ahref="#strlen"class="anchor-heading"aria-labelledby="strlen"><svgviewBox="0 0 16 16"aria-hidden="true"><usexlink:href="#svg-link"></use></svg></a><strong>strlen</strong></h3><divclass="language-c++ highlighter-rouge"><divclass="highlight"><preclass="highlight"><code><spanclass="kt">int</span><spanclass="n">strlen</span><spanclass="p">(</span><spanclass="n">string</span><spanclass="n">text</span><spanclass="p">)</span>
</code></pre></div></div><p>Cuts a substring from a string starting at “start” up to “length” characters. The first character position is 0 (zero).</p><ul><li>If start is negative - it indicates starting position from the end of the string (for example <codeclass="language-plaintext highlighter-rouge">substr("test", -2, 2)</code> will return last 2 charactes: “st”).</li><li>If length is negative - it means so many characters will be omitted from the end of string (example: <codeclass="language-plaintext highlighter-rouge">substr("test", 0, -2)</code> will return string without last 2 characters: “te”).</li><li>If length is zero - it will return a string from the starting position to the end of the string <strong>New behavior</strong> for sfall 4.2.2/3.8.22</li></ul></div></div><divclass="search-overlay"></div></div></body></html>