![]() |
ModifyString() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Private Function |
Declared in: WhoisSocket.h |
void ModifyString( std::string& rString) const;
Process a string and modify it's 10
try { //The iterator std::string::iterator aIterator; aIterator=rString.begin(); //String to replace with std::string sReplace; char aChar; aChar=13; //Run it while (aIterator<rString.end()) { //Is it our character if (*aIterator==10) { //Copy it std::string::iterator aBackupIterator; aBackupIterator=aIterator; //Move on ++aIterator; //Change the data rString.insert(aBackupIterator,aChar); } else ++aIterator; } } ERROR_HANDLER("ModifyString")
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |