티스토리 툴바

블로그 이미지
미소챨스
블로그에 하나씩 담고 있습니다 ^^

calendar

1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

Notice

2011/04/14 01:20 Computer Tip
MX310™ Optical Mouse

Software:

  • Title: Logitech Control Center for Macintosh® OS X
  • Software Version: 3.3
  • Post Date: 06/18/2010
  • Platform: Macintosh OS X
  • File Size: Approximately 18 Mb

System Requirements:

  • Macintosh OS X OS 10.4.x, 10.5.x and 10.6.x
  • Logitech USB pointing device or keyboard.

http://www.logitech.com/en-us/473/340?section=downloads&bit=&osid=9
저작자 표시 비영리 변경 금지
posted by 미소챨스
2011/03/03 14:59 iPhone / Apple


출처 : http://incn.tistory.com/41


- (NSString *)GetUTF8String:(NSString *)hanggulString {

NSArray *chosung = [[NSArray allocinitWithObjects:@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",nil];

NSArray *jungsung = [[NSArray allocinitWithObjects:@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",nil];

NSArray *jongsung = [[NSArray allocinitWithObjects:@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@"",@" ",@"",@"",nil];

NSString *textResult = @"";

for (int i=0;i<[hanggulString length];i++) {

NSInteger code = [hanggulString characterAtIndex:i];

if (code >= 44032 && code <= 55203) {

NSInteger uniCode = code - 44032;

NSInteger chosungIndex = uniCode / 21 / 28;

NSInteger jungsungIndex = uniCode % (21 * 28) / 28;

NSInteger jongsungIndex = uniCode % 28;

textResult = [NSString stringWithFormat:@"%@%@%@%@", textResult, [chosung objectAtIndex:chosungIndex], [jungsung objectAtIndex:jungsungIndex], [jongsung objectAtIndex:jongsungIndex]];

}

}

return textResult;

}


- (void)loadView {

[super loadView];

NSLog@"%@", [self GetUTF8String:@"투덜이"]); 

}

저작자 표시 비영리 변경 금지
posted by 미소챨스
prev 1 2 3 4 5 ... 24 next