const int no_blocks = sizeof(unicode_blocks) / sizeof(UnicodeBlocks);
+QString getBlock(char_type c)
+{
+ int i = 0;
+ while (c > unicode_blocks[i].end && i < no_blocks)
+ ++i;
+ if (!unicode_blocks[i].name.isEmpty())
+ return unicode_blocks[i].name;
+ return QString();
+}
+
+
} // namespace anon
}
-QString GuiSymbols::getBlock(char_type c) const
-{
- int i = 0;
- while (c > unicode_blocks[i].end && i < no_blocks)
- ++i;
- if (!unicode_blocks[i].name.isEmpty())
- return unicode_blocks[i].name;
- return QString();
-}
-
-
void GuiSymbols::dispatchParams()
{
dispatch(FuncRequest(getLfun(), fromqstr(chosenLE->text())));
* as well (which is rather expensive)
**/
void updateSymbolList(bool update_combo = true);
- /// get the unicode block associated with \p c
- QString getBlock(char_type c) const;
/// the encoding at cursor position
std::string encoding_;
/// which blocks do we actually include?