Previous | Index | Next |
Substring counting methods
localizedSentenceCountOfString:
Can vary by locale.
+ (NSUInteger)localizedSentenceCountOfString:(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 localizedSentenceCountOfString:aString
--> 2