Mercurial Hosting > luan
comparison website/src/manual.html.luan @ 1717:c637a2a1023d
add String.replace
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Mon, 25 Jul 2022 11:16:53 -0600 |
| parents | b82767112d8e |
| children | 5603ee8e2a71 |
comparison
equal
deleted
inserted
replaced
| 1716:b82767112d8e | 1717:c637a2a1023d |
|---|---|
| 2682 Returns a string that is the concatenation of <code>n</code> copies of | 2682 Returns a string that is the concatenation of <code>n</code> copies of |
| 2683 the string <code>s</code> separated by the string <code>sep</code>. | 2683 the string <code>s</code> separated by the string <code>sep</code>. |
| 2684 The default value for <code>sep</code> is the empty string | 2684 The default value for <code>sep</code> is the empty string |
| 2685 (that is, no separator). | 2685 (that is, no separator). |
| 2686 Returns the empty string if <code>n</code> is not positive. | 2686 Returns the empty string if <code>n</code> is not positive. |
| 2687 </p> | |
| 2688 <% | |
| 2689 end | |
| 2690 } | |
| 2691 ["String.replace"] = { | |
| 2692 title = "<code>String.replace (s, target, replacement)</code>" | |
| 2693 content = function() | |
| 2694 %> | |
| 2695 <p> | |
| 2696 Returns a string where each substring <code>target</code> in <code>s</code> is replaced by <code>replacement</code>. | |
| 2687 </p> | 2697 </p> |
| 2688 <% | 2698 <% |
| 2689 end | 2699 end |
| 2690 } | 2700 } |
| 2691 ["String.reverse"] = { | 2701 ["String.reverse"] = { |
