论坛首页 移动开发技术论坛

iphone-common-codes-ccteam源代码 CCEncoding.h

浏览 2812 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2012-01-12  
//  
//  CCEncoding.h  
//  CCFC  
//  
//  Created by xichen on 11-12-18.  
//  Copyright 2011 ccteam. All rights reserved.  
//  
  
  
#import <Foundation/Foundation.h>  
  
  
// "陈曦" 的unicode编码为:   
//              0x48 0x96 0xE6 0x66   
// UTF8编码为:  
//              0xE9 0x99 0x88 0xE6 0x9B 0xA6   
// GB18030编码为:  
//              0xB3 0xC2 0xEA 0xD8  
@interface CCEncoding : NSObject   
{  
  
  
}  
  
  
// log all encodings  
+ (void)logAllEncodings;  
  
  
  
  
// unicode                      --->                    UTF8  
+ (const char *)UnicodeToUTF8:(NSString *)src;  
  
  
// UTF8                         --->                    unicode  
+ (NSString *)UTF8ToUnicode:(const char *)src;  
  
  
// GB18030                      --->                    unicode  
+ (NSString *)GB18030ToUnicode:(const char *)src;  
  
  
// unicode                      --->                    GB18030  
+ (const char *)UnicodeToGB18030:(NSString *)src;  
  
  
// GB18030                      --->                    UTF8  
// GB18030      --> Unicode             -->             UTF8  
+ (const char *)GB18030ToUTF8:(const char *)src;  
  
  
// UTF8                         --->                    GB18030  
// UTF8         -->     Unicode         -->             GB18030  
+ (const char *)UTF8ToGB18030:(const char *)src;  
  
  
// Unicode cStr  to Unicode NSString   
// you should make sure the cStr begins with 0xFF, 0xFE(the unicode flag).  
+ (NSString *)UnicodeCStrToUnicode:(const char *)cStr withLen:(int)len;  
  
  
  
  
@end  

googlecode链接地址(会有更新):http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCEncoding.h
   发表时间:2012-01-31  
无法check到,说url不存在
0 请登录后投票
   发表时间:2012-03-09  
[quote=&quot;

niCe&quot;]无法check到,说url不存在

用下面这个:
svn checkout http://iphone-common-codes-ccteam.googlecode.com/svn/trunk/ iphone-common-codes-ccteam-read-only
0 请登录后投票
论坛首页 移动开发技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics