Length() public méthode

This will return the number of bytes that have been appended to the Template. This will return zero after the clear method has been invoked.
public Length ( ) : int
Résultat int
Exemple #1
0
 /// <summary>
 /// This method is used to extract text from the property value
 /// that matches the pattern "${ *TEXT }". Such patterns within
 /// the properties file are considered to be system
 /// variables, this will replace instances of the text pattern
 /// with the matching system variable, if a matching
 /// variable does not exist the value remains unmodified.
 /// </summary>
 public void Name()
 {
     while (off < source.count)
     {
         char next = source.buf[off++];
         if (next == '}')
         {
             Replace();
             break;
         }
         else
         {
             name.Append(next);
         }
     }
     if (name.Length() > 0)
     {
         text.Append("${");
         text.Append(name);
     }
 }