Previous | Index | Next |
Substring counting methods
wordCountOfString:
Ignores locale. Useful when you have an NSString.
+ (NSUInteger)wordCountOfString:(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 wordCountOfString:aString
--> 2