Info-Mac Archive Downloads: dev/src/ SourceCode

Back to dev/src/ SourceCode

NString 1.0 beta - A dynamic string class for C++ programmers (Development/Sources) (nstring-10b-cpp.hqx)

Download nstring-10b-cpp.hqx (68,933 KB)


Date: Wed, 25 Jan 1995 10:21:35 +0100
From: francois@di.epfl.ch (Joel Francois)
Subject: NString 1.0 beta - A dynamic string class for C++ programmers (Development/Sources)

This is version 1.0 beta of NString, a very powerful dynamic string
class for C++ developers. Here's a brief summary of the main features
that NString offers:

* Easy Assignment - NString objects can be handled almost like
ints or floats
* Very efficient string length measuring (as the length is stored
in the object)
* Access to single characters in the string through the [] operator
* NString comparisons made easy via the use of standard operators
(==, !=, <, >, ...)
* Concatenation of NStrings through the '+' and '+=' operators
* "Multiplication" of an NString with the '*' and '*=' operators
* Operations for copying and cutting portions of an NString
* An iterator, which calls a user-defined routine for every one
of the string's characters
* Upper / lowercase conversion routines
* Very powerful context-based substring searches and tests
* Standard C++ stream input / output operations through the
'>>' and '<<' operators
* Possibility to use NStrings as output string streams
(i.e. to the left of the '<<' operator)
* Highly optimized internal string handling
* C++ exception support

NString is shareware.