<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/py/unicode.c, branch 5.0.0</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=5.0.0</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=5.0.0'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2018-02-14T07:19:22+00:00</updated>
<entry>
<title>py/unicode: Clean up utf8 funcs and provide non-utf8 inline versions.</title>
<updated>2018-02-14T07:19:22+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2018-02-14T07:19:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=19aee9438a7a8cf8539536dab5147aedb6b16bb3'/>
<id>urn:sha1:19aee9438a7a8cf8539536dab5147aedb6b16bb3</id>
<content type='text'>
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* -&gt; const byte*, mp_uint_t -&gt; size_t).
</content>
</entry>
<entry>
<title>py/objstr: Add check for valid UTF-8 when making a str from bytes.</title>
<updated>2017-09-06T06:43:09+00:00</updated>
<author>
<name>tll</name>
<email>1040424979@qq.com</email>
</author>
<published>2017-06-24T00:38:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=68c28174d0e0ec3f6b1461aea3a0b6a1b84610bb'/>
<id>urn:sha1:68c28174d0e0ec3f6b1461aea3a0b6a1b84610bb</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>all: Use the name MicroPython consistently in comments</title>
<updated>2017-07-31T08:35:40+00:00</updated>
<author>
<name>Alexander Steffen</name>
<email>devel.20.webmeister@spamgourmet.com</email>
</author>
<published>2017-06-30T07:22:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=55f33240f3d7051d4213629e92437a36f1fac50e'/>
<id>urn:sha1:55f33240f3d7051d4213629e92437a36f1fac50e</id>
<content type='text'>
There were several different spellings of MicroPython present in comments,
when there should be only one.
</content>
</entry>
<entry>
<title>py/unicode: Comment-out unused function unichar_isprint.</title>
<updated>2016-12-28T06:50:10+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-12-28T06:50:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=afc50635396cc8c0a686094993e42afb775d4a99'/>
<id>urn:sha1:afc50635396cc8c0a686094993e42afb775d4a99</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py/repl: Check for an identifier char after the keyword.</title>
<updated>2016-02-17T08:56:15+00:00</updated>
<author>
<name>Alex March</name>
<email>alex.march.dev@gmail.com</email>
</author>
<published>2016-02-16T13:36:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=69d9e7d27d62d54c0625d4181c80478b0313384d'/>
<id>urn:sha1:69d9e7d27d62d54c0625d4181c80478b0313384d</id>
<content type='text'>
- As described in the #1850.
- Add cmdline tests.
</content>
</entry>
<entry>
<title>py: Minor improvement to unichar_isxdigit</title>
<updated>2015-05-20T08:31:22+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2015-05-19T23:41:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=afaa66b657e0edc4f73dd01258327a28e552f65d'/>
<id>urn:sha1:afaa66b657e0edc4f73dd01258327a28e552f65d</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>extmod: Add ubinascii.unhexlify</title>
<updated>2015-05-20T08:29:22+00:00</updated>
<author>
<name>Dave Hylands</name>
<email>dhylands@gmail.com</email>
</author>
<published>2015-05-18T21:41:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=3ad94d6072555955a796c8c72a526c4fdff86711'/>
<id>urn:sha1:3ad94d6072555955a796c8c72a526c4fdff86711</id>
<content type='text'>
This also pulls out hex_digit from py/lexer.c and makes unichar_hex_digit
</content>
</entry>
<entry>
<title>py: Adjust some spaces in code style/format, purely for consistency.</title>
<updated>2015-04-09T15:29:54+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-04-09T15:29:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=4dea922610c8ea6af285cd49b0a531d4941d820f'/>
<id>urn:sha1:4dea922610c8ea6af285cd49b0a531d4941d820f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>py: Move to guarded includes, everywhere in py/ core.</title>
<updated>2015-01-01T20:32:09+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-01-01T20:27:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=51dfcb4bb7613ed164952712d9a5235a7b833cde'/>
<id>urn:sha1:51dfcb4bb7613ed164952712d9a5235a7b833cde</id>
<content type='text'>
Addresses issue #1022.
</content>
</entry>
<entry>
<title>py: Tidy up a few function declarations.</title>
<updated>2014-12-10T22:37:07+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2014-12-10T22:37:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=5318cc028aef9eb3edd88b01cd0e5b43c378fd83'/>
<id>urn:sha1:5318cc028aef9eb3edd88b01cd0e5b43c378fd83</id>
<content type='text'>
</content>
</entry>
</feed>
