Skip to content
/ JHTrim Public

trim redundant whitespace and newline. 去掉多余的空格和换行,空格保留10个,换行保留2个

License

Notifications You must be signed in to change notification settings

xjh093/JHTrim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

JHTrim

  • trim redundant whitespace and newline.
    • 去掉多余的空格和换行,空格保留10个,换行保留2个

Method

/**
 trim redundant whitespace and newline.
 keep count:
 - whitespace: 10
 - newline: 2
 去掉多余的空格和换行,空格保留10个,换行保留2个
 
 @return a new string.
 */
- (NSString *)jh_trimWhitespaceAndNewline;

- (NSString *)jh_trimWhitespaceKeepCount:(NSInteger)count1 andNewlineKeepCount:(NSInteger)count2;

About

trim redundant whitespace and newline. 去掉多余的空格和换行,空格保留10个,换行保留2个

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published