🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #1204

Strings in Modula-2

#1204
From: Ian Green
Date: Sat, 29 Sep 1990 16:45
22 lines
1069 bytes
   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
Technical Details
Message-ID: <4.2706EBB4@puddle.fidonet.org>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!puddle!f2.n153.z1.fidonet.org!Ian.Green

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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