Reference · Rules and helpers · rules.rs

result_name Function

"Mietvertrag.pdf" + "klein" → "Mietvertrag-klein". A suffix the name already ends with ("Fotos" + "fotos") or one that only names the format ("pdf") is left off.

func resultName(source: String, suffix: String) -> String

Parameters

NameTypeSwift / C#
sourceStringsource
suffixStringsuffix

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.