Trim() публичный Метод

public Trim ( ) : void
Результат void
Пример #1
0
 /// <summary>
 /// Builds a text generator based on the given format.
 /// </summary>
 /// <param name="format">The format to parse.</param>
 /// <returns>The text generator.</returns>
 public Generator Compile(string format)
 {
     if (format == null)
     {
         throw new ArgumentNullException("format");
     }
     CompoundGenerator generator = new CompoundGenerator(_masterDefinition, new ArgumentCollection());
     Trimmer trimmer = new Trimmer();
     int formatIndex = buildCompoundGenerator(_masterDefinition, generator, trimmer, format, 0);
     string trailing = format.Substring(formatIndex);
     generator.AddStaticGenerators(trimmer.RecordText(trailing, false, false));
     trimmer.Trim();
     return new Generator(generator);
 }