base64::ADD (private)

 base64::ADD x

Defined in packages/acs-tcl/tcl/tcllib-doc-procs.tcl

Append a character to the pure-Tcl Base64 encoder's caller-owned output state, inserting line breaks as needed. This version-dependent helper requires its encoder's local variables and is not a standalone API.

Parameters:
x (required)
Character to append.
See Also:

Partial Call Graph (max 5 caller/called nodes):
base64::encode base64::encode (public) base64::ADD base64::ADD base64::encode->base64::ADD

Testcases:
No testcase defined.
Source code:
    # The line length check is always done before appending so
    # that we don't get an extra newline if the output is a
    # multiple of $maxlen chars long.

    upvar 1 maxlen maxlen length length result result wrapchar wrapchar
    if {$maxlen && $length >= $maxlen} {
        append result $wrapchar
        set length 0
    }
    append result $x
    incr length
    return
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: