Path: utzoo!attcan!uunet!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!puddle!f2.n153.z1.fidonet.org!Ian.Green From: Ian.Green@f2.n153.z1.fidonet.org (Ian Green) Newsgroups: comp.lang.modula2 Subject: Strings in Modula-2 Message-ID: <4.2706EBB4@puddle.fidonet.org> Date: 29 Sep 90 16:45:59 GMT Sender: ufgate@puddle.fidonet.org (newsout1.26) Organization: FidoNet node 1:153/2 - Basic'ly Puppy, Surrey BC Lines: 22 Anybody got some decent code to do string operations in Modula-2. One procedure I need is a WORKING implementation to look for sub-strings in a string. Ieally something that will conform to the following definition PROCEDURE InString(source, target: ARRAY OF CHAR; VAR Pos: CARDINAL): BOOLEAN Also, any other high level function would be useful. If anyone wants code to do the Basic string operations, Right, Left, and Mid, I have implemented them so I can do some reasonable parsing of a line. Ian Green -- uucp: uunet!m2xenix!puddle!153!2!Ian.Green Internet: Ian.Green@f2.n153.z1.fidonet.org