Beispiel #1
0
 double factorAt(const FormattedString& fs, unsigned index) const
 {
     if (fs.entityAt(index))
         return 1;
     else
         return 0.5;
 }
Beispiel #2
0
 double factorAt(const FormattedString& fs, unsigned index)
 {
     if (fs.entityAt(index))
         return 1;
     return charInfo(fs.charAt(index), fs.flagsAt(index)).factor;
 }