as is
without express or implied warranty. Export of this
software outside of the United States of America may require an
export license.
$Id: TextUtils.i3,v 1.2 2001-09-19 14:07:43 wagner Exp $
INTERFACEreplace every occurrence ofTextUtils ; IMPORT TextList, TextSet;
old
by new
in in
PROCEDURE Replace(in, old, new : TEXT) : TEXT; PROCEDURE ReplaceChar(in : TEXT; old, new : CHAR) : TEXT; PROCEDURE CountCharOccurences(in: TEXT; c: CHAR): CARDINAL;find first occurrence of sub in in
PROCEDURE FindSub(in, sub : TEXT; VAR pos : CARDINAL; start := 0) : BOOLEAN;have substr?
PROCEDURE HaveSub(in, sub : TEXT) : BOOLEAN; PROCEDURE HavePrefix(in, prefix: TEXT): BOOLEAN; PROCEDURE HaveSuffix(in, suffix: TEXT): BOOLEAN; PROCEDURE RemoveSuffix(in, suffix: TEXT): TEXT; PROCEDURE InfixFormat(sep : TEXT; list : TextList.T; ignoreNulls := FALSE) : TEXT; PROCEDURE Pluralize(noun : TEXT; count : INTEGER; ending := "s"; printNum := TRUE) : TEXT ; PROCEDURE ListToSet(list : TextList.T) : TextSet.T; PROCEDURE SetToList(set : TextSet.T) : TextList.T; END TextUtils.