std:string
std:string
std:string provides explicit string helpers.
import String from 'std:string'Representative API
String.length = (value: String): NumberString.uppercase = (value: String): StringString.lowercase = (value: String): StringString.trim = (value: String): StringString.split = (separator: String, value: String): String[]String.join = (separator: String, values: String[]): StringString.startsWith = (prefix: String, value: String): BooleanString.endsWith = (suffix: String, value: String): BooleanString.contains = (part: String, value: String): BooleanString.isDigits = (value: String): BooleanExample
normalized = text |> String.trim |> String.lowercaseComparison to JavaScript
Instead of instance methods like text.trim(), FScript uses imported helpers so the standard library stays explicit and uniform.