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 |
} |
} |
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 |
} |
} |