julia
strings: type assert in the generic `nextind`, `prevind` methods
#57608
Merged

strings: type assert in the generic `nextind`, `prevind` methods #57608

nsajko
nsajko nsajko added strings
nsajko nsajko added invalidations
nsajko
nsajko nsajko force pushed from 009b7732 to 6b0037f7 294 days ago
Moelf
nsajko strings: type assert `Int` in the generic `nextind`, `prevind` methods
0f43d993
nsajko add test
f8c883f6
nsajko stronger assertions
1c86f6d2
nsajko delete unnecessary type asserts on `i`
17e384ef
nsajko instead of doing `n::Int` do `isvalid(...)::Bool`
400ca90d
nsajko also type assert `thisind` and `ncodeunits` calls
7b174df7
nsajko nsajko force pushed from 5ce1cc42 to 7b174df7 294 days ago
nsajko
nsajko nsajko changed the title strings: type assert `Int` in the generic `nextind`, `prevind` methods strings: type assert in the generic `nextind`, `prevind` methods 294 days ago
fingolfin
fingolfin approved these changes on 2025-03-03
fingolfin fingolfin merged 6c9c336d into master 293 days ago
nsajko nsajko deleted the Base_strings_prevind_nextind_type_assert branch 293 days ago
nsajko nsajko added backport 1.10
nsajko nsajko added backport 1.11
nsajko nsajko added backport 1.12
KristofferC KristofferC removed backport 1.12
KristofferC KristofferC removed backport 1.11

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone