def QRatio(s1, s2, force_ascii=True):
 p1 = utils.full_process(s1, force_ascii=force_ascii)
 p2 = utils.full_process(s2, force_ascii=force_ascii)
 if (not utils.validate_string(p1)):
  return 0
 if (not utils.validate_string(p2)):
  return 0
 return ratio(p1, p2)

def QRatio ( s1 , s2 , force_ascii = True ) : p1 = utils . full_process ( s1 , force_ascii = force_ascii ) p2 = utils . full_process ( s2 , force_ascii = force_ascii ) if ( not utils . validate_string ( p1 ) ) : return 0 if ( not utils . validate_string ( p2 ) ) : return 0 return ratio ( p1 , p2 )
quick ratio comparison between two strings .