Common Class
A series of helpful one off methods.
Namespace: Scopos.BabelFish.HelpersAssembly: BabelFish (in BabelFish.dll) Version: 1.11.3.13+877481945de6b4d2a3a561fea58e2494717cd263
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 | |