Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Paste()

static string System.PasteArguments.Paste ( IEnumerable< string > arguments,
bool pasteFirstArgumentUsingArgV0Rules )
inlinestaticpackage

Definition at line 74 of file PasteArguments.cs.

75 {
78 foreach (string argument in arguments)
79 {
81 {
83 bool flag = false;
84 string text = argument;
85 foreach (char c in text)
86 {
87 if (c == '"')
88 {
89 throw new ApplicationException(SR.Argv_IncludeDoubleQuote);
90 }
91 if (char.IsWhiteSpace(c))
92 {
93 flag = true;
94 }
95 }
96 if (argument.Length == 0 || flag)
97 {
98 stringBuilder.Append('"');
99 stringBuilder.Append(argument);
100 stringBuilder.Append('"');
101 }
102 else
103 {
104 stringBuilder.Append(argument);
105 }
106 }
107 else
108 {
110 }
111 }
112 return stringBuilder.ToString();
113 }
static void AppendArgument(ref System.Text.ValueStringBuilder stringBuilder, string argument)

References System.PasteArguments.AppendArgument(), System.SR.Argv_IncludeDoubleQuote, and System.text.