| ZennoLab.Macros Assembly > ZennoLab.Macros Namespace > TextProcessing Class : Spintax Method |
Type: System.String
Source string.
public static string Spintax( string sourceString )
Type: System.String
Source string.
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: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family