Class StringHelper
Inheritance
System.Object
StringHelper
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: FixAntenna.Common.dll
Syntax
public static class StringHelper
Methods
GetBytes(String)
Declaration
public static byte[] GetBytes(this string self)
Parameters
Type |
Name |
Description |
System.String |
self |
|
Returns
Type |
Description |
System.Byte[] |
|
GetBytes(String, String)
Declaration
public static byte[] GetBytes(this string self, string encoding)
Parameters
Type |
Name |
Description |
System.String |
self |
|
System.String |
encoding |
|
Returns
Type |
Description |
System.Byte[] |
|
GetBytes(String, Encoding)
Declaration
public static byte[] GetBytes(this string self, Encoding encoding)
Parameters
Type |
Name |
Description |
System.String |
self |
|
System.Text.Encoding |
encoding |
|
Returns
Type |
Description |
System.Byte[] |
|
NewString(Byte[])
Declaration
public static string NewString(byte[] bytes)
Parameters
Type |
Name |
Description |
System.Byte[] |
bytes |
|
Returns
Type |
Description |
System.String |
|
NewString(Byte[], Int32, Int32)
Declaration
public static string NewString(byte[] bytes, int index, int count)
Parameters
Type |
Name |
Description |
System.Byte[] |
bytes |
|
System.Int32 |
index |
|
System.Int32 |
count |
|
Returns
Type |
Description |
System.String |
|
NewString(Byte[], Int32, Int32, String)
Declaration
public static string NewString(byte[] bytes, int index, int count, string encoding)
Parameters
Type |
Name |
Description |
System.Byte[] |
bytes |
|
System.Int32 |
index |
|
System.Int32 |
count |
|
System.String |
encoding |
|
Returns
Type |
Description |
System.String |
|
NewString(Byte[], String)
Declaration
public static string NewString(byte[] bytes, string encoding)
Parameters
Type |
Name |
Description |
System.Byte[] |
bytes |
|
System.String |
encoding |
|
Returns
Type |
Description |
System.String |
|
ReplaceAll(String, String, String)
Declaration
public static string ReplaceAll(this string self, string regex, string replacement)
Parameters
Type |
Name |
Description |
System.String |
self |
|
System.String |
regex |
|
System.String |
replacement |
|
Returns
Type |
Description |
System.String |
|
Split(String, String, Boolean)
Declaration
public static string[] Split(this string self, string regexDelimiter, bool trimTrailingEmptyStrings)
Parameters
Type |
Name |
Description |
System.String |
self |
|
System.String |
regexDelimiter |
|
System.Boolean |
trimTrailingEmptyStrings |
|
Returns
Type |
Description |
System.String[] |
|
StartsWith(String, String, Int32)
Declaration
public static bool StartsWith(this string self, string prefix, int toffset)
Parameters
Type |
Name |
Description |
System.String |
self |
|
System.String |
prefix |
|
System.Int32 |
toffset |
|
Returns
Type |
Description |
System.Boolean |
|
SubstringSpecial(String, Int32, Int32)
Declaration
public static string SubstringSpecial(this string self, int start, int end)
Parameters
Type |
Name |
Description |
System.String |
self |
|
System.Int32 |
start |
|
System.Int32 |
end |
|
Returns
Type |
Description |
System.String |
|
UrlDecode(String)
Declaration
public static string UrlDecode(this string self)
Parameters
Type |
Name |
Description |
System.String |
self |
|
Returns
Type |
Description |
System.String |
|
UrlEncode(String)
Declaration
public static string UrlEncode(this string self)
Parameters
Type |
Name |
Description |
System.String |
self |
|
Returns
Type |
Description |
System.String |
|