Source/NFX/Parsing/Utils.cs
/// <summary>
/// Puts every sentence on a separate line
/// </summary>
Puts every sentence on a separate line
Puts every sentence on a separate line
public static string MakeSentenceLines(this string text)
    {
      StringBuilder result = new StringBuilder();
      for (int i = 0; i < text.Length; i++)
      {
        Char c = text[i];
        result.Append(c);
        if ((c == '.') ||
            (c == ';') ||
            (c == '?') ||
            (c == '!'))
          result.Append("\n");
      }
      return result.ToString();
    }
public static string MakeSentenceLines ( this string text ) { StringBuilder result = new StringBuilder ( ) ; for ( int i = 0 ; i < text . Length ; i ++ ) { Char c = text [ i ] ; result . Append ( c ) ; if ( ( c == ' ' ) || ( c == ' ' ) || ( c == ' ' ) || ( c == ' ' ) ) result . Append ( " \n " ) ; } return result . ToString ( ) ; }
Puts every sentence on a separate line
Puts every sentence on a separate line
string
this