Alf’s StringValue


StringValue is a C++ string class much like the Java and C# built-in string classes, with Unicode as default.

StringValues are immutable. Like in Java and C# you can freely copy StringValues, e.g. assign them, but you can not directly modify the string value itself. Immutability confers the following advantages:

In addition StringValue supports “tied strings”, strings that are nothing but pointers into a reference-counted buffer, e.g. for retrieving Windows Unicode command line arguments.

How you can help.

If there are any problems or obvious improvements, please report them.


Valid XHTML 1.0!
Alf P. Steinbach, Oslo, Norway, September/October 2007.