Previous | Index | Next |
Substring extraction methods
sentencesOfString:
Splits a string into sentences. Ignores localization, unlike localizedSentencesOfString:.
+ (NSArray *)sentencesOfString:(NSString *)aString
aString = A string
An array of strings
Version 1.0.0
use scripting additions
use framework "Foundation"
use script "BridgePlus"
load framework
set aString to "This is a string. It has two sentences."
set theResult to current application's SMSForder's sentencesOfString:aString
ASify from theResult
--> {"This is a string. ", "It has two sentences."}
theResult as list
--> {"This is a string. ", "It has two sentences."}