"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stoolkit/syntax/SHunspellPattern.cpp" between
yudit-3.0.5.tar.gz and yudit-3.0.7.tar.gz

About: yudit is an Unicode plain-text editor that can do True Type font rendering, printing, transliterated keyboard input and handwriting recognition with no dependencies on external engines.

SHunspellPattern.cpp  (yudit-3.0.5):SHunspellPattern.cpp  (yudit-3.0.7)
skipping to change at line 291 skipping to change at line 291
// get the controls out first // get the controls out first
SS_UCS4 chr = current[0]; SS_UCS4 chr = current[0];
if (isNumber (chr)) if (isNumber (chr))
{ {
action = ACT_NUMBER; action = ACT_NUMBER;
matchBegin = matchEnd; matchBegin = matchEnd;
matchEnd++; matchEnd++;
current.remove (0); current.remove (0);
return true; return true;
} }
if (isOther (chr))
{
action = ACT_OTHER;
matchBegin = matchEnd;
matchEnd++;
current.remove (0);
return true;
}
if (isSeparator (chr) || chr == (SS_UCS4) '-') if (isSeparator (chr) || chr == (SS_UCS4) '-')
{ {
action = ACT_CONTROL; action = ACT_CONTROL;
matchBegin = matchEnd; matchBegin = matchEnd;
matchEnd++; matchEnd++;
current.remove (0); current.remove (0);
return true; return true;
} }
if (isJapanese (chr)) if (isJapanese (chr))
{ {
skipping to change at line 393 skipping to change at line 401
return (chr != (SS_UCS4) '-' return (chr != (SS_UCS4) '-'
&& cc != SD_CC_Lu && cc != SD_CC_Ll && cc != SD_CC_Lt && cc != SD_CC_Lu && cc != SD_CC_Ll && cc != SD_CC_Lt
&& cc != SD_CC_Lm && cc != SD_CC_Lo); && cc != SD_CC_Lm && cc != SD_CC_Lo);
} }
bool bool
SHunspellPattern::isNumber (SS_UCS4 chr) const SHunspellPattern::isNumber (SS_UCS4 chr) const
{ {
SD_CharClass cc = getCharClass (chr); SD_CharClass cc = getCharClass (chr);
return (cc == SD_CC_Nd || cc == SD_CC_Nl || cc == SD_CC_No); return (cc == SD_CC_Nd || cc == SD_CC_Nl || cc == SD_CC_No);
} }
bool
SHunspellPattern::isOther (SS_UCS4 chr) const
{
SD_CharClass cc = getCharClass (chr);
return (cc == SD_CC_So);
}
// Convert rovasiras into standard hungarian, all caps // Convert rovasiras into standard hungarian, all caps
static void static void
convertRovasiras (const SV_UCS4& in, SV_UCS4& out) convertRovasiras (const SV_UCS4& in, SV_UCS4& out)
{ {
SS_UCS4 chr; SS_UCS4 chr;
for (unsigned int i=0; i<in.size(); i++) for (unsigned int i=0; i<in.size(); i++)
{ {
chr = in[i]; chr = in[i];
switch ((int)chr) switch ((int)chr)
 End of changes. 2 change blocks. 
0 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)