aboutsummaryrefslogtreecommitdiff
path: root/py/objstr.c
AgeCommit message (Expand)Author
2022-05-03all: Use mp_obj_malloc everywhere it's applicable.Jim Mussared
2022-01-19py/objstr: Support '{:08}'.format("Jan") like Python 3.10.Jeff Epler
2021-07-15py: Introduce and use mp_raise_type_arg helper.Damien George
2021-04-27py: Add option to compile without any error messages at all.Damien George
2020-12-07py/mpprint: Fix length calculation for strings with precision-modifier.Joris Peeraer
2020-09-24py/objstr: Make bytes(bytes_obj) return bytes_obj.Iyassou Shimels
2020-04-23all: Format code to add space after C++-style comment start.stijn
2020-04-05all: Use MP_ERROR_TEXT for all error messages.Jim Mussared
2020-04-05py: Use preprocessor to detect error reporting level (terse/detailed).Jim Mussared
2020-03-11py/objstr: Remove duplicate % in error string.Tom Collins
2020-02-28all: Reformat C and Python source code with tools/codeformat.py.Damien George
2020-02-13py: Add mp_raise_msg_varg helper and use it where appropriate.Damien George
2020-01-24py/obj.h: Add and use mp_obj_is_bool() helper.Yonatan Goldschmidt
2020-01-09py: Make mp_obj_get_type() return a const ptr to mp_obj_type_t.Damien George
2019-12-27py/objstr: Don't use inline GET_STR_DATA_LEN for object-repr D.Damien George
2019-10-22py/objstr: Size-optimise failure path for mp_obj_str_get_buffer.Jim Mussared
2019-09-26py: Rename MP_QSTR_NULL to MP_QSTRnull to avoid intern collisions.Josh Lloyd
2019-02-12py: Downcase all MP_OBJ_IS_xxx macros to make a more consistent C API.Damien George
2019-02-06py: Update my copyright info on some files.Paul Sokolovsky
2018-10-22py/objstr: Make str.count() method configurable.Paul Sokolovsky
2018-09-26py/objstr: format: Return bytes result for bytes format string.Paul Sokolovsky
2018-09-20py/objstr: Make % (__mod__) formatting operator configurable.Paul Sokolovsky
2018-09-20py: Shorten error messages by using contractions and some rewording.Damien George
2018-07-30py/objstr: In format error message, use common string with %s for type.Damien George
2018-04-05py/objstr: In find/rfind, don't crash when end < start.Jeff Epler
2018-03-30py/runtime: Check that keys in dicts passed as ** args are strings.Damien George
2018-02-20py/objstr: Remove unnecessary check for positive splits variable.Damien George
2018-02-19py/objstr: Protect against creating bytes(n) with n negative.Damien George
2018-02-14py/unicode: Clean up utf8 funcs and provide non-utf8 inline versions.Damien George
2017-11-29py: Annotate func defs with NORETURN when their corresp decls have it.Damien George
2017-11-24py/runtime: Add MP_BINARY_OP_CONTAINS as reverse of MP_BINARY_OP_IN.Damien George
2017-11-16py/objstr: When constructing str from bytes, check for existing qstr.Damien George
2017-11-16py/objstr: Make mp_obj_new_str_of_type check for existing interned qstr.Damien George
2017-11-16py/objstr: Remove "make_qstr_if_not_already" arg from mp_obj_new_str.Damien George
2017-10-04py/objstr: Make empty bytes object have a null-terminating byte.Damien George
2017-10-04all: Remove inclusion of internal py header files.Damien George
2017-09-19py/objstr: strip: Don't strip "\0" by default.Paul Sokolovsky
2017-09-06py/objstr: Add check for valid UTF-8 when making a str from bytes.tll
2017-08-29all: Convert mp_uint_t to mp_unary_op_t/mp_binary_op_t where appropriateDamien George
2017-08-29py/objstr: startswith, endswith: Check arg to be a string.Paul Sokolovsky
2017-08-13all: Raise exceptions via mp_raise_XXXJavier Candeira
2017-08-09py/objstr: Raise an exception for wrong type on RHS of str binary op.Damien George
2017-07-31all: Use the name MicroPython consistently in commentsAlexander Steffen
2017-07-04py/objstr: Remove unnecessary "sign" variable in formatting code.Damien George
2017-07-02py/objstr: Move uPy function wrappers to just after the C function.Damien George
2017-06-08py/objstr: Allow to compile with obj-repr D, and unicode disabled.Damien George
2017-06-02py/objstr: Catch case of negative "maxsplit" arg to str.rsplit().Damien George
2017-05-29various: Spelling fixesVille Skyttä
2017-04-02py/objstr: Use MICROPY_FULL_CHECKS for range checking when constructing bytes.Paul Sokolovsky
2017-03-29py: Change mp_uint_t to size_t for mp_obj_str_get_data len arg.Damien George