SplitScript reference / Migration / Substring position
Substring position
Migration from C#
Source pattern
Look for the C# concept Substring position 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 indexOf for an optional UTF-8 byte offset; review C# UTF-16 index arithmetic and replace the -1 sentinel with T? handling.
Supported hosts
This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.
Related reference
-
String.indexOf (standard library)