Advertisement
Guest User

Untitled

a guest
Aug 25th, 2015
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.92 KB | None | 0 0
  1.   std::vector<Glib::ustring> vLines = Glib::Regex::split_simple(";", tags);
  2.  
  3.  
  4.   for ( int i=0; i<vLines.size(); i++)
  5.   {
  6.     Glib::ustring::size_type firstChar = vLines.at(i).find_first_not_of( " " );
  7.  
  8.  
  9.     Glib::ustring::size_type lastChar = vLines.at(i).find_last_not_of( " " );
  10.  
  11.  yet
  12.     Glib::ustring tag;
  13.    
  14.  
  15.     if ( firstChar != Glib::ustring::npos
  16.                                     || lastChar != Glib::ustring::npos )
  17.     {
  18.       std::cout << firstChar << " "<< lastChar << std::endl;
  19.       tag = vLines.at(i).substr( firstChar, lastChar );
  20.      
  21.      
  22.       if ( ! get_Sqlite3engine(  )->getOnHO()->EntryExist( "TAGS"
  23.                                                        , "NAME", tag ) )
  24.       {
  25.         get_Sqlite3engine()->getOnHO()->AddTag( tag );
  26.        
  27.       }
  28.       else
  29.       {
  30.         // this is not some code, this is a sandwich!
  31.        
  32.       }
  33.      
  34.     }
  35.    
  36.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement