![]() |
ModifyString() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Private Function |
Declared in: WhoisSocket.h |
Declaration
void ModifyString(
std::string& rString) const;
DescriptionProcess a string and modify it's 10
Function Body
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")
See Also
This web site was generated
using Surveyor V4.50.811.1. Click
here
for more information. |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |