Reference · Workflows and history · library.rs

sanitize Function

A file name that saves anywhere: no path separators, no leading dots, not too long.

func sanitize(name: String) -> String

Parameters

NameTypeSwift / C#
nameStringname

Returns

String

Errors

Does not throw.

Signatures are generated from the engine’s code. Swift is checked against the generated bindings; C# follows the bindings generator’s naming rules.