Class CWhoisSocket::
ModifyString()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: ModifyBufferNext page: OnSocketClose    Show member index
Private Function Declared in:
WhoisSocket.h

'Declaration' icon -- Shortcut to top of page. Declaration

void ModifyString(
    std::string& rString) const;

'Description' icon -- Shortcut to top of page. Description

Process a string and modify it's 10

'Function Body' icon -- Shortcut to top of page. 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' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CTCPSocketAsync  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!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.