]> git.mxchange.org Git - simgear.git/commitdiff
Bernie Bright:
authorcurt <curt>
Fri, 10 May 2002 13:32:44 +0000 (13:32 +0000)
committercurt <curt>
Fri, 10 May 2002 13:32:44 +0000 (13:32 +0000)
Here is a total rewrite of the strutils package.  I've reimplemented the
trimleft(), trimright() and trim() functions as lstrip(), rstrip() and
strip() respectively.  Additionally I've added a split() function that
behaves like its perl/python equivalent.  Just the thing for splitting
comma separated option strings or space separated telnet commands and
arguments.  I've also enclosed the whole thing in a namespace
simgear::strutils.  Since I seem to be the only one who uses these
functions, SimGear and FlightGear compile without change.

PS It is no coincidence that the new function names bear an uncanny
resemblance to the python functions of the same name.


No differences found