| ZennoLab.Macros Assembly > ZennoLab.Macros Namespace > TextProcessing Class : Spintax Method |
Type: System.String
The source string.
Type: System.Boolean
Use extended spintax sintax.
public static string Spintax( string sourceString, bool extendedSyntax )
Type: System.String
The source string.
Type: System.Boolean
Use extended spintax sintax.
Type: System.String
A spintaxed string.
var result = Macros.TextProcessing.Spintax("I'm the {first|second|third|fourth|fifth} in line."); return result; // result = "I'm the first in line." or "I'm the second in line.", etc.
$result = Macros::TextProcessing::Spintax("I'm the {first|second|third|fourth|fifth} in line."); return $result; // result = "I'm the first in line." or "I'm the second in line.", etc.
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.
TextProcessing Class
TextProcessing Members
Translate Method
Translit Method