You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
summary:"Use `padStart(width, fill)` or `padEnd(width, fill)` with an explicit character; review C# UTF-16 widths against SplitScript's Unicode-scalar widths.",
Copy file name to clipboardExpand all lines: docs/MIGRATION_CAPABILITIES.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ This index maps common source-language concepts to canonical SplitScript APIs an
18
18
|`string.last-index-of` — Last substring position | C# | Use a typed pattern | Use `lastIndexOf` for an optional final UTF-8 byte offset; review C# UTF-16 index arithmetic and replace the `-1` sentinel with Option handling. Canonical targets: `String.lastIndexOf`. [Recipe](ASL_PORTING.md#c-string-operations). |
19
19
|`string.replacement` — Exact string replacement | C# | Use a typed pattern | Use fallible `replaceAll` for immutable exact replacement; explicitly handle failure and translate a null C# replacement to an empty string only when deletion was intended. Canonical targets: `String.replaceAll`. [Recipe](ASL_PORTING.md#c-string-operations). |
20
20
|`string.ascii-trim` — ASCII whitespace trimming | C# | Use a typed pattern | Use `trimAsciiWhitespace` for text known to use ASCII boundary whitespace; review Unicode and character-set trimming explicitly. Canonical targets: `String.trimAsciiWhitespace`. [Recipe](ASL_PORTING.md#c-string-operations). |
21
+
|`string.padding` — String padding | C# | Use a typed pattern | Use `padStart(width, fill)` or `padEnd(width, fill)` with an explicit character; review C# UTF-16 widths against SplitScript's Unicode-scalar widths. Canonical targets: `String.padStart`, `String.padEnd`. [Recipe](ASL_PORTING.md#c-string-operations). |
21
22
|`string.null-or-empty` — Nullable string emptiness | C# | Use a typed pattern | Use `String.isEmpty` for required strings and match `String?` explicitly when absence should also count as empty. Canonical targets: `String.isEmpty`. [Recipe](ASL_PORTING.md#c-string-operations). |
22
23
|`string.join` — String collection joining | C# | Use a typed pattern | Use `String.join(values, separator)` for a typed string array; convert C# object, variadic, enumerable, and range overloads explicitly. Canonical targets: `String.join`. [Recipe](ASL_PORTING.md#c-string-operations). |
23
24
|`string.numeric-parse` — Numeric string parsing | C# | Supported directly | Replace static Parse/TryParse calls and output parameters with fallible `text.parse()` and ordinary Result handling. Canonical targets: `String.parse`. [Recipe](ASL_PORTING.md#c-string-operations). |
0 commit comments