def _LineContainsI18n(uwline):
 if style.Get(u'I18N_COMMENT'):
  for tok in uwline.tokens:
   if (tok.is_comment and re.match(style.Get(u'I18N_COMMENT'), tok.value)):
    return True
 if style.Get(u'I18N_FUNCTION_CALL'):
  length = len(uwline.tokens)
  index = 0
  while (index < (length - 1)):
   if ((uwline.tokens[(index + 1)].value == u'(') and (uwline.tokens[index].value in style.Get(u'I18N_FUNCTION_CALL'))):
    return True
   index += 1
 return False

def _LineContainsI18n ( uwline ) : if style . Get ( u'I18N_COMMENT' ) : for tok in uwline . tokens : if ( tok . is_comment and re . match ( style . Get ( u'I18N_COMMENT' ) , tok . value ) ) : return True if style . Get ( u'I18N_FUNCTION_CALL' ) : length = len ( uwline . tokens ) index = 0 while ( index < ( length - 1 ) ) : if ( ( uwline . tokens [ ( index + 1 ) ] . value == u'(' ) and ( uwline . tokens [ index ] . value in style . Get ( u'I18N_FUNCTION_CALL' ) ) ) : return True index += 1 return False
return true if there are i18n comments or function calls in the line .