Lines Matching refs:index0
33 AK_FORCE_INLINE float getSubstitutionCost(const int index0, const int index1) const {
34 const int c0 = toBaseLowerCase(mString0[index0]);
39 AK_FORCE_INLINE float getDeletionCost(const int index0, const int index1) const {
43 AK_FORCE_INLINE float getInsertionCost(const int index0, const int index1) const {
47 AK_FORCE_INLINE bool allowTransposition(const int index0, const int index1) const {
48 const int c0 = toBaseLowerCase(mString0[index0]);
50 if (index0 > 0 && index1 > 0 && c0 == toBaseLowerCase(mString1[index1 - 1])
51 && c1 == toBaseLowerCase(mString0[index0 - 1])) {
57 AK_FORCE_INLINE float getTranspositionCost(const int index0, const int index1) const {
58 return getSubstitutionCost(index0, index1);