Skip to content

Commit

Permalink
Improvements to strings and arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
gershnik committed Aug 30, 2024
1 parent c912b0d commit 7ce9811
Show file tree
Hide file tree
Showing 9 changed files with 456 additions and 328 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,21 @@ All notable changes to this project will be documented in this file.

## Unreleased

### Native Code
* `java_string_create` now has overloads that accept `char8_t *`, `(char8_t *, size_t)`, `char16_t *`, `(char16_t *, size_t)` and, under C++20, any contiguous range of these types (e.g. `std::vector`, `std::string_view`, `std::span` etc.)
* `java_string_access` is now movable
* `java_string_access` gained more vector-like methods: `cbegin`, `cend`, `rbegin`, `rend`, `crbegin`, `crend`, `data`, `empty`, `at`, `front` and `back`.
* `java_array_access` is now properly movable
* `java_array_access::at()` is no longer erroneously marked `noexcept`
* Under C++20, `java_array_access` now properly satisfies `std::ranges::contiguous_range` concept for arrays of primitive types and `std::ranges::random_access_range` for arrays of objects.
* Various bug fixes for `java_array_access` iterator methods
* Under C++20, `java_array_create` for primitive array types now accepts any input range as source
* Under C++20, `java_array_get_region` and `java_array_get_region` now accept any contiguous ranges as source/destination

### Annotation processors
* Kotlin version required updated to 1.9.24
* KSP code generator now requires KSP version 1.9.24-1.0.20

## [3.10] - 2024-05-09

### Native Code
Expand Down
Loading

0 comments on commit 7ce9811

Please sign in to comment.