- XTreePropertyGrid.zip
- XTreePropertyGrid
- Clifton.Tools.Strings
- Clifton.Windows.Forms
- Myxaml 2.0
- MyXaml.Core
- MyXaml.WinForms
- ROPLib
- UnitTest
- XTreeIIDemo
- XTreeInterfaces
|
using System;
using System.Collections.Generic;
using System.Text;
namespace Clifton.Tools.Strings.Extensions
{
public static class StringHelpersExtensions
{
public static string Quote(this String src)
{
return "\"" + src + "\"";
}
public static string Between(this String src, char c1, char c2)
{
return Clifton.Tools.Strings.StringHelpers.Between(src, c1, c2);
}
public static string RightOf(this String src, char c)
{
return Clifton.Tools.Strings.StringHelpers.RightOf(src, c);
}
public static string LeftOf(this String src, char c)
{
return Clifton.Tools.Strings.StringHelpers.LeftOf(src, c);
}
public static char Rightmost(this String src)
{
return Clifton.Tools.Strings.StringHelpers.Rightmost(src);
}
public static string TrimLastChar(this String src)
{
string ret = String.Empty;
int len = src.Length;
if (len > 1)
{
ret = src.Substring(0, len - 1);
}
return ret;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.