Previous | Index | Next |
Substring counting methods
sentenceCountOfString:
Counts sentences, ignoring locale.
+ (NSUInteger)sentenceCountOfString:(NSString *)aString
aString = a string
An integer
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 sentenceCountOfString:aString
--> 2