Documentation code and object
released under LGPL
licence.
Copyright (C) 2005 by Henrique Abdalla <teike@users.sourceforge.net>
Website created with Website
Template Control.
Menu
(plain HTML)
|
Menu
(powered by javascript)
|
SubProject: String
Depends
on CallStack and Number libraries.
A library with several
string facilities.
Everyone wants a String class to work with
strings easly, so I created 'another one' :).
Example:
String str, strName="dude";
str=" Hello";
if(strName=="dude"){
str += " " + strName + "!";
}
cout<<">"<<str<<NL;
cout<<">"<<str.Trim_T()<<NL;
//Trim_T()
remove spaces before and after string
cout<<">"<<str.SubString_str(3,5).ToUpper_T()<<NL;
cout<<">"<<str<<NL;
output:
>
Hello dude!
>Hello dude!
>LO DU
>Hello
dude!
Look at cString.h for details.