Class StringExtensions
Common functions we'll want to use on Strings. Fiddler makes extensive use of strings which should be interpreted in a case-insensitive manner.
WARNING: Methods assume that the calling object is not null, which is lame for reliability but arguably good for performance.
Inheritance
Namespace: Fiddler
Assembly: FiddlerCore.dll
Syntax
public static class StringExtensions : Object
Methods
OICContains(String, String)
Declaration
public static bool OICContains(this string inStr, string toMatch)
Parameters
System.
|
System.
|
Returns
System.
|
OICEndsWith(String, String)
Declaration
public static bool OICEndsWith(this string inStr, string toMatch)
Parameters
System.
|
System.
|
Returns
System.
|
OICEndsWithAny(String, String[])
Declaration
public static bool OICEndsWithAny(this string inStr, params string[] toMatch)
Parameters
System.
|
System.
|
Returns
System.
|
OICEquals(String, String)
Declaration
public static bool OICEquals(this string inStr, string toMatch)
Parameters
System.
|
System.
|
Returns
System.
|
OICStartsWith(String, String)
Declaration
public static bool OICStartsWith(this string inStr, string toMatch)
Parameters
System.
|
System.
|
Returns
System.
|
OICStartsWithAny(String, String[])
Declaration
public static bool OICStartsWithAny(this string inStr, params string[] toMatch)
Parameters
System.
|
System.
|
Returns
System.
|
TrimAfter(String, Char)
Returns the "Head" of a string, before and not including the first instance of specified delimiter.
Declaration
public static string TrimAfter(this string str, char delimiter)
Parameters
System. The string to trim from. |
System. The delimiting character at which the trim should end. |
Returns
System. Part of a string up to (but not including) chDelim, or the full string if chDelim was not found. |