SplitScript reference / Migration / Substring extraction

Substring extraction

Migration from C#

Source pattern

Look for the C# concept Substring extraction in the source. The semantic difference below is more important than a token-for-token rewrite.

Canonical SplitScript

Use the canonical language and API symbols linked below.

Semantic difference

Use fallible slice(start, exclusiveEnd) only after translating C#'s length argument and verifying that UTF-16 source positions are valid UTF-8 byte offsets.

Supported hosts

This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.