53 Commits (c769da1aaa28fb0eba9fabfba84c39cbc09e23da)

Author SHA1 Message Date
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
Paul Sokolovsky ae9c82d5f3 objstr: str_uni_istype(): Spurious whitespace on empty lines. 11 years ago
Paul Sokolovsky f69b9d379c objstr: str_uni_istype(): Codestyle. 11 years ago
Kim Bauters a3f4b83018 add methods isspace(), isalpha(), isdigit(), isupper() and islower() to str 11 years ago
Paul Sokolovsky 8827682b35 objstr: *strip(): If nothing is stripped, don't create dup string. 11 years ago
Paul Sokolovsky bcdffe53c6 objstr: *strip(): Fix handling of one-char subject strings. 11 years ago
Damien George f600a6a085 py: Slightly improve efficiency of mp_obj_new_str; rename str_new. 11 years ago
Damien George 2617eebf2f Change const byte* to const char* where sensible. 11 years ago
Paul Sokolovsky 5fd5af98d0 objlist: Implement support for arbitrary (3-arg) slices. 11 years ago
Paul Sokolovsky de4b9329f9 py: Refactor slice helpers, preparing to support arbitrary slicing. 11 years ago
Paul Sokolovsky 69d081a7cf py: Handle case of slice start > stop in common sequence function. 11 years ago
Paul Sokolovsky afaaf535e6 objslice: Support arbitrary objects start, stop, and step. 11 years ago
Damien George ee3fd46f13 Rename configuration variables controling Python features. 11 years ago
Paul Sokolovsky d098c6bf85 objstr: Implement .endswith(). 11 years ago
Damien George 6ac5dced24 py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL. 11 years ago
Paul Sokolovsky c18ef2a9dd objstr: startswith(): Accept optional "start" arg. 11 years ago
Paul Sokolovsky 70328e419a py: Implement more complete bytes comparison handling. 11 years ago
Paul Sokolovsky a47b64ae2d objstringio: Implement io.BytesIO. 11 years ago
Paul Sokolovsky 2a27365854 objstr.c: Partial implementation of .rsplit(). 11 years ago
Paul Sokolovsky da9f0924ef py, unix: Add copyright for modules I worked closely on. 11 years ago
Paul Sokolovsky 5ebd5f0f19 objstr: Slice indexing: support bytes properly. 11 years ago
Paul Sokolovsky bfb8819c0c objstr: Make .split() support bytes. 11 years ago
Paul Sokolovsky 5e5d69b35e objstr: Make .join() support bytes. 11 years ago
Paul Sokolovsky eea0118654 py: Give up and make mp_obj_str_get_data() deal with bytes too. 11 years ago
Paul Sokolovsky b2d4fc06fc objstr: Make *strip() accept bytes. 11 years ago
Paul Sokolovsky 69f3eb2c96 objstr: Make .[r]partition() work with bytes. 11 years ago
Paul Sokolovsky d915a52eb6 py: Fix prefix on few sequence helpers, was incorrectly "mp_". 11 years ago
Paul Sokolovsky 6913521911 objstr: Implement .lower() and .upper(). 11 years ago
Damien George d0a5bf34f7 py: Tidy up returning NULL which should be MP_OBJ_NOT_SUPPORTED. 11 years ago
Paul Sokolovsky 7b0f9a7d9b bytes: Implement comparison and other binary operations. 11 years ago
Paul Sokolovsky b473d0ae86 py: bytes(), str(): Add NotImplementedError for kwargs. 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Paul Sokolovsky f54bcbf099 py, unix: Make "mpconfig.h" be first included, as other headers depend on it. 11 years ago
Paul Sokolovsky e908591baa py: Abstract no-return attribute for functions a bit. 11 years ago
Paul Sokolovsky e14d096cb7 objstr: Optimize .rstrip() by scanning string from end. 11 years ago
Paul Sokolovsky 881078403e objstr: Implement .lstrip() & .rstrip(). 11 years ago
Paul Sokolovsky 504e23388c objstr: Init hash in mp_obj_str_builder_start() to 0. 11 years ago