Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-11-26 | py/unicode: Fix check for valid utf8 being stricter about contn chars. | Damien George | |
2018-02-14 | py/unicode: Clean up utf8 funcs and provide non-utf8 inline versions. | Damien George | |
This patch provides inline versions of the utf8 helper functions for the case when unicode is disabled (MICROPY_PY_BUILTINS_STR_UNICODE set to 0). This saves code size. The unichar_charlen function is also renamed to utf8_charlen to match the other utf8 helper functions, and the signature of this function is adjusted for consistency (const char* -> const byte*, mp_uint_t -> size_t). | |||
2017-09-06 | py/objstr: Add check for valid UTF-8 when making a str from bytes. | tll | |
This patch adds a function utf8_check() to check for a valid UTF-8 encoded string, and calls it when constructing a str from raw bytes. The feature is selectable at compile time via MICROPY_PY_BUILTINS_STR_UNICODE_CHECK and is enabled if unicode is enabled. It costs about 110 bytes on Thumb-2, 150 bytes on Xtensa and 170 bytes on x86-64. | |||
2017-07-31 | all: Use the name MicroPython consistently in comments | Alexander Steffen | |
There were several different spellings of MicroPython present in comments, when there should be only one. | |||
2016-12-28 | py/unicode: Comment-out unused function unichar_isprint. | Damien George | |
2016-02-17 | py/repl: Check for an identifier char after the keyword. | Alex March | |
- As described in the #1850. - Add cmdline tests. | |||
2015-05-20 | py: Minor improvement to unichar_isxdigit | Dave Hylands | |
This drops the size of unicode_isxdigit from 0x1e + 0x02 filler to 0x14 bytes (so net code reduction of 12 bytes) and will make unicode_is_xdigit perform slightly faster. | |||
2015-05-20 | extmod: Add ubinascii.unhexlify | Dave Hylands | |
This also pulls out hex_digit from py/lexer.c and makes unichar_hex_digit | |||
2015-04-09 | py: Adjust some spaces in code style/format, purely for consistency. | Damien George | |
2015-01-01 | py: Move to guarded includes, everywhere in py/ core. | Damien George | |
Addresses issue #1022. | |||
2014-12-10 | py: Tidy up a few function declarations. | Damien George | |
2014-07-03 | Rename machine_(u)int_t to mp_(u)int_t. | Damien George | |
See discussion in issue #50. | |||
2014-06-28 | py: Make unichar_charlen() accept/return machine_uint_t. | Paul Sokolovsky | |
2014-06-28 | py: Small comments, name changes, use of machine_int_t. | Damien George | |
2014-06-27 | unicode: Make get_char()/next_char()/charlen() be 8-bit compatible. | Paul Sokolovsky | |
Based on config define. | |||
2014-06-27 | unicode: Add utf8_ptr_to_index(). | Paul Sokolovsky | |
Useful when we have pointer to char inside string, but need to return char index. (E.g. str.find()). | |||
2014-06-27 | py: Implement basic unicode functions. | Chris Angelico | |
2014-06-21 | py: Include mpconfig.h before all other includes. | Paul Sokolovsky | |
It defines types used by all other headers. Fixes #691. | |||
2014-06-14 | unicode: String API is const byte*. | Paul Sokolovsky | |
We still have that char vs byte dichotomy, but majority of string operations now use byte. | |||
2014-05-11 | py: Rename some unichar functions for consistency. | Damien George | |
2014-05-10 | objstr: Implement .lower() and .upper(). | Paul Sokolovsky | |
2014-05-03 | Add license header to (almost) all files. | Damien George | |
Blanket wide to all .c and .h files. Some files originating from ST are difficult to deal with (license wise) so it was left out of those. Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/. | |||
2014-04-10 | py: Make form-feed character a space (following C isspace). | Damien George | |
Eg, in CPython stdlib, email/header.py has a form-feed character. | |||
2014-02-12 | Replace global "static" -> "STATIC", to allow "analysis builds". Part 2. | Paul Sokolovsky | |
2014-01-22 | Implement octal and hex escapes in strings. | Paul Sokolovsky | |
2013-12-30 | Put unicode functions in unicode.c, and tidy their names. | Damien George | |