Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::vector<Glib::ustring> vLines = Glib::Regex::split_simple(";", tags);
- for ( int i=0; i<vLines.size(); i++)
- {
- Glib::ustring::size_type firstChar = vLines.at(i).find_first_not_of( " " );
- Glib::ustring::size_type lastChar = vLines.at(i).find_last_not_of( " " );
- yet
- Glib::ustring tag;
- if ( firstChar != Glib::ustring::npos
- || lastChar != Glib::ustring::npos )
- {
- std::cout << firstChar << " "<< lastChar << std::endl;
- tag = vLines.at(i).substr( firstChar, lastChar );
- if ( ! get_Sqlite3engine( )->getOnHO()->EntryExist( "TAGS"
- , "NAME", tag ) )
- {
- get_Sqlite3engine()->getOnHO()->AddTag( tag );
- }
- else
- {
- // this is not some code, this is a sandwich!
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement