/[dotgnu-pnet]/pnetlib/runtime/System/String.cs
ViewVC logotype

Diff of /pnetlib/runtime/System/String.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.40 by ktreichel, Mon Nov 22 12:51:07 2004 UTC revision 1.41 by darkdust, Wed May 25 14:09:59 2005 UTC
# Line 1591  public sealed class String : IComparable Line 1591  public sealed class String : IComparable
1591          // Trim specific characters from the end of a string.          // Trim specific characters from the end of a string.
1592          public String TrimEnd(params char[] trimChars)          public String TrimEnd(params char[] trimChars)
1593                          {                          {
1594                                  if(trimChars != null)                                  if((trimChars != null) && (trimChars.Length > 0))
1595                                  {                                  {
1596                                          return Trim(trimChars, TrimFlag_End);                                          return Trim(trimChars, TrimFlag_End);
1597                                  }                                  }
# Line 1604  public sealed class String : IComparable Line 1604  public sealed class String : IComparable
1604          // Trim specific characters from the start of a string.          // Trim specific characters from the start of a string.
1605          public String TrimStart(params char[] trimChars)          public String TrimStart(params char[] trimChars)
1606                          {                          {
1607                                  if(trimChars != null)                                  if((trimChars != null) && (trimChars.Length > 0))
1608                                  {                                  {
1609                                          return Trim(trimChars, TrimFlag_Front);                                          return Trim(trimChars, TrimFlag_Front);
1610                                  }                                  }

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26