小墨的iOS移动端APP代码

pinyin.h 554B

    /* * pinyin.h * Chinese Pinyin First Letter * * Created by George on 4/21/10. * Copyright 2010 RED/SAFI. All rights reserved. * */ #import <Foundation/Foundation.h> @interface HTFirstLetter : NSObject + (char)pinyinFirstLetter:(unsigned short )hanzi; //获取汉字首字母,如果参数既不是汉字也不是英文字母,则返回 @“#” + (NSString *)firstLetter:(NSString *)chineseString; //返回参数中所有汉字的首字母,遇到其他字符,则用 # 替换 + (NSString *)firstLetters:(NSString *)chineseString; @end