Changeset 215 for trunk/lingosource/castlib2
- Timestamp:
- 12/15/08 13:00:15 (3 years ago)
- Location:
- trunk/lingosource/castlib2
- Files:
-
- 2 edited
-
PseudoXMLPS.ls (modified) (2 diffs)
-
commonMovieScript.ls (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lingosource/castlib2/PseudoXMLPS.ls
r208 r215 822 822 on mEscapeSpecialChars me, str 823 823 824 val = mReplaceAllGT(me, val, "&", "&") 824 825 val = mReplaceAllGT(me, string(str), "<", "<") 825 826 val = mReplaceAllGT(me, val, ">", ">") 826 val = mReplaceAllGT(me, val, "&", "&")827 827 val = mReplaceAllGT(me, val, "'", "'") 828 828 val = mReplaceAllGT(me, val, QUOTE, """) … … 838 838 val = mReplaceAllGT(me, string(str), "<", "<") 839 839 val = mReplaceAllGT(me, val, ">", ">") 840 val = mReplaceAllGT(me, val, "&", "&")841 840 val = mReplaceAllGT(me, val, "'", "'") 842 841 val = mReplaceAllGT(me, val, """, QUOTE) 842 val = mReplaceAllGT(me, val, "&", "&") 843 843 844 844 return val -
trunk/lingosource/castlib2/commonMovieScript.ls
r196 r215 296 296 297 297 on mGetFloatVersionNumber me, prodVers 298 offs = offset(".", prodVers) 299 if offs > 0 then 300 intVers = char 1 to offs of prodVers 301 delete char 1 to offs of prodVers 302 else 303 intVers = "" 298 offs = offset(".", prodVers) 299 if offs > 0 then 300 intVers = char 1 to offs of prodVers 301 delete char 1 to offs of prodVers 302 else 303 intVers = "" 304 end if 305 cnt = length(prodVers) 306 repeat with n = 1 to cnt 307 c = prodVers.char[n] 308 if integerP(integer(c)) then 309 put c after intVers 310 else if c <> "." then 311 exit repeat 304 312 end if 305 cnt = length(prodVers) 306 repeat with n = 1 to cnt 307 c = prodVers.char[n] 308 if integerP(integer(c)) then 309 put c after intVers 310 else if c <> "." then 311 exit repeat 312 end if 313 end repeat 314 313 end repeat 314 315 315 return value(intVers) 316 316 end … … 333 333 if voidP(gPlatform) then 334 334 335 isMac = the platform contains "Macintosh"336 if isMac then337 338 onX = value(char 1 of (the last word of (the environment).osversion)) <= 5335 isMac = the platform contains "Macintosh" 336 if isMac then 337 338 onX = value(char 1 of (the last word of (the environment).osversion)) <= 5 339 339 if onX then gPlatform = #osx 340 340 else gPlatform = #os9 … … 1413 1413 len = length(dateiname) 1414 1414 ext = "" 1415 1416 repeat with n = len down to 1 1415 until = max(1, len-8) -- let's pretend, that a file extension is not langer than 8 chars 1416 1417 repeat with n = len down to until 1417 1418 this = dateiname.char[n] 1418 1419 put this before ext
Note: See TracChangeset
for help on using the changeset viewer.
