12 Commits

Author SHA1 Message Date
Kay Hayen
718ab60539 Bump copyright year 2025-04-28 11:04:36 +02:00
Kay Hayen
f34f8d0c63 Bump copyright year
* Also split copyright notices between the top and bottom,
  such that readability of just opened files is not harmed
  by license text.
2024-12-18 10:48:16 +01:00
Kay Hayen
909d41f02d Bump copyright year 2023-06-02 15:07:22 +02:00
Kay Hayen
ba9099fbb0 Minor cleanup
* This was duplicated for no reason.
2022-09-18 11:19:58 +02:00
Kay Hayen
d60072a0b0 Optimization: Added missing str methods, even if less relevant
* This adds "str.expandtabs", "str.translate", "str.ljust",
  "str.rjust", "str.center", "str.zfill", and "str.splitlines".

* While these are barely performance relevant, it's nice to have
  one type, str, complete at least.
2022-09-18 10:58:37 +02:00
Kay Hayen
4cfdd9f9c0 Bump copyright year 2022-05-23 10:28:11 +02:00
Kay Hayen
56b1df4fc6 Optimization: Added support for 'str.count' optimization 2022-05-23 10:28:11 +02:00
Kay Hayen
39b76368e3 Tests: Make reference count check work for generated tests 2022-05-23 10:28:11 +02:00
Kay Hayen
3e68abb376 Tests: Check reference counts with method tests 2022-05-19 13:57:04 +02:00
Kay Hayen
40a5c6f8e1 Tests: Enhanced generated tests to cover str keyword arguments
* Also other cleanups for spellings.
2022-05-15 23:11:34 +02:00
Kay Hayen
033f6b5a59 Optimization: Added support for more str builtin methods
* This covers "str.encode" and Python2 only "str.decode".
2021-12-21 23:18:31 +01:00
Kay Hayen
28f0b3f4d0 Optimization: Added support for many str operations
* Firstly , add all methods with no arguments, as these are very generic
  to add, introduced a base class for them, where we know they all have
  no effect or raise, as these functions are all guarantueed to succeed.

* This covers "str.capitalize", "str.upper", "str.lower", "str.swapcase",
  "str.title", "str.isalnum", "str.isalpha", "str.isdigit", "str.islower",
  "str.isupper", "str.isspace", "str.istitle" functions.

* Also add support for 'str.index', 'str.rindex' which is very similar
  to 'str.find', just may raise an exception.

* Also add support for 'str.split' which will be used sometimes for code
  needed to be compile time computed.

* Also add generated test to cover all str methods easily.
2021-12-21 23:17:45 +01:00