git.ithinksw.org
/
ITFoundation.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Licensing ITFoundation under the GNU Lesser General Public License version 2.1.
[ITFoundation.git]
/
ITCarbonSupport.m
diff --git
a/ITCarbonSupport.m
b/ITCarbonSupport.m
index
31d25cd
..
23b6f69
100644
(file)
--- a/
ITCarbonSupport.m
+++ b/
ITCarbonSupport.m
@@
-1,16
+1,10
@@
#import "ITCarbonSupport.h"
#import "ITCarbonSupport.h"
+#import "ITCategory-NSString.h"
NSString *NSStringFromFourCharCode(unsigned long code) {
NSString *NSStringFromFourCharCode(unsigned long code) {
- return [NSString stringWithFo
rmat:@"%.4s", &
code];
+ return [NSString stringWithFo
urCharCode:
code];
}
unsigned long FourCharCodeFromNSString(NSString *string) {
}
unsigned long FourCharCodeFromNSString(NSString *string) {
- const unsigned char *c_s = [string UTF8String];
- unsigned long tmp = *c_s++;
- tmp <<= 8;
- tmp |= *c_s++;
- tmp <<= 8;
- tmp |= *c_s++;
- tmp <<= 8;
- return tmp |= *c_s++;
+ return [string fourCharCode];
}
\ No newline at end of file
}
\ No newline at end of file