Skip to content

Commit

Permalink
use new combined tests/commands/string.txt for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
pyroscope committed May 31, 2018
1 parent b27e2a1 commit 183ef43
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions docs/include-cmd-scripting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -577,11 +577,14 @@ String Functions
# rTorrent-PS 1.1+ only
string.len=«text» ≫ value (length)
**TODO**

Examples:

.. literalinclude:: rtorrent-ps/tests/commands/string.len.txt
.. literalinclude:: rtorrent-ps/tests/commands/string.txt
:language: console
:start-after: # Tests for
:start-at: # string.len
:end-before: # END


string.at
Expand All @@ -590,11 +593,14 @@ String Functions
# rTorrent-PS 1.1+ only
string.at=«text»[,«pos»] ≫ string
**TODO**

Examples:

.. literalinclude:: rtorrent-ps/tests/commands/string.at.txt
.. literalinclude:: rtorrent-ps/tests/commands/string.txt
:language: console
:start-after: # Tests for
:start-at: # string.at
:end-before: # END


string.substr
Expand All @@ -603,11 +609,14 @@ String Functions
# rTorrent-PS 1.1+ only
string.=«text»[,«pos»[,«count»]] ≫ string
**TODO**

Examples:

.. literalinclude:: rtorrent-ps/tests/commands/string.substr.txt
.. literalinclude:: rtorrent-ps/tests/commands/string.txt
:language: console
:start-after: # Tests for
:start-at: # string.substr
:end-before: # END


string.contains
Expand Down

0 comments on commit 183ef43

Please sign in to comment.