Метод | Описание | |
---|---|---|
CleanNameOfExtraSpaces ( string nameText ) : string |
Cleans the name of extra spaces both internally and at the beginning and end of the name.
|
|
CleanNameOfHtml ( string nameText ) : string |
Cleans a name of HTML tags.
|
|
CleanNameOfText ( string nameText, List |
Cleans the name of a list of strings.
|
|
CleanNameOfText ( string nameText, string regularExpression ) : string |
Replace any text matching the passed in regular expression with a blank string.
|
|
GetForeignCharacterMap ( ) : |
Returns a Hashtable with the foreign character to english character mappings.
|
|
GetValidItemName ( string nameText ) : string |
Gets the name of the valid.
|
|
GetValidItemName ( string nameText, bool stripTags, bool replaceForeignCharacters ) : string |
Returns a valid item name for the passed in text
|
|
ReplaceCharacters ( string nameText, |
Takes the passed in characters (the keys in the Hashtable) and replaces them with the Hashtable key value.
|
|
ReplaceForeignCharacters ( string nameText ) : string |
Replaces the foreign characters in a name with their english equivalents.
|
public static CleanNameOfExtraSpaces ( string nameText ) : string | ||
nameText | string | The name text. |
Результат | string |
public static CleanNameOfHtml ( string nameText ) : string | ||
nameText | string | The name text. |
Результат | string |
public static CleanNameOfText ( string nameText, List |
||
nameText | string | The name text to strip text from. |
textToStrip | List |
The text to strip. |
Результат | string |
public static CleanNameOfText ( string nameText, string regularExpression ) : string | ||
nameText | string | The name text. |
regularExpression | string | The regular expression. |
Результат | string |
public static GetForeignCharacterMap ( ) : |
||
Результат |
public static GetValidItemName ( string nameText ) : string | ||
nameText | string | The name text. |
Результат | string |
public static GetValidItemName ( string nameText, bool stripTags, bool replaceForeignCharacters ) : string | ||
nameText | string | The name text. |
stripTags | bool | if set to |
replaceForeignCharacters | bool | if set to |
Результат | string |
public static ReplaceCharacters ( string nameText, |
||
nameText | string | The name text. |
characterMap | The character map. | |
Результат | string |
public static ReplaceForeignCharacters ( string nameText ) : string | ||
nameText | string | The name text. |
Результат | string |