aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/UniversalDetector.framework/Versions
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-07-25 00:02:01 +0000
committerrowanbeentje <rowan@beent.je>2010-07-25 00:02:01 +0000
commitc073e11612e36a7f9b8d7033faf08d663dd40c1f (patch)
tree6cbb08281de2c61148d4490be6449bfb15c34cf6 /Frameworks/UniversalDetector.framework/Versions
parent477d0be75f3433a457f22a89b266235dae0aa164 (diff)
downloadsequelpro-c073e11612e36a7f9b8d7033faf08d663dd40c1f.tar.gz
sequelpro-c073e11612e36a7f9b8d7033faf08d663dd40c1f.tar.bz2
sequelpro-c073e11612e36a7f9b8d7033faf08d663dd40c1f.zip
- Fix positioning bug when using Import From Clipboard
- Add controllable encoding support when importing CSV and SQL files, including a new default "Autodetect" option. Add UniversalDetector framework to support encoding autodetection. This should address Issue #720.
Diffstat (limited to 'Frameworks/UniversalDetector.framework/Versions')
-rwxr-xr-xFrameworks/UniversalDetector.framework/Versions/A/Headers/UniversalDetector.h26
-rw-r--r--Frameworks/UniversalDetector.framework/Versions/A/Resources/English.lproj/InfoPlist.stringsbin0 -> 204 bytes
-rw-r--r--Frameworks/UniversalDetector.framework/Versions/A/Resources/Info.plist22
-rwxr-xr-xFrameworks/UniversalDetector.framework/Versions/A/UniversalDetectorbin0 -> 553844 bytes
l---------Frameworks/UniversalDetector.framework/Versions/Current1
5 files changed, 49 insertions, 0 deletions
diff --git a/Frameworks/UniversalDetector.framework/Versions/A/Headers/UniversalDetector.h b/Frameworks/UniversalDetector.framework/Versions/A/Headers/UniversalDetector.h
new file mode 100755
index 00000000..5d8d023b
--- /dev/null
+++ b/Frameworks/UniversalDetector.framework/Versions/A/Headers/UniversalDetector.h
@@ -0,0 +1,26 @@
+#import <Foundation/Foundation.h>
+
+@interface UniversalDetector:NSObject
+{
+ void *detectorPtr;
+ NSString *charsetName;
+ float confidence;
+}
+
+-(id)init;
+-(void)dealloc;
+
+-(void)analyzeData:(NSData *)data;
+-(void)analyzeBytes:(const char *)data length:(int)len;
+-(void)reset;
+
+-(BOOL)done;
+-(NSString *)MIMECharset;
+-(NSStringEncoding)encoding;
+-(float)confidence;
+
+//-(void)debugDump;
+
++(UniversalDetector *)detector;
+
+@end
diff --git a/Frameworks/UniversalDetector.framework/Versions/A/Resources/English.lproj/InfoPlist.strings b/Frameworks/UniversalDetector.framework/Versions/A/Resources/English.lproj/InfoPlist.strings
new file mode 100644
index 00000000..7080cf94
--- /dev/null
+++ b/Frameworks/UniversalDetector.framework/Versions/A/Resources/English.lproj/InfoPlist.strings
Binary files differ
diff --git a/Frameworks/UniversalDetector.framework/Versions/A/Resources/Info.plist b/Frameworks/UniversalDetector.framework/Versions/A/Resources/Info.plist
new file mode 100644
index 00000000..2e89cad2
--- /dev/null
+++ b/Frameworks/UniversalDetector.framework/Versions/A/Resources/Info.plist
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>UniversalDetector</string>
+ <key>CFBundleIdentifier</key>
+ <string>org.mozilla.universalchardet</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>UniversalDetector</string>
+ <key>CFBundlePackageType</key>
+ <string>FMWK</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+</dict>
+</plist>
diff --git a/Frameworks/UniversalDetector.framework/Versions/A/UniversalDetector b/Frameworks/UniversalDetector.framework/Versions/A/UniversalDetector
new file mode 100755
index 00000000..7a63ef2a
--- /dev/null
+++ b/Frameworks/UniversalDetector.framework/Versions/A/UniversalDetector
Binary files differ
diff --git a/Frameworks/UniversalDetector.framework/Versions/Current b/Frameworks/UniversalDetector.framework/Versions/Current
new file mode 120000
index 00000000..8c7e5a66
--- /dev/null
+++ b/Frameworks/UniversalDetector.framework/Versions/Current
@@ -0,0 +1 @@
+A \ No newline at end of file