Previous | Index | Next |
Substring extraction methods
localizedSentencesOfString:
Splits a string into sentences. Results may vary, depending on locale.
+ (NSArray *)localizedSentencesOfString:(NSString *)aString
aString = A string
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 localizedSentencesOfString:aString
ASify from theResult
--> {"This is a string. ", "It has two sentences."}
theResult as list
--> {"This is a string. ", "It has two sentences."}