Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

Substring range methods

Method

rangesOfLocalizedWordsOfString:

Summary

Takes locale into account.

Signature

+ (NSArray *)rangesOfLocalizedWordsOfString:(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 "A 😀 string."

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

ASify from theResult

--> {{location:0, length:1}, {location:5, length:6}}

theResult as list

--> {{location:0, length:1}, {location:5, length:6}}


Click here to open script in a script editor