29class KoHyphenatorException{
31 KoHyphenatorException( const TQString& MessageText): messageText(MessageText) {}
32 TQString message() const { return messageText; }
63 static KoHyphenator* self();
73 bool checkHyphenPos( const TQString& str, int pos, const TQString& lang) const;
91 char * hyphens( const TQString& str, const TQString& lang) const;
103 TQString hyphenate( const TQString& str, const TQString& lang) const;
109 TQTextCodec* codecForLang( const TQString& lang) const;
112 HyphenDict *dict( const TQString &lang) const;
114 TQMap<TQString, HyphenDict*> dicts;
115 struct EncodingStruct {
117 : encoding(), codec(0L) {}
118 EncodingStruct( const TQCString& _encoding)
119 : encoding(_encoding), codec(0L) {}
123 typedef TQMap<TQString, EncodingStruct> EncodingMap;
124 mutable EncodingMap encodings;
126 static KoHyphenator* s_self;
bool checkHyphenPos(const TQString &str, int pos, const TQString &lang) const Checks if the letter in position pos is placed before the hyphen.
static KoHyphenator * self() Returns the single KoHyphenator instance (singleton pattern) Beware that this might throw an exceptio...
char * hyphens(const TQString &str, const TQString &lang) const Returns the pointer to the string in hnj_hyphen_hyphenate() format (that is hyphenation function from...
TQString hyphenate(const TQString &str, const TQString &lang) const Hyphenates the string str and returns the string with hyphenation marks in it.
|