@@ -1565,9 +1565,8 @@ unicodedata_UCD_name_impl(PyObject *self, int chr, PyObject *default_value)
15651565}
15661566
15671567/*[clinic input]
1568- unicodedata.UCD. isxidstart
1568+ unicodedata.isxidstart
15691569
1570- self: self
15711570 chr: int(accept={str})
15721571 /
15731572
@@ -1576,24 +1575,15 @@ Return True if the character has the XID_Start property, else False.
15761575[clinic start generated code]*/
15771576
15781577static PyObject *
1579- unicodedata_UCD_isxidstart_impl (PyObject * self , int chr )
1580- /*[clinic end generated code: output=944005823c72c3ef input=9353f88d709c21fb ]*/
1578+ unicodedata_isxidstart_impl (PyObject * module , int chr )
1579+ /*[clinic end generated code: output=7ae0e1a3915aa031 input=3812717f3a6bfc56 ]*/
15811580{
1582- if (UCD_Check (self )) {
1583- const change_record * old = get_old_record (self , chr );
1584- if (old -> category_changed == 0 ) {
1585- /* unassigned */
1586- Py_RETURN_FALSE ;
1587- }
1588- }
1589-
15901581 return PyBool_FromLong (_PyUnicode_IsXidStart (chr ));
15911582}
15921583
15931584/*[clinic input]
1594- unicodedata.UCD. isxidcontinue
1585+ unicodedata.isxidcontinue
15951586
1596- self: self
15971587 chr: int(accept={str})
15981588 /
15991589
@@ -1602,17 +1592,9 @@ Return True if the character has the XID_Continue property, else False.
16021592[clinic start generated code]*/
16031593
16041594static PyObject *
1605- unicodedata_UCD_isxidcontinue_impl (PyObject * self , int chr )
1606- /*[clinic end generated code: output=9438dcbff5ca3e41 input=bbb8dd3ac0d2d709 ]*/
1595+ unicodedata_isxidcontinue_impl (PyObject * module , int chr )
1596+ /*[clinic end generated code: output=517caa8b38c73aed input=a971ed6e57cac374 ]*/
16071597{
1608- if (UCD_Check (self )) {
1609- const change_record * old = get_old_record (self , chr );
1610- if (old -> category_changed == 0 ) {
1611- /* unassigned */
1612- Py_RETURN_FALSE ;
1613- }
1614- }
1615-
16161598 return PyBool_FromLong (_PyUnicode_IsXidContinue (chr ));
16171599}
16181600
@@ -2128,10 +2110,12 @@ static PyMethodDef unicodedata_functions[] = {
21282110 UNICODEDATA_INDIC_CONJUNCT_BREAK_METHODDEF
21292111 UNICODEDATA_EXTENDED_PICTOGRAPHIC_METHODDEF
21302112 UNICODEDATA_ITER_GRAPHEMES_METHODDEF
2113+ UNICODEDATA_ISXIDSTART_METHODDEF
2114+ UNICODEDATA_ISXIDCONTINUE_METHODDEF
21312115
21322116 // The following definitions are shared between the module
21332117 // and the UCD class.
2134- #define DB_methods (unicodedata_functions + 4 )
2118+ #define DB_methods (unicodedata_functions + 6 )
21352119
21362120 UNICODEDATA_UCD_DECIMAL_METHODDEF
21372121 UNICODEDATA_UCD_DIGIT_METHODDEF
@@ -2143,8 +2127,6 @@ static PyMethodDef unicodedata_functions[] = {
21432127 UNICODEDATA_UCD_EAST_ASIAN_WIDTH_METHODDEF
21442128 UNICODEDATA_UCD_DECOMPOSITION_METHODDEF
21452129 UNICODEDATA_UCD_NAME_METHODDEF
2146- UNICODEDATA_UCD_ISXIDSTART_METHODDEF
2147- UNICODEDATA_UCD_ISXIDCONTINUE_METHODDEF
21482130 UNICODEDATA_UCD_LOOKUP_METHODDEF
21492131 UNICODEDATA_UCD_IS_NORMALIZED_METHODDEF
21502132 UNICODEDATA_UCD_NORMALIZE_METHODDEF
0 commit comments