| C# | |
|---|---|
public static string Spintax( string sourceString ) | |
Parameters
- sourceString
Type: System.String
Source string.
Return Value
Type: System.String
A spintaxed string.
The following example shows call the Spintax method.
| C# | Copy Code |
|---|---|
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. | |
| PHP | Copy Code |
|---|---|
$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