39 Commits (56eb25f04928132f9921a1163684e626256e2a2c)

Author SHA1 Message Date
Paul Sokolovsky 56eb25f049 py/objstr: Make .partition()/.rpartition() methods configurable. 8 years ago
Paul Sokolovsky ed1c194ebf py/objstrunicode: str_index_to_ptr: Implement positive indexing properly. 8 years ago
Paul Sokolovsky 6af90b2972 py/objstrunicode: str_index_to_ptr: Should handle bytes too. 8 years ago
Dave Hylands 6a60fb3cf4 py/objstr*: Properly ifdef str.center(). 9 years ago
Paul Sokolovsky 1b5abfcaae py/objstr: Implement str.center(). 9 years ago
Damien George 8212d97317 py: Use polymorphic iterator type where possible to reduce code size. 9 years ago
Damien George 999cedb90f py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 9 years ago
Damien George cbf7674025 py: Add MP_ROM_* macros and mp_rom_* types and use them. 9 years ago
Paul Sokolovsky 1b586f3a73 py: Rename MP_BOOL() to mp_obj_new_bool() for consistency in naming. 9 years ago
Damien George 821b7f22fe py: Use mp_not_implemented consistently for not implemented features. 9 years ago
Damien George 44e7cbf019 py: Clean up declarations of str type/funcs that are also in unicode. 10 years ago
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism. 10 years ago
Damien George 0528c5a22a py: In str unicode, str_subscr will never be passed a bytes object. 10 years ago
Paul Sokolovsky ac2f7a7f6a objstr: Add .splitlines() method. 10 years ago
Damien George 2e2e404ff7 py: Allow to compile with extra warnings (sign-compare, unused-param). 10 years ago
Damien George 98e3a64694 py: Remove duplicated mp_obj_str_make_new function from objstrunicode.c. 10 years ago
Paul Sokolovsky 344e15b1ae objstr: Remove code duplication and unbreak Windows build. 10 years ago
Paul Sokolovsky 6113eb2f33 objstr*: Use separate names for locals_dict of 8-bit and unicode str's. 10 years ago
Damien George 0b9ee86133 py: Add mp_obj_new_str_from_vstr, and use it where relevant. 10 years ago
Damien George ff8dd3f486 py, unix: Allow to compile with -Wunused-parameter. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Paul Sokolovsky e62a0fe367 objstr: Allow to convert any buffer proto object to str. 10 years ago
Damien George cde0ca21bf py: Simplify JSON str printing (while still conforming to JSON spec). 10 years ago
Damien George 612045f53f py: Add native json printing using existing print framework. 10 years ago
Damien George 4abff7500f py: Change uint to mp_uint_t in runtime.h, stackctrl.h, binary.h. 10 years ago
Damien George ecc88e949c Change some parts of the core API to use mp_uint_t instead of uint/int. 10 years ago
Damien George bb4c6f35c6 py: Make MP_OBJ_NEW_SMALL_INT cast arg to mp_int_t itself. 10 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Paul Sokolovsky 9e215fa4c2 py: Make unichar_charlen() accept/return machine_uint_t. 11 years ago
Damien George e04a44e2f6 py: Small comments, name changes, use of machine_int_t. 11 years ago
Paul Sokolovsky ea2c936c7e objstrunicode: Refactor str_index_to_ptr() following objstr. 11 years ago
Paul Sokolovsky 00c904b47a objstrunicode: Signedness issues. 11 years ago
Paul Sokolovsky 79b7fe2ee5 objstrunicode: Implement iterator. 11 years ago
Paul Sokolovsky cdc020da4b objstrunicode: Re-add buffer protocol back for now, required for io.StringIO. 11 years ago
Paul Sokolovsky e7f2b4c875 objstrunicode: Revamp len() handling for unicode, and optimize bool(). 11 years ago
Paul Sokolovsky 86d3898e70 objstrunicode: Get rid of bytes checking, it's separate type. 11 years ago
Paul Sokolovsky 9731912ccb py: Prune unneeded code from objstrunicode, reuse code in objstr. 11 years ago
Chris Angelico 64b468d873 objstrunicode: Basic implementation of unicode handling. 11 years ago
Paul Sokolovsky 83865347db objstrunicode: Complete copy of objstr, to be patched for unicode support. 11 years ago
Paul Sokolovsky e3cfc0d33d objstr: Refactor to work with char pointers instead of indexes. 11 years ago
Paul Sokolovsky 2ec38a17d4 objstr: Be 8-bit clean even for repr(). 11 years ago
Paul Sokolovsky b4efac14cd py: Make sure getattr() works with non-interned strings (by interning them). 11 years ago
Dave Hylands b69f9fa31f Fix str.modulo when precision is specified. 11 years ago
Damien George d4c2bddd0c py: Raise TypeError when trying to format non-int with %x,%o,%X. 11 years ago
Damien George 11de8399fe py: Small changes to objstr.c, including a bug fix. 11 years ago
Paul Sokolovsky 75ce9256b2 objstr: Implement "%(key)s" % {} formatting for strings and dicts. 11 years ago
Chris Angelico 9ab8ab2117 Replace assert(0) with a self-documenting TODO string 11 years ago
Chris Angelico 4867413e69 Simplify detection of quote characters in mp_str_print_quoted. 11 years ago
Damien George fcc9cf63f1 py, str: Replace enum with actual function pointer. 11 years ago
Damien George fb510b3bf9 Rename bultins config variables to MICROPY_PY_BUILTINS_*. 11 years ago