diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-06-19 23:02:15 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-06-19 23:02:15 +0000 |
commit | 4c4c5c22a47417eaa458739d1599c7bb24f75053 (patch) | |
tree | 6d0f15daa532684fe215b7fdf0a3ed3219bdf7c1 /Source/MGTemplateStandardMarkers.m | |
parent | 77d8891b8b3dd3321eac871da0bde6fe1f38ea94 (diff) | |
download | sequelpro-4c4c5c22a47417eaa458739d1599c7bb24f75053.tar.gz sequelpro-4c4c5c22a47417eaa458739d1599c7bb24f75053.tar.bz2 sequelpro-4c4c5c22a47417eaa458739d1599c7bb24f75053.zip |
• queryString: code cleaning and processing each encoding equally
- Since we are using mysql_real_query() there is no need to generate a \0 terminated cString.
- The disadvantage of using UTF8String is that it returns NULL if the encoding fails.
- To process each encoding equally we can now use [NSString dataUsingEncoding:enc allowLossyConversion:lossy]. In oder to avoid the overhead while calling it the following inline function is introduced:
NSStringDataUsingLossyEncoding(aStr, enc, lossy) := [aStr dataUsingEncoding:enc allowLossyConversion:lossy]
• import of CSV: code cleaned and optimized for speed a little
Diffstat (limited to 'Source/MGTemplateStandardMarkers.m')
0 files changed, 0 insertions, 0 deletions