Defined in
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
-
No testcase defined.
Source code:
regsub -all -- {[\x00-\x08\x0B-\x1E\x21-\x24\x3D\x40\x5B-\x5E\x60\x7B-\xFF]} $string {[format =%02X [scan "\\&" %c]]} string
set string [subst -novariables $string]
set mapChars [
list " \n" =20\n \t\n =09\n \n\.\n \=2E\n "\nFrom " "\n=46rom "]
if {$encoded_word} {
lappend mapChars { } _
}
set string [string map $mapChars $string]
if {$no_softbreak} {
set result $string
} else {
set result {}
foreach line [split $string \n] {
while {[string length $line] > 72} {
set chunk [string range $line 0 72]
if {[regexp -- (=|=.)$ $chunk dummy end]} {
set len [expr {72 - [string length $end]}]
set chunk [string range $line 0 $len]
incr len
set line [string range $line $len end]
} else {
set line [string range $line 73 end]
}
append result $chunk=\n
}
append result $line\n
}
set result [string range $result 0 end-1]
}
set lastChar [string index $result end]
if {$lastChar eq { }} {
set result [string replace $result end end =20]
} elseif {$lastChar eq "\t"} {
set result [string replace $result end end =09]
}
return $result
XQL Not present:Generic, PostgreSQL, Oracle