User Guide

String manipulation functions 345
Arguments
searchString, separatorCharacters
The searchString argument is the string to separate into tokens.
The separatorCharacters argument is the character or characters that signifies the end
of a token. Separator characters in quoted strings are ignored. Any white-space characters
that occur in
separatorCharacters (such as tabs) are treated as separator characters, as if
they are explicitly specified. Two or more consecutive white space characters are treated as
a single separator.
Returns
An array of token strings.
Example
The following call to the dw.getTokens() function returns the tokens that come after it:
dreamweaver.getTokens('foo("my arg1", 34)', '(),')
foo
"my arg 1"
34
dreamweaver.latin1ToNative()
Availability
Dreamweaver 2.
Description
Converts a string in Latin 1 encoding to the native encoding on the users computer. This
function is intended to display the UI of an extension file in another language.
Arguments
stringToConvert
The stringToConvert argument is the string to convert from Latin 1 encoding to
native encoding.
Returns
The converted string.
NOTE
This function has no effect in Windows because Windows encodings are already based
on Latin 1.
000_DW_API_Print.book Page 345 Wednesday, July 20, 2005 11:58 AM