Common Class
A series of helpful one off methods.
Namespace: Scopos.BabelFish.HelpersAssembly: BabelFish (in BabelFish.dll) Version: 1.12.5.15+bc7490f802416c9e774304c66372b6a26afede1d
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.
|
| Md5ToUlong |
Uses MD5 to hash the input string and then converts the first 8 bytes of the hash to a ulong. This can be used to create a unique
identifier for a string, such as a username or email address, without storing the original string in plaintext.
|
| 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 | |