Previous | Index | Next |
Substring counting methods
lineCountOfString:
Lines is like paragraphs but also accounts for Unicode next line character
+ (NSUInteger)lineCountOfString:(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." & character id 133 & "It has two lines."
set theResult to current application's SMSForder's lineCountOfString:aString
--> 2