User Guide
String manipulation functions 287
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 user’s computer. This
function is intended to display the UI of an extension file in another language.
Note: This function has no effect in Windows because Windows encodings are already based
on Latin 1.
Arguments
stringToConvert
• The stringToConvert argument is the string to convert from Latin 1 encoding to
native encoding.
Returns
The converted string.
dreamweaver.nativeToLatin1()
Availability
Dreamweaver 2.
Description
Converts a string in native encoding to Latin 1 encoding.
Note: This function has no effect in Windows because Windows encodings are already based on
Latin 1.
Arguments
stringToConvert
• The stringToConvert argument is the string to convert from native encoding to Latin 1
encoding.
Returns
The converted string.
000_DW_API_Print.book Page 287 Wednesday, August 20, 2003 9:14 AM