Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds rudimentary support for constructing MIR
str
slice references via the newmir_str_slice_value
andmir_str_slice_range_value
SAWScript functions. These behave much like their cousinsmir_slice_value
andmir_slice_range_value
(which work for array slices), except that they return something of type&str
instead of, say,&[u8]
. See the manual for the full details and current limitations of the approach.The
mir_str_slice_value
/mir_str_slice_range_value
functions mostly share the same implementation asmir_slice_value
/mir_slice_range_value
, except for some minor differences regarding how the underlying types are handled. There is now a newMirSliceInfo
data type that signals whether we are dealing with astr
slice or an array slice.Fixes #1997.