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
dc742b31
Commit
dc742b31
authored
Apr 11, 2000
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Marc-Andre Lemburg:
Added a few missing whitespace Unicode char mappings. Thanks to Brian Hooper.
parent
86662914
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Objects/unicodectype.c
Objects/unicodectype.c
+6
-2
No files found.
Objects/unicodectype.c
View file @
dc742b31
...
...
@@ -633,8 +633,8 @@ int _PyUnicode_IsNumeric(register const Py_UNICODE ch)
#ifndef WANT_WCTYPE_FUNCTIONS
/* Returns 1 for Unicode characters having the
type 'WS', 'B' or 'S',
0 otherwise. */
/* Returns 1 for Unicode characters having the
bidirectional type
'WS', 'B' or 'S' or the category 'Zs',
0 otherwise. */
int
_PyUnicode_IsWhitespace
(
register
const
Py_UNICODE
ch
)
{
...
...
@@ -649,6 +649,8 @@ int _PyUnicode_IsWhitespace(register const Py_UNICODE ch)
case
0x001E
:
/* RECORD SEPARATOR */
case
0x001F
:
/* UNIT SEPARATOR */
case
0x0020
:
/* SPACE */
case
0x0085
:
/* NEXT LINE */
case
0x00A0
:
/* NO-BREAK SPACE */
case
0x1680
:
/* OGHAM SPACE MARK */
case
0x2000
:
/* EN QUAD */
case
0x2001
:
/* EM QUAD */
...
...
@@ -661,7 +663,9 @@ int _PyUnicode_IsWhitespace(register const Py_UNICODE ch)
case
0x2008
:
/* PUNCTUATION SPACE */
case
0x2009
:
/* THIN SPACE */
case
0x200A
:
/* HAIR SPACE */
case
0x200B
:
/* ZERO WIDTH SPACE */
case
0x2028
:
/* LINE SEPARATOR */
case
0x2029
:
/* PARAGRAPH SEPARATOR */
case
0x202F
:
/* NARROW NO-BREAK SPACE */
case
0x3000
:
/* IDEOGRAPHIC SPACE */
return
1
;
...
...
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