SplitScript reference / Migration / Last substring position
Last substring position
Migration from C#
Source pattern
Look for the C# concept Last 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 lastIndexOf for an optional final 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.lastIndexOf (standard library)