- Nov 26, 2018
-
-
Damien George authored
-
- Feb 14, 2018
-
-
Damien George authored
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).
-
- Sep 06, 2017
-
-
tll authored
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.
-
- Jul 31, 2017
-
-
Alexander Steffen authored
There were several different spellings of MicroPython present in comments, when there should be only one.
-
- Dec 28, 2016
-
-
Damien George authored
-
- Feb 17, 2016
-
-
Alex March authored
- As described in the #1850. - Add cmdline tests.
-
- May 20, 2015
-
-
Dave Hylands authored
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.
-
Dave Hylands authored
This also pulls out hex_digit from py/lexer.c and makes unichar_hex_digit
-
- Apr 09, 2015
-
-
Damien George authored
-
- Jan 01, 2015
-
-
Damien George authored
Addresses issue #1022.
-
- Dec 10, 2014
-
-
Damien George authored
-
- Jul 03, 2014
-
-
Damien George authored
See discussion in issue #50.
-
- Jun 28, 2014
-
-
Paul Sokolovsky authored
-
Damien George authored
-
- Jun 26, 2014
-
-
Paul Sokolovsky authored
Based on config define.
-
Paul Sokolovsky authored
Useful when we have pointer to char inside string, but need to return char index. (E.g. str.find()).
-
Chris Angelico authored
-
- Jun 21, 2014
-
-
Paul Sokolovsky authored
It defines types used by all other headers. Fixes #691.
-
- Jun 14, 2014
-
-
Paul Sokolovsky authored
We still have that char vs byte dichotomy, but majority of string operations now use byte.
-
- May 11, 2014
-
-
Damien George authored
-
- May 10, 2014
-
-
Paul Sokolovsky authored
-
- May 03, 2014
-
-
Damien George authored
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/.
-
- Apr 10, 2014
-
-
Damien George authored
Eg, in CPython stdlib, email/header.py has a form-feed character.
-
- Feb 12, 2014
-
-
Paul Sokolovsky authored
-
- Jan 22, 2014
-
-
Paul Sokolovsky authored
-
- Jan 06, 2014
- Dec 30, 2013
-
-
Damien George authored
-
- Oct 04, 2013
-
-
Damien authored
-