Skip to content
Snippets Groups Projects
  1. Nov 26, 2018
  2. Feb 14, 2018
    • Damien George's avatar
      py/unicode: Clean up utf8 funcs and provide non-utf8 inline versions. · 19aee943
      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).
      19aee943
  3. Sep 06, 2017
    • tll's avatar
      py/objstr: Add check for valid UTF-8 when making a str from bytes. · 68c28174
      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.
      68c28174
  4. Jul 31, 2017
  5. Dec 28, 2016
  6. Feb 17, 2016
  7. May 20, 2015
  8. Apr 09, 2015
  9. Jan 01, 2015
  10. Dec 10, 2014
  11. Jul 03, 2014
  12. Jun 28, 2014
  13. Jun 26, 2014
  14. Jun 21, 2014
  15. Jun 14, 2014
  16. May 11, 2014
  17. May 10, 2014
  18. May 03, 2014
    • Damien George's avatar
      Add license header to (almost) all files. · 04b9147e
      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/.
      04b9147e
  19. Apr 10, 2014
  20. Feb 12, 2014
  21. Jan 22, 2014
  22. Jan 06, 2014
  23. Dec 30, 2013
  24. Oct 04, 2013
Loading