215 Commits (32f0b7942cf44b7a722db30c554cfc70d3f70289)

Author SHA1 Message Date
Paul Sokolovsky 194117a066 objstr: Fix bytes creation from array of long ints. 10 years ago
Damien George 827b0f747b py: Change vstr_null_terminate -> vstr_null_terminated_str, returns str. 10 years ago
Damien George 0d3cb6726d py: Change vstr so that it doesn't null terminate buffer by default. 10 years ago
Paul Sokolovsky bbd9251bac py: bytes(): Make sure we add values as bytes, not as chars. 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 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