41 public string File {
get;
private set; }
44 public string NewLine {
get;
private set; }
46 public CGenerator(
System.IO.TextWriter outputStream,
string file, uint indentCount,
string indentChar,
string newLine)
59 if (!String.IsNullOrWhiteSpace(
this.File))
61 return Path.GetFileName(this.
File);
70 while (repetitions > 0)
93 if (String.IsNullOrEmpty(value))
99 string[] lines = value.Split(
new char[] {
'\n' }, StringSplitOptions.None);
101 for (
int l = 0; l < (lines.Length - 1); l++)
103 if (lines[l].EndsWith(
"\r"))
105 this.
OutputStream.Write(lines[l].Substring(0, lines[l].Length-1));
CGenerator(System.IO.TextWriter outputStream, string file, uint indentCount, string indentChar, string newLine)
void IndentLine(int level)
void WriteMultilineString(string value, int level=0)
void WriteSequence(string value, uint repetitions)