this repo has no description
at trunk 110 lines 1.9 kB view raw
1#!/usr/bin/env python3 2# Copyright (c) Facebook, Inc. and its affiliates. (http://www.facebook.com) 3# $builtin-init-module$ 4 5from _builtins import _builtin, _Unbound, _unimplemented 6 7 8# TODO(T36511309): make UCD non-extensible 9class UCD: 10 # ucd_3_2_0 is the only instance of UCD 11 def __new__(cls, *args, **kwargs): 12 raise TypeError(f"cannot create 'unicodedata.UCD' instances") 13 14 def bidirectional(self, chr): 15 _builtin() 16 17 def category(self, chr): 18 _builtin() 19 20 def combining(self, chr): 21 _unimplemented() 22 23 def decimal(self, chr, default=_Unbound): 24 _builtin() 25 26 def decomposition(self, chr): 27 _builtin() 28 29 def digit(self, chr, default=_Unbound): 30 _builtin() 31 32 def east_asian_width(self, chr): 33 _unimplemented() 34 35 def is_normalized(self, form, unistr): 36 _unimplemented() 37 38 def lookup(self, name): 39 _unimplemented() 40 41 def mirrored(self, chr): 42 _unimplemented() 43 44 def name(self, chr, default=_Unbound): 45 _unimplemented() 46 47 def normalize(self, form, unistr): 48 _builtin() 49 50 def numeric(self, chr, default=_Unbound): 51 _unimplemented() 52 53 @property 54 def unidata_version(self): 55 return "3.2.0" 56 57 58def bidirectional(chr): 59 _builtin() 60 61 62def category(chr): 63 _builtin() 64 65 66def combining(chr): 67 _unimplemented() 68 69 70def decimal(chr, default=_Unbound): 71 _builtin() 72 73 74def decomposition(chr): 75 _builtin() 76 77 78def digit(chr, default=_Unbound): 79 _builtin() 80 81 82def east_asian_width(chr): 83 _unimplemented() 84 85 86def is_normalized(form, unistr): 87 _unimplemented() 88 89 90def lookup(name): 91 _builtin() 92 93 94def mirrored(chr): 95 _unimplemented() 96 97 98def name(chr, default=_Unbound): 99 _unimplemented() 100 101 102def normalize(form, unistr): 103 _builtin() 104 105 106def numeric(chr, default=_Unbound): 107 _builtin() 108 109 110unidata_version = "11.0.0"