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