comparison website/src/manual.html.luan @ 1881:c7c7d62f8c62

swing
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 07 Apr 2025 21:14:53 -0600
parents 50e570b598b2
children f8ca4a147ac9
comparison
equal deleted inserted replaced
1880:4852d35c52ae 1881:c7c7d62f8c62
2583 content = function() 2583 content = function()
2584 %> 2584 %>
2585 <p> 2585 <p>
2586 Looks for the first substring 2586 Looks for the first substring
2587 <code>s2</code> in the string <code>s</code>. 2587 <code>s2</code> in the string <code>s</code>.
2588 If it finds a match, then <code>find</code> returns the indices of&nbsp;<code>s</code> 2588 If it finds a match, then <code>find</code> returns the index of <code>s</code>
2589 where this occurrence starts and ends; 2589 where this occurrence starts;
2590 otherwise, it returns <b>nil</b>. 2590 otherwise, it returns <b>nil</b>.
2591 A third, optional numerical argument <code>init</code> specifies 2591 A third, optional numerical argument <code>init</code> specifies
2592 where to start the search; 2592 where to start the search;
2593 its default value is&nbsp;1 and can be negative. 2593 its default value is 1 and can be negative.
2594 </p> 2594 </p>
2595 2595 <%
2596 <p> 2596 end
2597 If the pattern has captures, 2597 }
2598 then in a successful match 2598 ["String.find_reverse"] = {
2599 the captured values are also returned, 2599 title = "String.find_reverse (s, s2 [, init])"
2600 after the two indices. 2600 content = function()
2601 %>
2602 <p>
2603 Looks for the last substring
2604 <code>s2</code> in the string <code>s</code>.
2605 If it finds a match, then <code>find</code> returns the index of <code>s</code>
2606 where this occurrence starts;
2607 otherwise, it returns <b>nil</b>.
2608 A third, optional numerical argument <code>init</code> specifies
2609 where to start the search;
2610 its default value is -1.
2601 </p> 2611 </p>
2602 <% 2612 <%
2603 end 2613 end
2604 } 2614 }
2605 ["String.format"] = { 2615 ["String.format"] = {