Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

Substring range methods

Method

rangesOfLocalizedSentencesOfString:

Summary

Results may differ in different languages/locales.

Signature

+ (NSArray *)rangesOfLocalizedSentencesOfString:(NSString *)aString

Parameters

aString = a string

Result

An array of range values

Availability

Version 1.2.0

Notes

 

Sample

use scripting additions

use framework "Foundation"

use script "BridgePlus"

load framework


set aString to "This is a string. It has two sentences."

set theResult to current application's SMSForder's rangesOfLocalizedSentencesOfString:aString

ASify from theResult

--> {{location:0, length:18}, {location:18, length:21}}

theResult as list

--> {{location:0, length:18}, {location:18, length:21}}


Click here to open script in a script editor