make character class name easier to config
authorKonrad Rosenbaum <konrad@silmor.de>
Thu, 2 Feb 2012 19:22:57 +0000 (20:22 +0100)
committerKonrad Rosenbaum <konrad@silmor.de>
Thu, 2 Feb 2012 19:22:57 +0000 (20:22 +0100)
src/elamcharclass.h

index f40f24d..a3c32e8 100644 (file)
@@ -65,6 +65,11 @@ class CharacterClassSettings
                \param startchars are characters that can start a name
                \param allchars are characters that can turn up anywhere in names, allchars must include all characters from startchars*/
                void setNameClass(QString startchars,QString allchars);
+               /**convenience overload: sets the two sub-classes of names
+               \param chars.first are characters that can start a name
+               \param chars.second are characters that can turn up anywhere in names, second must include all characters from first*/
+               void setNameClass(const QPair<QString,QString>&chars)
+               {setNameClass(chars.first,chars.second);}
                
                ///returns all characters that are regarded as whitespace
                QString whitespaceClass()const;