SplitScript reference / Migration / String length
String length
Migration from C#
Source pattern
Look for the C# concept String length 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 isEmpty() for emptiness and byteLength() only for UTF-8 byte-oriented or proven ASCII logic; C# Length counts UTF-16 code units.
Supported hosts
This uses the standard SplitScript runtime contract. Any provider-specific requirements are documented by the linked canonical API.
Related reference
-
String.isEmpty (standard library)
-
String.byteLength (standard library)