mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
Merge 286ab7ba6e into 7099af8f5e
This commit is contained in:
commit
c4868f10c1
4 changed files with 8 additions and 15 deletions
|
|
@ -438,7 +438,7 @@ def makeunicodetype(unicode, trace):
|
|||
flags |= ALPHA_MASK
|
||||
if "Lowercase" in properties:
|
||||
flags |= LOWER_MASK
|
||||
if 'Line_Break' in properties or bidirectional == "B":
|
||||
if 'Line_Break' in properties:
|
||||
flags |= LINEBREAK_MASK
|
||||
linebreaks.append(char)
|
||||
if category == "Zs" or bidirectional in ("WS", "B", "S"):
|
||||
|
|
@ -604,8 +604,7 @@ def makeunicodetype(unicode, trace):
|
|||
|
||||
# Generate code for _PyUnicode_IsLinebreak()
|
||||
fprint("/* Returns 1 for Unicode characters having the line break")
|
||||
fprint(" * property 'BK', 'CR', 'LF' or 'NL' or having bidirectional")
|
||||
fprint(" * type 'B', 0 otherwise.")
|
||||
fprint(" * property 'BK', 'CR', 'LF' or 'NL', 0 otherwise.")
|
||||
fprint(" */")
|
||||
fprint('int _PyUnicode_IsLinebreak(const Py_UCS4 ch)')
|
||||
fprint('{')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue