Method | Description | |
---|---|---|
AppendMessage ( StringBuilder origStringBuilder, string appendedString, string separator ) : StringBuilder |
Appends a given message to an existing message contained in a string builder
|
|
AppendMessage ( string origMessage, string messageToAppend ) : string |
Appends a given message to an existing message, inserting a new line (carriage return) between the messages
|
|
AppendMessage ( string origMessage, string messageToAppend, string separator ) : string |
Appends a given message to an existing message, using the given separator betweeen the two parts. Ensures that the seperator is only inserted between two appended messages. I.e. there will never be a trailing seperator.
|
|
BoolTryParse ( object valueToParse, bool &result ) : bool |
Converts a string representing a boolean in one of many formats.
|
|
Camelize ( string input ) : string |
Camel cases the input, removing spaces.
|
|
Classify ( string input ) : string |
Create a classification of the input this is a Singular of the input Camel cased.
|
|
CountOccurrences ( string fullText, char token ) : int |
Indicates the number of times a given token appears in a string
|
|
CountOccurrences ( string fullText, char token, int startIndex, int length ) : int |
Indicates the number of times a given token appears in a string
|
|
CountOccurrences ( string fullText, string searchText ) : int |
Indicates the number of times a given string appears in a larger string
|
|
CountOccurrences ( string fullText, string searchText, int startIndex, int length ) : int |
Indicates the number of times a given string appears in a larger string
|
|
DelimitPascalCase ( string inputString, string delimiter ) : string |
Breaks up a Pascal-cased string into sections that are divided by the given delimiter. For instance, an input string of "PascalCase" and a delimiter of " " will give "Pascal Case"
|
|
GetLeftSection ( string fullText, string searchText ) : string |
Returns the portion of the string that is left of the given search text
|
|
GetNameValueCollection ( string nameValuePairString ) : |
returns a NameValueCollection of nameValue Pairs for the nameValuePairString. e.g. nameValuePairString = "name=value&name2=value2&name3=value3" will return a NameValueCollection with 3 items for name, name2 and name3.
|
|
GetRightSection ( string fullText, string searchText ) : string |
Returns the portion of the string that is right of the given search text
|
|
GetValueString ( string nameValuePairString, string name ) : string |
For a given name value pair e.g. a query string or cookie string that is formatted as name=value&name2=value2&name3=value3 etc this will return the value for a specified name e.g. for nameValuePairString = "name=value&name2=value2&name3=value3" and name = "name2" GetValueString will return value2.
|
|
GuidToUpper ( System.Guid guid ) : string |
Returns the guid as a string with a standard format of "B" and with all the characters changed to upper.
|
|
GuidTryParse ( string s, System.Guid &result ) : bool |
Converts the string representation of a Guid to its Guid equivalent. A return value indicates whether the operation succeeded.
|
|
Humanize ( string input ) : string |
Replaces all _ with whites space
|
|
IsManyPascalWords ( string text ) : bool |
Determines whether the word is already pascal cased. This will return true when.
|
|
PascalCaseTableName ( string text ) : string |
Pascal Cases a table name that has as seperator '_', '-' or ' ' in it so that the the pascal casing will be done as follows first letter is capitalised the first letter that follows a seperator is capitalised. All other letters are left unchanged.
|
|
Pluralize ( string input ) : string |
Pluralises a noun using standard rule e.g. Name => Names Pantry => Pantries.
|
|
RemovePrefix ( string prefix, string text ) : string |
Removes a prefix defined by prefix from the text if it is found to be the leading characters of text.
|
|
ReplaceDoubleQuotesWithTwo ( string value ) : string |
Replaces double quotes with two double quotes in the given string
|
|
ReplaceSingleQuotesWithTwo ( string value ) : string |
Replaces single quotes with two single quotes in the given string
|
|
Singularize ( string input ) : string |
Singularises the input string using heuristics and rule.
|
|
ToLowerFirstLetter ( string input ) : string |
Changes the first character to a lowercase.
|
Method | Description | |
---|---|---|
RemovePascalDelimiters ( string text, string delimiter ) : string | ||
Singularise ( string input, |
||
StringUtilities ( ) : System |
public static AppendMessage ( StringBuilder origStringBuilder, string appendedString, string separator ) : StringBuilder | ||
origStringBuilder | StringBuilder | The string builder that contains the original /// message |
appendedString | string | The message to add on (right part) |
separator | string | The separator to insert between the two parts |
return | StringBuilder |
public static AppendMessage ( string origMessage, string messageToAppend ) : string | ||
origMessage | string | The existing message (left part) |
messageToAppend | string | The message to add on (right part) |
return | string |
public static AppendMessage ( string origMessage, string messageToAppend, string separator ) : string | ||
origMessage | string | The existing message (left part) |
messageToAppend | string | The message to add on (right part) |
separator | string | The separator to insert between the two /// parts |
return | string |
public static BoolTryParse ( object valueToParse, bool &result ) : bool | ||
valueToParse | object | string to be parsed |
result | bool | the resultant parsed value if parsing was a success |
return | bool |
public static Camelize ( string input ) : string | ||
input | string | |
return | string |
public static Classify ( string input ) : string | ||
input | string | |
return | string |
public static CountOccurrences ( string fullText, char token ) : int | ||
fullText | string | The string to search within |
token | char | The token to search for |
return | int |
public static CountOccurrences ( string fullText, char token, int startIndex, int length ) : int | ||
fullText | string | The string to search within |
token | char | The token to search for |
startIndex | int | The index of the position to start counting occurences from. |
length | int | The length of text to count occurences from. |
return | int |
public static CountOccurrences ( string fullText, string searchText ) : int | ||
fullText | string | The string to search within |
searchText | string | The section to search for |
return | int |
public static CountOccurrences ( string fullText, string searchText, int startIndex, int length ) : int | ||
fullText | string | The string to search within |
searchText | string | The section to search for |
startIndex | int | The index of the position to start counting occurences from. |
length | int | The length of text to count occurences from. |
return | int |
public static DelimitPascalCase ( string inputString, string delimiter ) : string | ||
inputString | string | The string to delimit |
delimiter | string | The delimiter to insert between /// sections, such as a space or comma |
return | string |
public static GetLeftSection ( string fullText, string searchText ) : string | ||
fullText | string | The string to search within |
searchText | string | The section to the right of the desired /// text |
return | string |
public static GetNameValueCollection ( string nameValuePairString ) : |
||
nameValuePairString | string | The name value pair to split. |
return |
public static GetRightSection ( string fullText, string searchText ) : string | ||
fullText | string | The string to search within |
searchText | string | The section to the left of the desired /// text |
return | string |
public static GetValueString ( string nameValuePairString, string name ) : string | ||
nameValuePairString | string | The name value pair to parse |
name | string | The name of the name value pair for which you want the value |
return | string |
public static GuidToUpper ( System.Guid guid ) : string | ||
guid | System.Guid | |
return | string |
public static GuidTryParse ( string s, System.Guid &result ) : bool | ||
s | string | A string containing a Guid to convert. |
result | System.Guid |
/// When this method returns, contains the Guid value equivalent to
/// the Guid contained in |
return | bool |
public static Humanize ( string input ) : string | ||
input | string | |
return | string |
public static IsManyPascalWords ( string text ) : bool | ||
text | string | |
return | bool |
public static PascalCaseTableName ( string text ) : string | ||
text | string | |
return | string |
public static Pluralize ( string input ) : string | ||
input | string | |
return | string |
public static RemovePrefix ( string prefix, string text ) : string | ||
prefix | string | |
text | string | |
return | string |
public static ReplaceDoubleQuotesWithTwo ( string value ) : string | ||
value | string | The string to amend |
return | string |
public static ReplaceSingleQuotesWithTwo ( string value ) : string | ||
value | string | The string to amend |
return | string |
public static Singularize ( string input ) : string | ||
input | string | |
return | string |
public static ToLowerFirstLetter ( string input ) : string | ||
input | string | |
return | string |