Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
python
/
cpython3
/
b66dcb66ba901c78806d6c76b61b4095c50990cf
/
Objects
/
unicodeobject.c
73f53b5
Optimize str * n for len(str)==1 and UCS-2 or UCS-4
by Victor Stinner
· 13 years ago
f644110
Issue #13621: Optimize str.replace(char1, char2)
by Victor Stinner
· 13 years ago
ab87021
Issue #10951: Fix compiler warnings in timemodule.c and unicodeobject.c
by Victor Stinner
· 13 years ago
2f19707
The locale decoder raises a UnicodeDecodeError instead of an OSError
by Victor Stinner
· 13 years ago
1b57967
Issue #13560: Locale codec functions use the classic "errors" parameter,
by Victor Stinner
· 13 years ago
ab59594
What's New in Python 3.3: complete the deprecation list
by Victor Stinner
· 13 years ago
1f33f2b
Issue #13560: os.strerror() now uses the current locale encoding instead of UTF-8
by Victor Stinner
· 13 years ago
f2ea71f
Issue #13560: Add PyUnicode_EncodeLocale()
by Victor Stinner
· 13 years ago
af02e1c
Add PyUnicode_DecodeLocaleAndSize() and PyUnicode_DecodeLocale()
by Victor Stinner
· 13 years ago
16e6a80
PyUnicode_Resize(): warn about canonical representation
by Victor Stinner
· 13 years ago
b0a82a6
Fix PyUnicode_Resize() for compact string: leave the string unchanged on error
by Victor Stinner
· 13 years ago
bf6e560
Make PyUnicode_Copy() private => _PyUnicode_Copy()
by Victor Stinner
· 13 years ago
7a9105a
resize_copy() now supports legacy ready strings
by Victor Stinner
· 13 years ago
488fa49
Rewrite PyUnicode_Append(); unicode_modifiable() is more strict
by Victor Stinner
· 13 years ago
c4b4954
Create unicode_result_unchanged() subfunction
by Victor Stinner
· 13 years ago
eaab604
Fix fixup() for unchanged unicode subtype
by Victor Stinner
· 13 years ago
e6b2d44
unicode_fromascii() doesn't check string content twice in debug mode
by Victor Stinner
· 13 years ago
a1d12bb
Call directly PyUnicode_DecodeUTF8Stateful() instead of PyUnicode_DecodeUTF8()
by Victor Stinner
· 13 years ago
382955f
Use directly unicode_empty instead of PyUnicode_New(0, 0)
by Victor Stinner
· 13 years ago
785938e
Move the slowest UTF-8 decoder to its own subfunction
by Victor Stinner
· 13 years ago
84def37
Fix error handling in resize_compact()
by Victor Stinner
· 13 years ago
8faf821
PyUnicode_FromWideChar() and PyUnicode_FromUnicode() raise a ValueError if a
by Victor Stinner
· 13 years ago
551ac95
Py_UNICODE_HIGH_SURROGATE() and Py_UNICODE_LOW_SURROGATE() macros
by Victor Stinner
· 13 years ago
6345be9
Close #13093: PyUnicode_EncodeDecimal() doesn't support error handlers
by Victor Stinner
· 13 years ago
1518e87
and back to the "magic" formula (with a comment) it is
by Benjamin Peterson
· 13 years ago
5944c36
cave to those who like readable code
by Benjamin Peterson
· 13 years ago
0268675
fix compiler warning by implementing this more cleverly
by Benjamin Peterson
· 13 years ago
ca4f207
find_maxchar_surrogates() reuses surrogate macros
by Victor Stinner
· 13 years ago
0d3721d
Issue #13441: Disable temporary the check on the maximum character until
by Victor Stinner
· 13 years ago
f8facac
Fix compiler warnings
by Victor Stinner
· 13 years ago
b84d723
(Merge 3.2) Issue #13093: Fix error handling on PyUnicode_EncodeDecimal()
by Victor Stinner
· 13 years ago
cfed46e
PyUnicode_FromKindAndData() fails with a ValueError if size < 0
by Victor Stinner
· 13 years ago
4288520
UTF-8 decoder: set consumed value in the latin1 fast-path
by Victor Stinner
· 13 years ago
d3df8ab
Replace _PyUnicode_READY_REPLACE() and _PyUnicode_ReadyReplace() with unicode_ready()
by Victor Stinner
· 13 years ago
f012450
Rewrite PyUnicode_TransformDecimalToASCII() to use the new Unicode API
by Victor Stinner
· 13 years ago
2d718f3
Remove an unused variable from PyUnicode_Copy()
by Victor Stinner
· 13 years ago
87af4f2
Simplify PyUnicode_Copy()
by Victor Stinner
· 13 years ago
5bbe5e7
Fix a compiler warning in _PyUnicode_CheckConsistency()
by Victor Stinner
· 13 years ago
42bf775
Rewrite PyUnicode_EncodeDecimal() to use the new Unicode API
by Victor Stinner
· 13 years ago
0a3229d
Issue #13417: speed up utf-8 decoding by around 2x for the non-fully-ASCII case.
by Antoine Pitrou
· 13 years ago
da29cc3
Issue #13441: _PyUnicode_CheckConsistency() dumps the string if the maximum
by Victor Stinner
· 13 years ago
9e30aa5
Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
by Victor Stinner
· 13 years ago
4ead7c7
PyObject_Str() ensures that the result string is ready
by Victor Stinner
· 13 years ago
b960b34
PyUnicode_AsUTF32String() calls directly _PyUnicode_EncodeUTF32(),
by Victor Stinner
· 13 years ago
77faf69
_PyUnicode_CheckConsistency() also checks maxchar maximum value,
by Victor Stinner
· 13 years ago
d5c4022
Remove the two ugly and unused WRITE_ASCII_OR_WSTR and WRITE_WSTR macros
by Victor Stinner
· 13 years ago
2e9cfad
Reuse surrogate macros in UTF-16 decoder
by Victor Stinner
· 13 years ago
ae4f7c8
charmap_encoding_error() uses the new Unicode API
by Victor Stinner
· 13 years ago
ac931b1
Use PyUnicode_EncodeCodePage() instead of PyUnicode_EncodeMBCS() with
by Victor Stinner
· 13 years ago
2216899
charmap encoders uses Py_UCS4, not Py_UNICODE
by Victor Stinner
· 13 years ago
1f79517
Catch PyUnicode_AS_UNICODE() errors
by Victor Stinner
· 13 years ago
11060a4
#13406: silence deprecation warnings in test_codecs.
by Ezio Melotti
· 13 years ago
78edf75
Issue #13333: The UTF-7 decoder now accepts lone surrogates
by Antoine Pitrou
· 13 years ago
5418ee0
Issue #13333: The UTF-7 decoder now accepts lone surrogates
by Antoine Pitrou
· 13 years ago
31b92a5
Sanitize reference management in the utf-8 encoder
by Antoine Pitrou
· 13 years ago
0290c7a
Fix regression on 2-byte wchar_t systems (Windows)
by Antoine Pitrou
· 13 years ago
44c6aff
Avoid crashing because of an unaligned word access
by Antoine Pitrou
· 13 years ago
de20b0b
Issue #13149: Speed up append-only StringIO objects.
by Antoine Pitrou
· 13 years ago
9f4b1e9
Fix and deprecated the unicode_internal codec
by Victor Stinner
· 13 years ago
24729f3
Prefer Py_UCS4 or wchar_t over Py_UNICODE
by Victor Stinner
· 13 years ago
ebf3ba8
PyUnicode_DecodeCharmap() uses the new Unicode API
by Victor Stinner
· 13 years ago
a98b28c
Avoid PyUnicode_AS_UNICODE in the UTF-8 encoder
by Victor Stinner
· 13 years ago
3326cb6
Fix "unicode_escape" encoder
by Victor Stinner
· 13 years ago
0e36826
Fix UTF-7 encoder on Windows
by Victor Stinner
· 13 years ago
1db7c13
Port encoders from Py_UNICODE API to unicode object API.
by Martin v. Löwis
· 13 years ago
62aa4d0
Strip trailing spaces
by Victor Stinner
· 13 years ago
0a045ef
Fix a compiler warning: use unsiged for maxchar in unicode_widen()
by Victor Stinner
· 13 years ago
596a6c4
Fix the code page decoder
by Victor Stinner
· 13 years ago
a8f63c0
Fix missing goto
by Antoine Pitrou
· 13 years ago
d10759f
Make _PyUnicode_FromId return borrowed references.
by Martin v. Löwis
· 13 years ago
e9b11c1
Change decoders to use Unicode API instead of Py_UNICODE.
by Martin v. Löwis
· 13 years ago
e30c0a1
Fix gdb/libpython.py for not ready Unicode strings
by Victor Stinner
· 13 years ago
2fc507f
Replace tabs by spaces
by Victor Stinner
· 13 years ago
12be46c
Drop Py_UNICODE based encode exceptions.
by Martin v. Löwis
· 13 years ago
3d32519
Port code page codec to Unicode API.
by Martin v. Löwis
· 13 years ago
fcd9653
Fix a compiler warning in unicode_encode_ucs1()
by Victor Stinner
· 13 years ago
fc026c9
Fix PyUnicode_EncodeCharmap()
by Victor Stinner
· 13 years ago
7931d9a
Replace PyUnicodeObject type by PyObject
by Victor Stinner
· 13 years ago
76a31a6
Cleanup decode_code_page_stateful() and encode_code_page()
by Victor Stinner
· 13 years ago
7581cef
Adapt the code page encoder to the new unicode_encode_call_errorhandler()
by Victor Stinner
· 13 years ago
2787ea4
Fix a compile error (apparently Windows only) introduced in 295fdfd4f422
by Brian Curtin
· 13 years ago
23e275b
Port UCS1 and charmap codecs to new API.
by Martin v. Löwis
· 13 years ago
9e81668
Introduce PyObject* API for raising encode errors.
by Martin v. Löwis
· 13 years ago
0d3072e
Drop Py_UCS4_ functions. Closes #13246.
by Martin v. Löwis
· 13 years ago
57ffa9d
PyUnicode_AsUnicodeCopy() uses PyUnicode_AsUnicodeAndSize() to get directly the length
by Victor Stinner
· 13 years ago
af9e4b8
Fix PyUnicode_InternImmortal(): PyUnicode_InternInPlace() may changes *p
by Victor Stinner
· 13 years ago
9faa384
Cast directly to unsigned char, instead of using Py_CHARMASK
by Victor Stinner
· 13 years ago
9db1a8b
Replace PyUnicodeObject* by PyObject* where it was irrevelant
by Victor Stinner
· 13 years ago
0d60e87
Fix data variable in _PyUnicode_Dump() for compact ASCII
by Victor Stinner
· 13 years ago
d8e61c34
Remove last references to the removed Unicode free list
by Victor Stinner
· 13 years ago
065836e
PyUnicode_FSDecoder() ensures that the decoded string is ready
by Victor Stinner
· 13 years ago
dd18d3a
Fix unicode_subtype_new() on debug build
by Victor Stinner
· 13 years ago
f881751
Remove unused variable.
by Ezio Melotti
· 13 years ago
931b8aa
#12753: Add support for Unicode name aliases and named sequences.
by Ezio Melotti
· 13 years ago
6707293
Add consistency check to _PyUnicode_New()
by Victor Stinner
· 13 years ago
3a50e70
Issue #12281: Rewrite the MBCS codec to handle correctly replace and ignore
by Victor Stinner
· 13 years ago
7a6debe
remove some duplication
by Benjamin Peterson
· 13 years ago
f5cff56
Issue #13088: Add shared Py_hexdigits constant to format a number into base 16
by Victor Stinner
· 13 years ago
f0b934b
Reuse the stringlib in findchar(), and make its signature more convenient
by Antoine Pitrou
· 13 years ago
55c9911
Optimize unicode_subscript() for step != 1 and ascii strings
by Victor Stinner
· 13 years ago
Next »