230 Commits (51b9a0d0c4dfa265739708016ad85513d330987f)

Author SHA1 Message Date
Damien George 51b9a0d0c4 py/objstr: Make string formatting 8-bit clean. 9 years ago
Dave Hylands 9f76dcd682 py: Prevent many extra vstr allocations. 10 years ago
Paul Sokolovsky f44cc517a2 objstr: Add note that replace() is nicely optimized. 10 years ago
Damien George 79474c6b16 py: Remove unnecessary extra handling of padding of nan/inf. 10 years ago
Damien George 44e7cbf019 py: Clean up declarations of str type/funcs that are also in unicode. 10 years ago
Damien George c2a4e4effc py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function. 10 years ago
Damien George ede0f3ab3d py: Add optional code to check bytes constructor values are in range. 10 years ago
Damien George 7f9d1d6ab9 py: Overhaul and simplify printf/pfenv mechanism. 10 years ago
Paul Sokolovsky 8b7faa31e1 objstr: split(None): Fix whitespace properly. 10 years ago
Damien George 2801e6fad8 py: Some trivial cosmetic changes, for code style consistency. 10 years ago
Paul Sokolovsky 7f59b4b2ca objstr: Fix bugs introduced by inability to have shadow variables. 10 years ago
Paul Sokolovsky acf6aec71c objstr: Avoid variable shadowing. 10 years ago
Paul Sokolovsky ac2f7a7f6a objstr: Add .splitlines() method. 10 years ago
Paul Sokolovsky 8705171233 objstr: Expose mp_obj_str_split() for reuse in other modules. 10 years ago
Damien George fa1edff006 py: Remove unnecessary and unused sgn argument from pfenv_print_mp_int. 10 years ago
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