Common Class
A series of helpful one off methods.
Namespace: Scopos.BabelFish.HelpersAssembly: BabelFish (in BabelFish.dll) Version: 1.12.3.10+306d87ab71d1aa659d07c082495f8eddb091ca7b
public static class Common
- Inheritance
- Object Common
| USStateList |
Dictionary of US State abbreviations and state names.
|
| IsOffensiveEnglishWord |
Returns a boolean indicating if the past in string is an offensive(ish) word in the english language.
|
| LevenshteinDistance |
Returns the Levenshtein Distance between two strings.
|
| SanitizeDirectoryPath | |
| SanitizeFileName | |
| SanitizeFullFilenamePath |
Takes in a full path to a file (including directory) as a string. Then replaces any
illegal characters with a '-' mark, returning the new string.
If the file name, portion of the full path, has an "\" in it (a directory seperator)
then the sanitization will not work, as the file name gets mis-interpreted. It is better
instead to use the method SanitizePath() |
| SanitizePath | |