Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
392d9b44
Commit
392d9b44
authored
Mar 11, 2006
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust CJK Ideograph range to Unicode 4.1.
parent
16c7c07a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
Modules/unicodedata.c
Modules/unicodedata.c
+12
-13
No files found.
Modules/unicodedata.c
View file @
392d9b44
...
...
@@ -803,7 +803,7 @@ is_unified_ideograph(Py_UCS4 code)
{
return
(
(
0x3400
<=
code
&&
code
<=
0x4DB5
)
||
/* CJK Ideograph Extension A */
(
0x4E00
<=
code
&&
code
<=
0x9F
A5
)
||
/* CJK Ideograph */
(
0x4E00
<=
code
&&
code
<=
0x9F
BB
)
||
/* CJK Ideograph */
(
0x20000
<=
code
&&
code
<=
0x2A6D6
));
/* CJK Ideograph Extension B */
}
...
...
@@ -815,6 +815,17 @@ _getucname(PyObject *self, Py_UCS4 code, char* buffer, int buflen)
int
word
;
unsigned
char
*
w
;
if
(
code
>=
0x110000
)
return
0
;
if
(
self
)
{
const
change_record
*
old
=
get_old_record
(
self
,
code
);
if
(
old
->
category_changed
==
0
)
{
/* unassigned */
return
0
;
}
}
if
(
SBase
<=
code
&&
code
<
SBase
+
SCount
)
{
/* Hangul syllable. */
int
SIndex
=
code
-
SBase
;
...
...
@@ -845,18 +856,6 @@ _getucname(PyObject *self, Py_UCS4 code, char* buffer, int buflen)
return
1
;
}
if
(
code
>=
0x110000
)
return
0
;
if
(
self
)
{
const
change_record
*
old
=
get_old_record
(
self
,
code
);
if
(
old
->
category_changed
==
0
)
{
/* unassigned */
return
0
;
}
}
/* get offset into phrasebook */
offset
=
phrasebook_offset1
[(
code
>>
phrasebook_shift
)];
offset
=
phrasebook_offset2
[(
offset
<<
phrasebook_shift
)
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment