def _fold_case(info, string):
 flags = info.flags
 if ((flags & _ALL_ENCODINGS) == 0):
  flags |= info.guess_encoding
 return _regex.fold_case(flags, string)

def _fold_case ( info , string ) : flags = info . flags if ( ( flags & _ALL_ENCODINGS ) == 0 ) : flags |= info . guess_encoding return _regex . fold_case ( flags , string )
folds the case of a string .