Previous | Index | Next |
Substring counting methods
characterCountOfString:
"character" means "composed character sequence", as in AppleScript. Useful when you have an NSString.
+ (NSUInteger)characterCountOfString:(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 characterCountOfString:aString
--> 11