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

std::string Impala::Application::SDash::AlertWindow::EscapePipes ( const std::string &  someText  )  [inline, private]

Definition at line 468 of file AlertWindow.h.

Referenced by ButtonSelectionEvent().

00469     {
00470         std::string escPipes;
00471         int pos = 0;
00472         int pos2 = 0;
00473         while (pos != std::string::npos && pos < someText.size())
00474         {
00475             pos2 = someText.find_first_of('|', pos);
00476             if (pos2 != std::string::npos)
00477                 escPipes += someText.substr(pos, (++pos2 - pos)) + "|";
00478             else
00479                 escPipes += someText.substr(pos);
00480             pos = pos2;
00481         }
00482         return escPipes;
00483     }


Generated on Thu Jan 13 09:15:58 2011 for ImpalaSrc by  doxygen 1.5.1