From: Konrad Rosenbaum Date: Thu, 2 Feb 2012 19:22:57 +0000 (+0100) Subject: make character class name easier to config X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=f0c16272d5ec1cb313175ede04afb135c1472702;p=web%2Fkonrad%2Felam.git make character class name easier to config --- diff --git a/src/elamcharclass.h b/src/elamcharclass.h index f40f24d..a3c32e8 100644 --- a/src/elamcharclass.h +++ b/src/elamcharclass.h @@ -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&chars) + {setNameClass(chars.first,chars.second);} ///returns all characters that are regarded as whitespace QString whitespaceClass()const;