Bez popisu

AlibcString.h 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * AlibcString.h
  3. *
  4. * 阿里百川电商
  5. * 项目名称:阿里巴巴电商 AlibcTradeCommon
  6. * 版本号:3.1.1.200
  7. * 发布时间:2017-08-21
  8. * 开发团队:阿里巴巴百川商业化团队
  9. * 阿里巴巴电商SDK答疑群号:1488705339 2071154343(阿里旺旺)
  10. * Copyright (c) 2016-2019 阿里巴巴-移动事业群-百川. All rights reserved.
  11. */
  12. #import <Foundation/Foundation.h>
  13. #ifndef AlibcString_h
  14. #define AlibcString_h
  15. @interface AlibcString : NSObject
  16. + (BOOL)isChinaMobileNumber:(NSString *)number;
  17. + (NSString *)fromCString:(char *)cString;
  18. + (NSString *)fromNSData:(NSData *)data;
  19. + (NSString *)fromNSData:(NSData *)data encoding:(NSStringEncoding)encoding;
  20. + (NSString *)fromProtocol:(Protocol *)protocol;
  21. + (NSString *)fromObject:(id)obj;
  22. + (NSString *)fromClass:(Class)clazz;
  23. + (NSString *)fromSelector:(SEL)selector;
  24. + (const char *)toCString:(NSString *)string;
  25. + (NSData *)toNSData:(NSString *)string;
  26. + (Protocol *)toProtocol:(NSString *)string;
  27. + (Class)toClass:(NSString *)string;
  28. + (SEL)toSEL:(NSString *)string;
  29. + (NSString *)trim:(NSString *)string;
  30. + (BOOL)hasSubString:(NSString *)string substring:(NSString *)substring;
  31. + (BOOL)isBlank:(NSString *)string;
  32. + (BOOL)isNotBlank:(NSString *)string;
  33. + (NSArray *)split:(NSString *)string sep:(NSString *)sep;
  34. @end
  35. #endif