258 Commits (b41a14a4b97aaa3e8d0e9f9153f76040955b4146)

Author SHA1 Message Date
Damien George 77089bebd4 py: Add comments for vstr_init and mp_obj_new_str. 10 years ago
Damien George 05005f679e py: Remove mp_obj_str_builder and use vstr instead. 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 50912e7f5d py, unix, stmhal: Allow to compile with -Wshadow. 10 years ago
Damien George 963a5a3e82 py, unix: Allow to compile with -Wsign-compare. 10 years ago
Damien George 0178aa9a11 py, unix: Allow to compile with -Wdouble-promotion. 10 years ago
Damien George e233a55a29 py: Remove unnecessary BINARY_OP_EQUAL code that just checks pointers. 10 years ago
Paul Sokolovsky ff8e35b42e objstr: Common subexpression elimination for vstr_str(field_name). 10 years ago
Paul Sokolovsky c114496641 objstr: Implement kwargs support for str.format(). 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Paul Sokolovsky 2c75665445 objstr: Fix %d-formatting of floats. 10 years ago
Damien George c55a4d82cf py: Make bytes objs work with more str methods; add tests. 10 years ago
Damien George 81836c28b3 py: Use str_to_int function in more places to reduce code size. 10 years ago
Damien George b4fe6e28eb py: Fix function type: () -> (void). 10 years ago
Damien George 32ef3a3517 py: Allow bytes/bytearray/array to be init'd by buffer protocol objects. 10 years ago
Damien George 6f5eb84c19 py: #if guard str_make_new when not needed. 10 years ago
Damien George 1e9a92f84f py: Use shorter, static error msgs when ERROR_REPORTING_TERSE enabled. 10 years ago
Damien George be8e99c7d4 py: Allow bytes object as argument to some str methods. 10 years ago
Damien George a65c03c6c0 py: Allow +, in, and compare ops between bytes and bytearray/array. 10 years ago
Paul Sokolovsky e62a0fe367 objstr: Allow to convert any buffer proto object to str. 10 years ago
Paul Sokolovsky 31619cc589 py: mp_obj_str_get_str(): Work with bytes too. 10 years ago
Damien George 3aa09f5784 py: Use MP_OBJ_NULL instead of NULL in a few places. 10 years ago
Damien George 20f59e182e py: Make mp_const_empty_bytes globally available. 10 years ago
Damien George 39dc145478 py: Change [u]int to mp_[u]int_t in qstr.[ch], and some other places. 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 4d91723587 py: Remove use of int type in obj.h. 10 years ago
Damien George d182b98a37 py: Change all uint to mp_uint_t in obj.h. 10 years ago
Damien George 9c4cbe2ac0 py: Make tuple and list use mp_int_t/mp_uint_t. 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 17ae2395c2 py: Use memmove instead of memcpy when appropriate. 10 years ago
Damien George a75b02ea9b py: Improve efficiency of MP_OBJ_IS_STR_OR_BYTES. 10 years ago
Dave Hylands b7f7c655ed Make int(b'123') work properly. 10 years ago
Damien George 9b7a8ee8f1 py: Fix mult by negative number of tuple, list, str, bytes. 10 years ago
Damien George 2eb1f604ee py, objstr: Optimise bytes subscr when unicode is enabled. 10 years ago
Paul Sokolovsky 9749b2fb0d objstr: Make sure that bytes are indexed as bytes, not as unicode. 10 years ago
Paul Sokolovsky 0c5498540b objstr: split(): check arg type consistency (str vs bytes). 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 5f27a7e811 py: Add mp_obj_str_builder_end_with_len. 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 26fda6dc8e objstr: 64-bit issues. 11 years ago
Paul Sokolovsky 5048df0b7c objstr: find(), rfind(), index(): Make return value be unicode-aware. 11 years ago
Paul Sokolovsky cdc020da4b objstrunicode: Re-add buffer protocol back for now, required for io.StringIO. 11 years ago
Paul Sokolovsky d215ee1dc1 py: Make MICROPY_PY_BUILTINS_STR_UNICODE=1 buildable. 11 years ago
Paul Sokolovsky 9731912ccb py: Prune unneeded code from objstrunicode, reuse code in objstr. 11 years ago