parameters: (self, codepoint)
return_statement: return 'UNICODE_ONLY'
docstring: Returns category name of the codepoint, or None for invalid input.
docstring_summary: Returns category name of the codepoint, or None for invalid input.
docstring_tokens: Returns category name of the codepoint or None for invalid input .
function: def GetCategory(self, codepoint):
      """Returns category name of the codepoint, or None for invalid input."""
      if not IsValidUCS4(codepoint):
        return None
  
      # Special handling for ascii code point.
      if codepoint <= 0x007F:
        return 'ASCII'
  
      # Then look for loaded table list in the order.
      for name, table in self._table_list:
        if codepoint in table:
          return name
  
      # Not found in any tables, so return "UNICODE_ONLY" as a fallback.
      return 'UNICODE_ONLY'
function_tokens: def GetCategory ( self , codepoint ) : if not IsValidUCS4 ( codepoint ) : return None # Special handling for ascii code point. if codepoint <= 0x007F : return 'ASCII' # Then look for loaded table list in the order. for name , table in self . _table_list : if codepoint in table : return name # Not found in any tables, so return "UNICODE_ONLY" as a fallback. return 'UNICODE_ONLY'