Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

Substring counting methods

Method

lineCountOfString:

Summary

Lines is like paragraphs but also accounts for Unicode next line character

Signature

+ (NSUInteger)lineCountOfString:(NSString *)aString

Parameters

aString = a string

Result

An integer

Availability

Version 1.0.0

Notes

 

Sample

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


Click here to open script in a script editor