comparison src/ov-fcn-inline.cc @ 5025:6d41c8ee35cf

[project @ 2004-09-22 15:53:38 by jwe]
author jwe
date Wed, 22 Sep 2004 15:53:38 +0000
parents 1009e55429bc
children 49827f6892f4
comparison
equal deleted inserted replaced
5024:1009e55429bc 5025:6d41c8ee35cf
610 610
611 int fun_len = fun.length (); 611 int fun_len = fun.length ();
612 612
613 for (int i = 0; i < fun_len; i++) 613 for (int i = 0; i < fun_len; i++)
614 { 614 {
615 if (islower (fun[i]) 615 char new_c = fun[i];
616
617 if (new_c != 'i' && new_c != 'j'
618 && islower (new_c)
616 && (i == 0 || ! islower (fun[i-1])) 619 && (i == 0 || ! islower (fun[i-1]))
617 && (i == fun_len || ! islower (fun[i+1]))) 620 && (i == fun_len || ! islower (fun[i+1])))
618 { 621 {
619 char new_c = fun[i];
620
621 if (new_c == 'i' || new_c == 'j')
622 continue;
623
624 int new_dist = std::abs (new_c - 'x'); 622 int new_dist = std::abs (new_c - 'x');
625 623
626 if (dist == -1 || new_dist < dist 624 if (dist == -1 || new_dist < dist
627 || (new_dist == dist && c < new_c)) 625 || (new_dist == dist && c < new_c))
628 { 626 {