Skip to content

getfield implementation splits only on character and not string #70

Description

@axel3rd

As documented for getfield, it splits a string on a character or string.

Currently the TesTcl implementation does the split only on character because split is only on chars:

TesTcl/src/global.tcl

Lines 123 to 127 in bd55ca9

proc ::testcl::getfield { str delim ind } {
log::log debug "GLOBAL::getfield $str $delim $ind invoked"
return [lindex [split $str $delim] [expr {$ind - 1}]]
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions