Previous | Index | Next |
Substring counting methods
localizedWordCountOfString:
Can vary with locale.
+ (NSUInteger)localizedWordCountOfString:(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 "A 😀 string."
set theResult to current application's SMSForder's localizedWordCountOfString:aString
--> 2