code: def get_case(flags):
      
  
      if not bool(flags & CASE_FLAGS):
          case_sensitive = util.is_case_sensitive()
      elif flags & FORCECASE:
          case_sensitive = True
      else:
          case_sensitive = False
      return case_sensitive
docs: Parse flags for case sensitivity settings.