From f0c16272d5ec1cb313175ede04afb135c1472702 Mon Sep 17 00:00:00 2001 From: Konrad Rosenbaum Date: Thu, 2 Feb 2012 20:22:57 +0100 Subject: [PATCH] make character class name easier to config --- src/elamcharclass.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) 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; -- 1.7.2.5