string: append, drop, in, prefix, splitl, splitr, splitstrl, splitstrr, take, toint, tolower, toupper - string operations — Inferno 1ed
string: append, drop, in, prefix, splitl, splitr, splitstrl, splitstrr, take, toint, tolower, toupper - string operations
include "string.m"; str:= load String String->PATH; append: fn(s: string, l: list of string): list of string; drop: fn(s, cl: string) : string; in: fn(c: int, cl: string) : int; prefix: fn(pre, s: string) : int; splitl: fn(s, cl: string) : (string, string); splitr: fn(s, cl: string) : (string, string); splitstrl: fn(s, t: string) : (string, string); splitstrr: fn(s, t: string) : (string, string); take: fn(s, cl: string) : string; toint: fn(s: string, base: int) : (int, string); tolower: fn(s: string) : string; toupper: fn(s: string) : string;
Description
The cl argument to some of these functions is a character class in which a minus sign (-) between any two characters indicates a range and a circumflex (^) in the first position means not in the class. Examples of strings that represent character classes are "a-zA-Z" and "^acg-mr".
infernosupport@lucent.com Copyright © 1996,Lucent Technologies, Inc. All rights reserved.