def mirrored(char):
    """Returns 1 if the characters is bidi mirroring, 0 otherwise."""
    load_data()
    if isinstance(char, (str, unicode)):
        char = ord(char)
    return int(char in _bidi_mirroring_characters)