Title: String handling additions for gmisc client Responsible: Darrell Schiebel (drs@nrao.edu) Originator: Wes Young (wyoung@nrao.edu) Exploders: aips2-lib aips2-ui aips2-workers Time Table: Date of issue: 1996 April 23 Comments due: 1996 April 29 Revised proposal: 1996 May 1 Final comments 1996 May 8 Decision date: 1996 May 10 => accepted without comment To add the following string functions to the gmisc client: string := sprintf(formating_string, arg...); record := sscanf(input_string, pattern_string, var_names=""); Note: var_names is a vector of strings which let you specify the record field names. Default is rec[1], rec[2], etc. int := contains(string, looking_for, regex=T, starting_at=1) int := find(string, looking_for, regex=T, starting_at=1) string := replace(string, looking_for, replacement, regex=T, starting_at=1, global=F); int := compare(string1, string2, case='ignore') string := toupper(string); string := tolower(string); Note: starting_at defaults to 1 for glish consistency. Expected impact Should help with string handling in glish. Probably a day or two worth of work implementing these functions in gmisc. Proposed Documentation changes Need to update the gmisc documentation.