Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int lines_count = 1;
- size_t i = 0;
- while ((i = m_tooltips[iter->fname].tooltip.find("\n", i)) != std::string::npos) {
- lines_count++;
- i += 2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement