diff --git a/reference/strings/functions/str-decrement.xml b/reference/strings/functions/str-decrement.xml new file mode 100644 index 000000000000..07933ae75c3d --- /dev/null +++ b/reference/strings/functions/str-decrement.xml @@ -0,0 +1,136 @@ + + + + str_decrement + Decrement an alphanumeric string + + + + &reftitle.description; + + stringstr_decrement + stringstring + + + Returns the decremented alphanumeric ASCII + string. + + + + + &reftitle.parameters; + + + + string + + + The input string. + + + + + + + + + &reftitle.returnvalues; + + Returns the decremented alphanumeric ASCII string. + + + + + &reftitle.errors; + + A ValueError is thrown if + string is empty. + + + A ValueError is thrown if + string is not an alphanumeric + ASCII string. + + + A ValueError is thrown if + string cannot be decremented. + For example, "A" or "0". + + + + + &reftitle.examples; + + + Basic <function>str_decrement</function> example + + +]]> + + &example.outputs; + + + + + + + + <function>str_decrement</function> example with a carry + + +]]> + + &example.outputs; + + + + + + + + + &reftitle.seealso; + + + str_increment + + + + + + diff --git a/reference/strings/functions/str-increment.xml b/reference/strings/functions/str-increment.xml new file mode 100644 index 000000000000..af5049302f12 --- /dev/null +++ b/reference/strings/functions/str-increment.xml @@ -0,0 +1,131 @@ + + + + str_increment + Increment an alphanumeric string + + + + &reftitle.description; + + stringstr_increment + stringstring + + + Returns the incremented alphanumeric ASCII + string. + + + + + &reftitle.parameters; + + + + string + + + The input string. + + + + + + + + + &reftitle.returnvalues; + + Returns the incremented alphanumeric ASCII string. + + + + + &reftitle.errors; + + A ValueError is thrown if + string is empty. + + + A ValueError is thrown if + string is not an alphanumeric + ASCII string. + + + + + &reftitle.examples; + + + Basic <function>str_increment</function> example + + +]]> + + &example.outputs; + + + + + + + + <function>str_increment</function> example with a carry + + +]]> + + &example.outputs; + + + + + + + + + &reftitle.seealso; + + + str_decrement + + + + + + diff --git a/reference/strings/versions.xml b/reference/strings/versions.xml index bf165edcdfe2..469c11f82b7f 100644 --- a/reference/strings/versions.xml +++ b/reference/strings/versions.xml @@ -56,9 +56,11 @@ + +