HanyuPinyinOutputFormat.h 695 B

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * Created by kimziv on 13-9-14.
  3. */
  4. #ifndef _HanyuPinyinOutputFormat_H_
  5. #define _HanyuPinyinOutputFormat_H_
  6. #import <Foundation/Foundation.h>
  7. typedef enum {
  8. ToneTypeWithToneNumber,
  9. ToneTypeWithoutTone,
  10. ToneTypeWithToneMark
  11. }ToneType;
  12. typedef enum {
  13. CaseTypeUppercase,
  14. CaseTypeLowercase
  15. }CaseType;
  16. typedef enum {
  17. VCharTypeWithUAndColon,
  18. VCharTypeWithV,
  19. VCharTypeWithUUnicode
  20. }VCharType;
  21. @interface HanyuPinyinOutputFormat : NSObject
  22. @property(nonatomic, assign) VCharType vCharType;
  23. @property(nonatomic, assign) CaseType caseType;
  24. @property(nonatomic, assign) ToneType toneType;
  25. - (id)init;
  26. - (void)restoreDefault;
  27. @end
  28. #endif // _HanyuPinyinOutputFormat_H_