Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

String Impala::Util::ChannelServer::ReadQuotedString ( const char *  buf,
int &  index,
int  len 
) [inline, protected]

Definition at line 308 of file ChannelServer.h.

Referenced by Impala::Application::DataServer::AcceptRequest(), AcceptRequestPortAssignment(), and AcceptRequestPortMode().

00309     {
00310         while (index < len && buf[index] != '"')
00311             index++;
00312         if (index < len)
00313         {
00314             int startIndex = ++index; // read past start quote
00315             while (index < len && buf[index] != '"')
00316                 index++;
00317             const int quotedStringLen = index - startIndex;
00318             if (index < len)
00319                 index++; // read past end quote
00320             return String(buf + startIndex, quotedStringLen);
00321         }
00322         return "";
00323     }


Generated on Fri Mar 19 11:39:45 2010 for ImpalaSrc by  doxygen 1.5.1