コード例 #1
0
 public static string Formatted(this string str, NamedArgument arg1)
 {
     argsLabels.Clear();
     argsObjects.Clear();
     argsLabels.Add(arg1.label);
     argsObjects.Add(arg1.arg);
     return(GrammarResolverSimple.Formatted(str, argsLabels, argsObjects));
 }
コード例 #2
0
 public static string Formatted(this string str, NamedArgument arg1, NamedArgument arg2)
 {
     GrammarResolverSimpleStringExtensions.argsLabels.Clear();
     GrammarResolverSimpleStringExtensions.argsObjects.Clear();
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg1.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg1.arg);
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg2.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg2.arg);
     return(GrammarResolverSimple.Formatted(str, GrammarResolverSimpleStringExtensions.argsLabels, GrammarResolverSimpleStringExtensions.argsObjects));
 }
コード例 #3
0
 public static string Formatted(this string str, params NamedArgument[] args)
 {
     argsLabels.Clear();
     argsObjects.Clear();
     for (int i = 0; i < args.Length; i++)
     {
         argsLabels.Add(args[i].label);
         argsObjects.Add(args[i].arg);
     }
     return(GrammarResolverSimple.Formatted(str, argsLabels, argsObjects));
 }
 public static TaggedString Formatted(this string str, NamedArgument arg1, NamedArgument arg2, NamedArgument arg3, NamedArgument arg4, NamedArgument arg5)
 {
     argsLabels.Clear();
     argsObjects.Clear();
     argsLabels.Add(arg1.label);
     argsObjects.Add(arg1.arg);
     argsLabels.Add(arg2.label);
     argsObjects.Add(arg2.arg);
     argsLabels.Add(arg3.label);
     argsObjects.Add(arg3.arg);
     argsLabels.Add(arg4.label);
     argsObjects.Add(arg4.arg);
     argsLabels.Add(arg5.label);
     argsObjects.Add(arg5.arg);
     return(GrammarResolverSimple.Formatted(str, argsLabels, argsObjects));
 }
コード例 #5
0
 public static string Formatted(this string str, NamedArgument arg1, NamedArgument arg2, NamedArgument arg3, NamedArgument arg4, NamedArgument arg5, NamedArgument arg6, NamedArgument arg7, NamedArgument arg8)
 {
     GrammarResolverSimpleStringExtensions.argsLabels.Clear();
     GrammarResolverSimpleStringExtensions.argsObjects.Clear();
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg1.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg1.arg);
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg2.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg2.arg);
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg3.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg3.arg);
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg4.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg4.arg);
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg5.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg5.arg);
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg6.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg6.arg);
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg7.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg7.arg);
     GrammarResolverSimpleStringExtensions.argsLabels.Add(arg8.label);
     GrammarResolverSimpleStringExtensions.argsObjects.Add(arg8.arg);
     return(GrammarResolverSimple.Formatted(str, GrammarResolverSimpleStringExtensions.argsLabels, GrammarResolverSimpleStringExtensions.argsObjects));
 }