ISEResultSyll.m 573 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // ISEResultSyll.m
  3. // IFlyMSCDemo
  4. //
  5. // Created by 张剑 on 15/3/6.
  6. //
  7. //
  8. #import "ISEResultSyll.h"
  9. #import "ISEResultTools.h"
  10. @implementation ISEResultSyll
  11. /**
  12. * Get the standard phonetic symbol of content(en)
  13. */
  14. - (NSString*) getStdSymbol{
  15. NSArray* symbols=[self.content componentsSeparatedByString:@" "];
  16. NSString* stdSymbol=[[NSString alloc] init];
  17. for (int i = 0; i < [symbols count]; ++i) {
  18. stdSymbol = [stdSymbol stringByAppendingString:[ISEResultTools toStdSymbol:symbols[i]]];
  19. }
  20. return stdSymbol;
  21. }
  22. @end