aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPStringAdditions.h
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-07-13 15:24:16 +0000
committerBibiko <bibiko@eva.mpg.de>2009-07-13 15:24:16 +0000
commit27db10fe504117dd8b4a166dcfc94881528c44c3 (patch)
tree1926c3c44974d3a632b90b3bfca7fd9a25e8ce27 /Source/SPStringAdditions.h
parent04e807c2ca899cabe57ee834eab4336b8e3dbb7a (diff)
downloadsequelpro-27db10fe504117dd8b4a166dcfc94881528c44c3.tar.gz
sequelpro-27db10fe504117dd8b4a166dcfc94881528c44c3.tar.bz2
sequelpro-27db10fe504117dd8b4a166dcfc94881528c44c3.zip
• added levenshteinDistanceOfWord: to SPStringAdditions
- will be used mainly for auto-matching column names while csv import • fixed bug for in/decreasing the font size by using the two-finger gesture on a trackpad if a textView has a selection
Diffstat (limited to 'Source/SPStringAdditions.h')
-rw-r--r--Source/SPStringAdditions.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/SPStringAdditions.h b/Source/SPStringAdditions.h
index f6a49105..47863370 100644
--- a/Source/SPStringAdditions.h
+++ b/Source/SPStringAdditions.h
@@ -59,8 +59,10 @@ static inline NSData* NSStringDataUsingLossyEncoding(NSString* self, int encodin
- (NSArray *)lineRangesForRange:(NSRange)aRange;
- (NSString *)createViewSyntaxPrettifier;
-- (NSString *) stringByRemovingCharactersInSet:(NSCharacterSet*) charSet options:(unsigned) mask;
-- (NSString *) stringByRemovingCharactersInSet:(NSCharacterSet*) charSet;
+- (NSString *)stringByRemovingCharactersInSet:(NSCharacterSet*) charSet options:(unsigned) mask;
+- (NSString *)stringByRemovingCharactersInSet:(NSCharacterSet*) charSet;
+
+- (float)levenshteinDistanceWithWord:(NSString *)stringB;
#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_5
- (NSArray *)componentsSeparatedByCharactersInSet:(NSCharacterSet *)set;